From: [EMAIL PROTECTED] Operating system: W2K PHP version: 4.0.6 PHP Bug Type: Scripting Engine problem Bug description: array_diff takes string as second argument
Seems like array_diff will take a string as second argument, e.g. array_diff ($bla, "fred") where $bla is an array. No error or warning will appear, and array_diff will not work as expected (which would be removing "fred" from $bla). Of course everything works fine using array_diff ($bla, array ("fred")) However, for the above case imho there should either be a compiler warning or a note added to the manual. Steve -- Edit bug report at: http://bugs.php.net/?id=14287&edit=1 -- PHP Development 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]