Re: [RFC] is_literal()

From: Date: Sat, 21 Mar 2020 21:23:35 +0000
Subject: Re: [RFC] is_literal()
References: 1 2 3  Groups: php.internals 
Request: Send a blank email to internals+get-109190@lists.php.net to get a copy of this message
On Sat, Mar 21, 2020 at 3:26 PM Craig Francis <craig@craigfrancis.co.uk> wrote: > > As to the name, it's to work alongside functions such as > is_int(), is_string(), etc - is that a good enough reason? I think it could cause confusion since int and string are value types, - literal is not a type as such, it merely describes the way the value was created. > I'm under the impression that PHP already defines these as literals Does anyone know if that is correct? Does PHP remember how the string variable / constant was created?

« previous php.internals (#109190) next »