note 74085 deleted from function.each by bobby

From: Date: Fri, 23 Mar 2007 21:18:07 +0000
Subject: note 74085 deleted from function.each by bobby
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-124761@lists.php.net to get a copy of this message
Note Submitter: rajbot at gmail dot com ---- this may have been super-obvious to others, but if you try to use an 'explode' with 'each', you hear a little yelp from your server as the php module goes straight into an infinite loop until hitting the php.ini memory or execution limits. just fyi, dogg. example: <?php $string="clearly, this is not going to go well, my friend"; while (list($key, $value)=each(explode(',',$string))) { print "IM IN UR SERVER EATENG UR MEM "; } ?>

« previous php.notes (#124761) next »