Huhu Andreas
$arr=array('a'=> $haystack);
was ist bitte der Unterschied zw.
$arr=array('a'=> $haystack); und $arr=array( $haystack);??
im ersten Fall bekommst Du ein assoziatives Array mit genau einem Key-Value Paar nämlich
$arr['a'] => $haystack;
im zweiten Fall im Prinzip das gleiche halt nur mit nummerischem Key
$arr[0] => $haystack;
Warum geht nur das erte mit array_diff() und das 2. nicht???
poste doch bitte nochmal den Teil mit array_diff.
Viele Grüße
lulu