note 107429 added to language.variables.variable
| From: | Anonymous | Date: | Wed, 08 Feb 2012 19:28:27 +0000 |
| Subject: | note 107429 added to language.variables.variable | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-185924@lists.php.net to get a copy of this message | ||
Correction to [antony dot booth at nodomain dot here 19-Sep-2002 07:17]; in the extract() builtin
array function, prefixes are automatically separated from the array key by an underscore character.
Therefore --
extract( $array, EXTR_PREFIX_ALL, "my_prefix_");
Would create variables:
$my_prefix__one (not $my_prefix_one)
$my_prefix__two (not $my_prefix_two)
$my_prefix__three (not $my_prefix_three)
----
Server IP: 69.147.83.197
Probable Submitter: 72.219.151.91
----
Manual Page -- http://www.php.net/manual/en/language.variables.variable.php
Edit -- https://master.php.net/note/edit/107429
Del: integrated -- https://master.php.net/note/delete/107429/integrated
Del: useless -- https://master.php.net/note/delete/107429/useless
Del: bad code -- https://master.php.net/note/delete/107429/bad+code
Del: spam -- https://master.php.net/note/delete/107429/spam
Del: non-english -- https://master.php.net/note/delete/107429/non-english
Del: in docs -- https://master.php.net/note/delete/107429/in+docs
Del: other reasons-- https://master.php.net/note/delete/107429
Reject -- https://master.php.net/note/reject/107429
Search -- https://master.php.net/manage/user-notes.php