Re: [RFC] Safe Casting Functions

From: Date: Wed, 22 Oct 2014 11:05:02 +0000
Subject: Re: [RFC] Safe Casting Functions
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-78227@lists.php.net to get a copy of this message
Hi Derick, > On 21 Oct 2014, at 17:26, Derick Rethans <derick@php.net> wrote: > > But what about if we also would like a to_bool, which would accept > "true", "false", "0", "1", true, false, 1 and 0? Yep, I think that totally makes sense. "yes" and "no" would be further candidates but that’s probably already too much. cu, Lars

« previous php.internals (#78227) next »