RE: [PHP] anyway to return more than one value?
| From: | Chris W. Parker | Date: | Thu, 06 Nov 2003 00:55:24 +0000 |
| Subject: | RE: [PHP] anyway to return more than one value? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-168639@lists.php.net to get a copy of this message | ||
John W. Holmes <mailto:holmes072000@charter.net>
on Wednesday, November 05, 2003 4:28 PM said:
> Are you talking about something like this:
>
> $retval['result'] = get_results($result);
> $retval['rows'] = mysql_num_rows($result);
> $retval['fields'] = mysql_num_fields($result);
>
> return $retval;
Yes. Except that that's exactly what I don't want to do if I can avoid
it. :)
So far the reference thing is working fine. Someone also suggested I use
a new class. Sounds like a good idea, but might be overkill for what I'm
doing.
Thanks,
Chris.
--
Don't like reformatting your Outlook replies? Now there's relief!
http://home.in.tum.de/~jain/software/outlook-quotefix/