Re: Re: [RFC] ifsetor operator

From: Date: Fri, 16 Apr 2004 22:14:27 +0000
Subject: Re: Re: [RFC] ifsetor operator
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-9295@lists.php.net to get a copy of this message
On Fri, 16 Apr 2004, Edin Kadribasic wrote: > >On Friday, Apr 16, 2004, at 22:25 Europe/Copenhagen, Rasmus Lerdorf >wrote: > >> On Fri, 16 Apr 2004, Derick Rethans wrote: >> >>> On Fri, 16 Apr 2004, Rasmus Lerdorf wrote: >>> >>>>> This would lead to >>>>> $a = isset($b, 'default'); >>>> >>>> I think this is the sanest suggestion yet. >>> >>> But it's already in use... (isset accepts multiple parameters and does >>> an AND on those). >> >> Ah, that won't work then. > >How about ifexists()? Someone mentioned this on irc and I think it >would work here. _ __ _ ____ (_)/ _| ___| |___ ___ / /\ \ | | |_ / _ \ / __|/ _ \ | | | | | _| __/ \__ \ __/ | | | |_|_| \___|_|___/\___| | | | \_\/_/ ifelse() --Jani

« previous php.internals (#9295) next »