Suppose I have an array, like this:
$foo = array('first' => '1st',
'second' => '2nd',
'third' => '3rd');
How can I pick the keys out of the array and make them their own variables?
For example, the array
$first = '1st';
$second = '2nd';
$third = '3rd';
I ask this because I am creating an MVC framework to help with my OOP, and I would like the user to pass a variable to the View loading function, which will allow the user to use variables in the template without having to know what the array was called.
$array = array('title' => 'My blog!' [...]);