I’m using extract passing it an associative array $arr but it doesn’t work properly. I pass the array to my function extract($arr) but when I want to extract value it doesn’t work. how can use it correctly?
here my array:
$arr = array('id' => 1, 'name' => 'abc','address' => 'street abc');
If you’re using it like this it should work.
This code shows the output fine. Post your exact code so that we can reproduce the problem.