The extract() function imports variables from an array.
This function uses array keys as variable names and values as variable values.
This function returns the number of variables extracted on success.
1 2 |
$arrayvar = array("a" => "Shoe","b" => "Shoe", "c" => "Belt"); extract($arrayvar); |