Well, it depends how you use them.

Strictly speaking, ++$count is faster than $count++.

say $count = 5

$num1 = $count++; #$num1 would = 5 and $count would = 6
$num2 = ++$count; #$num2 and $count would equal 6

Regards,

Danny

-----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