PHP Array processing function extract
The extract function is used to import variables from an array into the current symbol table
Basic syntax
int Extract (array & $var _array [, int $extract _type = extr_overwrite [, String $prefix = NULL]])
This function is used to import variables from the array into the current symbol table. Check each key name to see if it can be used as a valid variable name and also check for conflicts with the variable names already in the symbol table.
Parameter description:
return value
Returns the number of variables successfully imported into the symbol table.
Instance:
<?php$size = "large"; $var _array = Array ( "color" = "Blue", "size" = "Medium", "shape" = " Sphere "), Extract ($var _array, Extr_prefix_same," WDDX "), echo" $color, $size, $shape, $wddx _size <br/> ";? >
Operation Result:
Blue, large, sphere, medium
Thank you for reading, hope to help everyone, thank you for the support of this site!