Reimport text into variables.
function var_import ($text) { return eval("return $text;"); }
string var_import -> mixed
God I wish I knew about this when I had to write a parser for print_r'd arrays (it could only go one level deep, ~30 lines instead of 1
Comments
Add your comment