Hi Richard,
On 25 June 2016 at 16:25, Fleshgrinder <[email protected]> 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
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php