Re: Friday - Return of Brain Teasers

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 05-10-2012 22:50, iostream wrote:
If you want to execute some code...

I'm sure you've all heard of the new "goes to" operator by now, but I
hope it might be new to somebody.

   $i = 10;
   while ($i --> 0) { // while $i goes to 0
     echo $i ."\n";
   }


Haha, nice one :)

Also: don't toppost on this list.


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux