Re: Function definition: how to make default argument an empty array?

From: Date: Sat, 22 Dec 2001 20:49:05 +0000
Subject: Re: Function definition: how to make default argument an empty array?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-78591@lists.php.net to get a copy of this message
> In pseudo-code: > > function makeyogurt ($flavour, $type = 'EMPTY ARRAY') > { } function makeyogurt ($flavour, $type = array()) { ... } or function makeyogurt ($flavour, $type = array('a','b')) { ... } regards, Philip Olson

« previous php.general (#78591) next »