note 26829 added to function.extract
| From: | fie at myrealbox dot com | Date: | Thu, 14 Nov 2002 11:50:22 +0000 |
| Subject: | note 26829 added to function.extract | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-39476@lists.php.net to get a copy of this message | ||
Please don't feel super stupid like me!
when you do the fallowing
extract($foo, EXTR_PREFIX_ALL, 'x_');
it won't return the array var as $x_bar
it will be $x__bar. Remember when
specifying a prefix that it automatically
puts the underscore.
I spent a whole day baffled at what
was wrong.
--
http://www.php.net/manual/en/function.extract.php
http://master.php.net/manage/user-notes.php?action=edit+26829
http://master.php.net/manage/user-notes.php?action=delete+26829
http://master.php.net/manage/user-notes.php?action=reject+26829