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

From: Date: Thu, 21 Jan 2021 01:32:22 +0000
Subject: Re: Proposal: short_var_export($value, bool $return=false, int $flags=0)
References: 1 2 3 4 5  Groups: php.internals 
Request: Send a blank email to internals+get-112951@lists.php.net to get a copy of this message
Hi internals, > > As the intent of the resulting string is to obtain PHP code that will construct the variable, another option might be: var_constructor(). > > Wouldn't this be extremely confusing given that we use the name constructor for OOP?  I'd agree, var_constructor($x) could be mistaken for a shorthand for Closure::fromCallable([$x, '__construct']) - Tyson

« previous php.internals (#112951) next »