Home ›
Convert an associative array to variables with the names of the keys and the matching valuesConvert an associative array to variables with the names of the keys and the matching values
Submitted by Benjamin Melançon on July 13, 2009 - 12:17pm
php turn an array into variables matching keys
php associative array to variables
The function you want is
<?php
extract($array);
?>
You can also do it the hard way.