"how to read output of var_export into a variable in php?" Code Answer

5

like this:

$dumpStr = var_export($var,true);
eval('$somevar = ' . $dumpStr.';');
By Arun Kumar Munusamy on September 6 2022

Answers related to “how to read output of var_export into a variable in php?”

Only authorized users can answer the search term. Please sign in first, or register a free account.