Yes $count++ is incremented afterwards where ++$count is incremented
first

$a=1
C$=++a$ #c$ gets 2

C$=a$++ #c$ gets 1 and then a$ is increment to 2
Print "$c $a" #returns "1 2".

Paul
> -----Original Message-----
> From: Mystik Gotan [mailto:[EMAIL PROTECTED]]
> Sent: Friday, December 06, 2002 11:54 AM
> 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]
> 


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

Reply via email to