RE: [PHP] function return

From: Date: Tue, 28 May 2002 08:32:46 +0000
Subject: RE: [PHP] function return
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-99451@lists.php.net to get a copy of this message
> > I have a Q about functions. My function should return 2 > values. What > > syntax should I use and how do I call these values outside the > > function? Are these values returned as en array or something? > I don't know if there is an easier way to do this but why > don't you concatenate the two values to be returned and then > split the returned value ? ex : function > myFunction($some_vars) { $max=count($some_vars); Personally, I'd put both values to be returned into an array and then return the array. CYA, Dave

« previous php.general (#99451) next »