Reimport Reimport text into variables. <?php function var_import ($text) { return eval("return $text;"); } ?> Usage string var_import -> mixedGod 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 Email ThisBlogThis!Share to TwitterShare to Facebook
0 comments:
Post a Comment