Return array values
View Single Post
04-24-2009, 12:38 AM
Join Date: Feb 2009
Location: New York
Originally Posted by
Nice, but I'm not sure that is telling what the values are in the new array? Or am I misreading the code.
Remember, I am creating an array with:
I know the values are correct going in, and I just want to make sure my new array variables ("first_name", "last_name", and "email") have the correct values passed to them.
Ok well say your function is called: myFunction.
You can try this...
list($first_name,$last_name,$email) = myFunction();
echo "$first_name $last_name $email";
View Public Profile
Send a private message to allworknoplay
Find More Posts by allworknoplay