php extract

The extract() function automatically creates local variables from an array. The indices of the array elements become the variable names: $person = array(‘name’ => “Fred”, ‘age’ => 35, ‘wife’ => “Betty”); extract($person); // $name, $age, and $wife are now set extract Example in php