RE: [PHP-WIN] Returning variable and array from function
| From: | Dale Attree | Date: | Tue, 12 Jun 2007 10:16:58 +0000 |
| Subject: | RE: [PHP-WIN] Returning variable and array from function | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-28063@lists.php.net to get a copy of this message | ||
You would need to return both as elements of an array.
-----Original Message-----
From: Gustav Wiberg [mailto:gustav@hmn.se]
Sent: 12 June 2007 12:08 PM
To: 'php windows' (php-windows@lists.php.net)
Subject: [PHP-WIN] Returning variable and array from function
Hi there!
I think I have done this before but I can't remember how I did...
I want to return one variable ($htmlReport) and one array from a function
I'd like to like this:
return $htmlReport, $res;
but get the error: Parse error: syntax error, unexpected ',' in
C:\www\test\timeweb\classes\reports.php on line 2745
Best regards
/Gustav Wiberg
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
***********************************************************************************************
The information contained in this e-mail is confidential and may be subject to legal privilege.
Access to this e-mail by anyone other than the intended recipient is unauthorised.
If you are not the intended recipient you must not use, copy, distribute or disclose the e-mail or
any part of its contents or take any action in reliance on it. If you have received this e-mail in
error, please notify us immediately by e-mail (postmaster@jacklinenterprises.com) or telephone (+27
11 265 4200).
This message is free of all known viruses. It has been screened for viruses by Blockmail.
***********************************************************************************************