var_representation extension

var_representation is a compact alternative to var_export that properly escapes control characters

License: BSD-3-Clause

Latest releases

Version Release Download
0.1.1 2021-08-14 var_representation-0.1.1.tgz
0.1.0 2021-06-24 var_representation-0.1.0.tgz
Show all releases


Version Message
0.1.1 * Optimize escaping single quoted strings
* Add a new flag VAR_REPRESENTATION_UNESCAPED to always encode strings as single quoted strings without escaping control characters.
This may be useful when the result of var_representation is escaped again before being rendered (e.g. json encoding),
or when a short representation is desired.
0.1.0 * Fix handling of dumping arrays created from $GLOBALS in php versions prior to 8.1
* Move the C var_representation_ex API to var_representation.h
Show complete changelog