You would need to return both as elements of an array. -----Original Message----- From: Gustav Wiberg [mailto:[EMAIL PROTECTED] 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 ([EMAIL PROTECTED]) or telephone (+27 11 265 4200). This message is free of all known viruses. It has been screened for viruses by Blockmail. *********************************************************************************************** -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php