tysonandre / var_representation Goto Github PK
View Code? Open in Web Editor NEWvar_representation() : readable alternative to var_export() in PHP
License: BSD 3-Clause "New" or "Revised" License
var_representation() : readable alternative to var_export() in PHP
License: BSD 3-Clause "New" or "Revised" License
It should be possible to post-process the var_export output to normalize strings the same way, replace old arrays, etc.
Still a work in progress: https://github.com/TysonAndre/var_representation_polyfill
Z_OBJPROP*
is a macro that calls get_properties to build property tables. The var_export implementation may or may not change to avoid calling get_properties - still in review. If changes to var_export get merged, change it
E.g. so that json_encode(var_representation($value, VAR_REPRESENTATION_UNESCAPED));
has a smaller but still readable representation
(object)[]
for stdClass__set_state
for classes in $allowed_classes[]
and array()
arrays with keys/values"$var"
['a'][0]
)Reasons:
For escaping \x80-\xff bytes in string literals, e.g. for developers to see visually if strings are really entirely ascii
Hi,
I have initiated a CI to build some PHP extensions for Windows.
This extension is now available here: https://phpext.phptools.online/extension/php/var_representation-260
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.