Re: Re: [RFC] var_representation() : readable alternative to var_export()

From: Date: Thu, 04 Feb 2021 17:55:32 +0000
Subject: Re: Re: [RFC] var_representation() : readable alternative to var_export()
References: 1 2 3  Groups: php.internals 
Request: Send a blank email to internals+get-113079@lists.php.net to get a copy of this message
Hi internals, > > > I've > > > created https://wiki.php.net/rfc/readable_var_representation based > > > on > > > my original proposal in > > > https://externals.io/message/112924 > > > > > > [...] > > > > A reminder that voting on the var_representation RFC starts in a day. > > This RFC proposes adding a new function var_representation(mixed $value, > > int $flags=0): string with multiple improvements on > > var_export(). > > > > Any other feedback? > > I think the "though strings with embedded newlines will still cause newlines in the > output" part is obsolete (since \r and ; >\n are escaped now). > > Apart from that, since var_export (and var_dump) can't really be "fixed" for BC > reasons, I'm +1 for the new function. Thanks, that's indeed obsolete - I removed it from the RFC. -Tyson

« previous php.internals (#113079) next »