PHP extract () function
4 answers
The default is overwrite, but you can change this to one of several possible options by specifying a collision handling function:
for example pass EXTR_SKIP
, since the second parameter, for example extract($array,EXTR_SKIP)
, will skip collisions.
Full usage is detailed here: http://php.net/manual/en/function.extract.php
+4
source to share
It depends entirely on the extract_type value you are using. However, the default needs to be overwritten.
+1
source to share
It depends on the second argument you are passing to the function. extract () takes an optional second argument consisting of constants. See Docs at http://us2.php.net/manual/en/function.extract.php
0
source to share