Re: $i++ problem understanding
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.php archive

Re: $i++ problem understanding

From: Samuel <lets.monroe@gmail.com>
Date: Thu Oct 06 2005 - 18:32:59 CEST

Maybe a little off topic, but I recall the good old days when a teacher
I had one day said she would give an extra point in the finals to the
first person to correctly say what would be the output of

$a = 1;
$b = 2;
$c = $a++ + ++$b;
echo "$a $b $c";

The fastest one to answer was, looking back now, not quite fast enough
:D
Received on Tue Oct 18 02:32:47 2005