>
> There are other issues with the format besides just the long array syntax.
> E.g. opening bracket on same line? Indentation?


For the record, I have a userland implementation of var_export() that does
all of this:

- (object) array export of stdClass for PHP < 7.3
- short array syntax
- bracket on the same line
- array of scalars on a single line (optional)
- export classes without __set_state()
- export closures

https://github.com/brick/varexporter

I'm currently working on supporting object identity and circular references.
Feedback welcome!

— Benjamin

Reply via email to