Re: [RFC] Skipping parameters take 2

From: Date: Mon, 02 Sep 2013 11:03:37 +0000
Subject: Re: [RFC] Skipping parameters take 2
References: 1 2  Groups: php.internals 
Request: Send a blank email to [email protected] to get a copy of this message
On Mon, 2013-09-02 at 11:48 +0100, Derick Rethans wrote: 
> > can be called like this:
> >     create_query("deleted=0", "name", default, default,
> > /*report_errors*/ true);
> 
> What would happen if I had done:
> 
> 	define('default', 42);
> 
> before that line?

Nothing special as default is a keyword already (-> switch). Your only
way to access that constant is already by using the constant() function.

johannes




Thread (69 messages)