that seems odd
I've got a function that returns an array something like you had in your
example. eg
function blah()
{
return array("C"=>3,"D"=>9,"M"=>1);
}
$arr = blah();
then doing echo $arr["C"] output's 3
-----Original Message-----
From: Jule Slootbeek [mailto:[EMAIL PROTECTED]]
Sent: Friday, June 07, 2002 1:06 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] return array
>
> try:
>
> list($doo, $dah) = my_function();
>
thanks alot
that was it
list ($array['name'], $array['password']);
Jule
--
Jule Slootbeek
[EMAIL PROTECTED]
http://blindtheory.cjb.net
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php