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

From: Date: Thu, 04 Feb 2021 15:04:37 +0000
Subject: Re: Re: [RFC] var_representation() : readable alternative to var_export()
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-113076@lists.php.net to get a copy of this message
On Thu, Feb 4, 2021 at 3:36 PM tyson andre <tysonandre775@hotmail.com> wrote: > 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? > Hi, 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 -- Guilliam Xavier

« previous php.internals (#113076) next »