Re: Proposal: short_var_export($value, bool $return=false, int $flags=0)

From: Date: Wed, 20 Jan 2021 20:21:54 +0000
Subject: Re: Proposal: short_var_export($value, bool $return=false, int $flags=0)
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-112945@lists.php.net to get a copy of this message
> Le 20 janv. 2021 à 19:50, Rowan Tommins <rowan.collins@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

« previous php.internals (#112945) next »