/ Published in: PHP
This simply takes an array and coverts it to variables. E.g. If you had an array, $array = array("key" => "value"), after running this script, $key would be "value".
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<?php foreach($array as $key => $value){ $$key = $value; } // simple as that