$count++ - will display value then add
        ++$count - will add then display

        as in where $count = 5;
          printf "%5d\n", $count++ ;
                would display 5 and $count would be 6
          printf "%5d\n", ++$count ;
                would add then display 6

        Or if incrementing a loop within an array, then $array[$count++] = x
would set $array[5] = x and then icrement $count to 6. For $array[++$count]
= x then $count would be 6 and $array[6] = 6.

Wags ;)
        

-----Original Message-----
From: Mystik Gotan [mailto:[EMAIL PROTECTED]]
Sent: Friday, December 06, 2002 08:54
To: [EMAIL PROTECTED]
Subject: Difference between $count++ and ++$count


Hiya,

is there any difference between $count++ and ++$count?
Just wondering.

Thanks.





_________________________________________________________________
Ontvang je Hotmail & Messenger berichten op je mobiele telefoon met Hotmail 
SMS http://www.msn.nl/jumppage/


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


**********************************************************
This message contains information that is confidential
and proprietary to FedEx Freight or its affiliates.
It is intended only for the recipient named and for
the express purpose(s) described therein.
Any other use is prohibited.
****************************************************************


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to