View Single Post
Old 01-21-2008, 12:02 PM   #10 (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

Infinite loops from recursive functions/methods can be a particularly nasty trap to fall into! In a similar (erm, identical) vein to sketch's last code snippet here's another quick one-liner:
PHP Code:
for (;print 'lol';); 

Last edited by Salathe : 01-21-2008 at 12:54 PM.
Salathe is offline  
Reply With Quote