Re: [RFC] skipping optional parameters

From: Date: Tue, 17 Apr 2012 23:33:33 +0000
Subject: Re: [RFC] skipping optional parameters
References: 1 2 3  Groups: php.internals 
Request: Send a blank email to internals+get-60134@lists.php.net to get a copy of this message
Hi, 2012/4/18 Stas Malyshev <smalyshev@sugarcrm.com>: > Hi! > >> Introducing "undefined" might be good. >> Intention becomes clearer and we may do >> >> if ($var === undefined) { >>   echo '$var is undefined'; >> } > > What is undefined and how $var gets assigned it? I'm thinking undefined like JavaScript. AFAIK, engine does not have undefined state. It may be too many changes required. Just skipping would work and I'm not against it. Regards, -- Yasuo Ohgaki yohgaki@ohgaki.net

« previous php.internals (#60134) next »