View Single Post
Old 08-19-2009, 01:54 PM   #17 (permalink)
Enfernikus
The Addict
 
Enfernikus's Avatar
 
Join Date: Jun 2008
Posts: 335
Thanks: 2
Enfernikus is on a distinguished road
Default

php Code:
<ul><?php array_map(function($Value){ printf('<li>%s</li>', $Value); }, range(0, 100));
array_map(function($Value){ printf('<li>%s</li>', $Value); }, range(100, 0))?></ul>

Hope 2 is fine.

P.S. - I'm taking un-nested functions to be something along the lines of

php Code:
this(); is(); a(); cool(); unnested(); string(); of(); functions();

--- And I guess I'll make another little challenge

Challenge 5 (Salathe: added challenge number so we can keep track))

Construct your a looping method to mimic for using only variables inside the scope of the function ( no global keyword )

( I don't expect the break keyword to be respected, that would be a slight more difficult )
__________________
My Blog

Last edited by Salathe : 08-19-2009 at 02:42 PM.
Enfernikus is offline  
Reply With Quote