> Le 20 janv. 2021 à 19:50, Rowan Tommins <rowan.coll...@gmail.com> a écrit :
> 
> Should we be aiming for a single function that can take over from some or all 
> of the others, and deprecate them, rather than just adding to the confusion?

Or `short_var_export()` could just reuse the existing `__debugInfo()` magic 
method (which is already used by both `var_dump()` and `print_r`, but not by 
`var_export()`). The programmer would just need to make sure that 
`__set_state()` can consume the array produced by `__debugInfo()`.

—Claude

Reply via email to