note 107429 deleted from language.variables.variable by danbrown
| From: | danbrown@php.net | Date: | Thu, 10 May 2012 21:16:32 +0000 |
| Subject: | note 107429 deleted from language.variables.variable by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-187866@lists.php.net to get a copy of this message | ||
Note Submitter: Anonymous
----
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)