Data types: PHON
Martin Alterisio (contact me)
This class can be used to securely unserialize values exported with PHP var_export function.
var_export is a PHP function that can be used to export variable values as text string.
The exported data can be used as an alternative to XML or JSON to pass complex data values between the same or different computers. Thus the name PHP Object Notation: PHON (pronounced like font but silencing the ending "t" sound).
This class can use the eval function to unserialize and restore the original values exported with var_export.
Alternatively, it can also parse the expression and unserialize it securely by disallowing non-constant expressions in the exported values that could be used to run dangerous arbitrary PHP code.
Click here for detailed information about this class on phpclasses.org