Ummm, look like I'll stick with number two.  Didn't know about the "&" value
to pass value back and forth in PHP....

Thanks,
  Scott F.

"Chris W. Parker" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
Scott Fletcher <mailto:[EMAIL PROTECTED]>
    on Wednesday, November 19, 2003 12:07 PM said:

>     I wanted to know how do I return two parameters within a
> function.  I'm not having much luck with it.  I kept getting errors...
[snip]
>    return $strResponse_XML,$strResponse_HTML;

That's because it doesn't work like that. :)

Three solutions:

1. pass a value by reference i.e. function myfunction(&$value) {} AND
return something
2. don't return anything and pass both values by reference
3. stick both values in an array and return the array (easiest)


Chris.
--
Don't like reformatting your Outlook replies? Now there's relief!
http://home.in.tum.de/~jain/software/outlook-quotefix/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to