Re: default/optional parameters in function

From: Date: Thu, 04 Jul 2002 02:03:59 +0000
Subject: Re: default/optional parameters in function
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-105340@lists.php.net to get a copy of this message
On Wed, 3 Jul 2002, Analysis & Solutions wrote: > On Wed, Jul 03, 2002 at 05:44:28PM -0800, Chris Lott wrote: > > > > I have a function that writes meta tags... if a tag (or tags) is not > > specified, then it gets a default value... is there a cleaner way to > > do this? > > Not that I can think of. I do have some thoughts, though... [...] Good points. But I have a question about this: > Note use of single quotes around the array key names, as well. Why is this better-- I assume because PHP doesn't have to check for variables to interpolate with single quotes? Thanks! c

« previous php.general (#105340) next »