Re: Please help with array_diff()
| From: | Unknown Sender | Date: | Fri, 09 Aug 2002 18:03:46 +0000 |
| Subject: | Re: Please help with array_diff() | ||
| References: | 1 2 3 4 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-111871@lists.php.net to get a copy of this message | ||
On Fri, Aug 09, 2002 at 07:50:46PM +0200, Gandalf wrote:
> Well of course $foo[0] contains the first dimension of the $foo array and
> the same goes for $bar[0].
>
> It is still not working as it should, i am close to going nuts.
If I understood you correctly, there is no element 0 in $foo and
no element 0 in $bar, only name and email or whatever it was.
The array array("name"=>"Gandalf",
"email"=>"gan@dalf.com") for
instance has no 0 element.
Or did I misunderstand you? When trying to understand how things work
or asking for help it's good ti simplify the script as much as possible.
Stig