Return array from function
Posted: Thu Oct 01, 2009 9:07 pm
I am trying to return a couple variables from a function. I am getting the following error.
Error Message
Parse error: parse error in D:\Documents and Settings\414004425\My Documents\My Websites\PETdb\md4c5.php on line 177
I have been looking at the book and cannot see the problem. What am I misssing?
Error Message
Parse error: parse error in D:\Documents and Settings\414004425\My Documents\My Websites\PETdb\md4c5.php on line 177
Code: Select all
Function purchase_request($string) {
return array($pr1, $pr2) = explode("/",$string);
}