On Tue, August 18, 2009 4:46 am, Ville Jungman wrote:
> ... but you would like to use the inner loop also elsewhere. Just
> define it as a function ...
>
> while($numbers as $value){
> while(...){
> while(...){
> do_something_with($value);
> do_something_with($value + 1);
> } as function inner_loop($value);
> }
> }
>
> ... and go ...
>
> inner_loop(3);
-1
While fun, this is just too esoteric for PHP, imho.
--
Some people ask for gifts here.
I just want you to buy an Indie CD for yourself:
http://cdbaby.com/search/from/lynch
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php