Re: [RFC DISCUSSION] var_type

From: Date: Sun, 26 Jun 2016 10:31:56 +0000
Subject: Re: [RFC DISCUSSION] var_type
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-94258@lists.php.net to get a copy of this message
Hi Richard, On 25 June 2016 at 16:25, Fleshgrinder <php@fleshgrinder.com> wrote: > I finished the RFC: > > https://wiki.php.net/rfc/var_type > As other noted elsewhere by others, the name of the function is slightly misleading for this case: var_type(1 + 1); However I don't have a better suggestion. From the second half of the RFC: > const TYPE_FALSE = 'false'; > const TYPE_TRUE = 'true'; Although as an implementation detail they are present in the engine, those aren't types in userland. i.e. you can't do function foo(true $i_only_accept_true) {} cheers Dan

« previous php.internals (#94258) next »