View Single Post
Old 08-19-2009, 02:43 PM   #20 (permalink)
Salathe
Moderateur
RegEx Guru PHP Guru Top Contributor Advanced Programmer 
 
Salathe's Avatar
 
Join Date: Apr 2007
Posts: 1,393
Thanks: 5
Salathe is on a distinguished road
Default

With regards to challenge 4, I'm a little fuzzy on what actually counts as a line so I threw everything onto one long one!

PHP Code:
printf("<ul>\n\t<li>".implode("</li>\n\t<li>"array_merge(range(0,100),range(100,0)))."</li>\n</ul>\n"); 
Edit: can't echo, use printf instead.

Last edited by Salathe : 08-19-2009 at 03:12 PM.
Salathe is offline  
Reply With Quote