note 56865 added to function.explode

From: Date: Sat, 17 Sep 2005 18:08:43 +0000
Subject: note 56865 added to function.explode
Groups: php.notes 
Request: Send a blank email to php-notes+get-95333@lists.php.net to get a copy of this message
In version 5.05 (I have heard it is the same in 5.1) I suddenly got the error "only variables can be passed by reference" in connection to "array_pop(explode())" - it affects a lot of other combinations too (array_shift, array_keys, list etc). The solution is simple (and it is possible to do a global search and replace): replace array_pop(explode()) with array_pop($dummyarr=explode()). ---- Manual Page -- http://www.php.net/manual/en/function.explode.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+56865 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+56865&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+56865&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+56865&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+56865&report=yes&reason=useless Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+56865&report=yes&reason=non-english Delete: already in docs -- http://master.php.net/manage/user-notes.php?action=delete+56865&report=yes&reason=already+in+docs Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+56865&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+56865&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#95333) next »