Hi,
$array1 = d b a c e
$array2 = c b
$unterschied = array_diff($array, $array2);
Wenn ich aus diesen Pseudo-Arrays mal "richtige" mache, und damit teste -
liefert mir allerdings
$unterschied = d a c e
dann erhalte ich ein Array mit d, a, e als Elementen.
Hast du denn den folgenden Hinweis aus dem Manual bzgl. array_diff berücksichtigt?
Note: Two elements are considered equal if and only if (string) $elem1 === (string) $elem2. In words: when the string representation is the same.
MfG ChrisB
--
Light travels faster than sound - that's why most people appear bright until you hear them speak.
Light travels faster than sound - that's why most people appear bright until you hear them speak.