At 01:17 PM 12/22/2001 +0100, Michael Jurgens wrote: >I'm now looking for a way to have the second (optional) argument be an array >of strings. I can't get it to work though... > >In pseudo-code: > >function makeyogurt ($flavour, $type = 'EMPTY ARRAY') >{ }
Does this work? function makeyogurt ($flavour, $type = "") { $type = (array) $type; ... } or function makeyogurt ($flavour, $type = "") { settype ($type, "array"); ... } ?? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]