note 104018 added to function.array-walk-recursive
| From: | FaustoFilho at osu1 dot php dot net | Date: | Tue, 17 May 2011 16:54:59 +0000 |
| Subject: | note 104018 added to function.array-walk-recursive | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-179821@lists.php.net to get a copy of this message | ||
Guys,
If you intend to use Rob's recursive function to extract the last key value of an array,
don't forget to insert a currency sign ($) signal before "$output" at 7th line.
This value must be a variable, and if you forgot to assign this signal, your code won't work,
displaying an error like this:
Parse error: syntax error, unexpected ')', expecting T_PAAMAYIM_NEKUDOTAYIM in
/home/ffilho/www/temp/arraywalk.php on line 7
I've lost several minutes until discovery this. Hope this info be useful for someone.
----
Server IP: 187.16.23.128
Probable Submitter: 200.144.115.82
----
Manual Page -- http://www.php.net/manual/en/function.array-walk-recursive.php
Edit -- https://master.php.net/note/edit/104018
Del: integrated -- https://master.php.net/note/delete/104018/integrated
Del: useless -- https://master.php.net/note/delete/104018/useless
Del: bad code -- https://master.php.net/note/delete/104018/bad+code
Del: spam -- https://master.php.net/note/delete/104018/spam
Del: non-english -- https://master.php.net/note/delete/104018/non-english
Del: in docs -- https://master.php.net/note/delete/104018/in+docs
Del: other reasons-- https://master.php.net/note/delete/104018
Reject -- https://master.php.net/note/reject/104018
Search -- https://master.php.net/manage/user-notes.php