how to create a function and return two parameters????
| From: | Scott Fletcher | Date: | Wed, 19 Nov 2003 20:07:09 +0000 |
| Subject: | how to create a function and return two parameters???? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-170339@lists.php.net to get a copy of this message | ||
Hi Everyone!
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--
function CBC_XML_BreakUp($strResponse_XML, $strResponse_HTML)
{
global $res_str;
$strResponse_XML = substr($res_str, 0, 100);
$strResponse_HTML = substr($res_str, 200, 100);
return $strResponse_XML,$strResponse_HTML;
}
--snip--
Thanks,
Scott