Stig Venaas wrote:
> So the arrays contain one string each? array_diff() won't work then.
Sorry - my fault.
I'm getting the values from a database - not manually added.
> Try this:
>
> $a = array(1, 2, 3, 4, 5);
> $b = array(1, 2);
> $test = array_diff($a, $b);
> $lines = count($test);
> echo $lines;
> var_dump($test);
I'm afraid I dont quite under stand the output you gave (maybe ... or do
you mean var_dump included the number of the array elements?)
M.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]