the output is like below restored in a output.txt file:
array (
'IMType' => '1',
'Email' => '[email protected]',
'SignupName' => 'test11',
'Password' => '11111',
'Encrypted' => '',
'Confirm' => '11111',
'OldPassword' => '',
'Name' => 'test',
'SignupProvinceText' => 'province',
'SignupCity' => 'cityname',
'Street' => 'street x.y',
'SignupIndustry' => 'IT',
'SignupCompany' => 'jobirn',
'SignupJt' => 'engineer',
'CellPhoneNum' => '',
'linked_in' => '',
)
it's in fact output of var_export(my_variable,true)
,but how to read it into a variable again?
like this:
$dumpStr = var_export($var,true);
eval('$somevar = ' . $dumpStr.';');
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With