|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2001-11-29 13:11 UTC] derick@php.net
[2001-11-29 13:48 UTC] torben@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Nov 05 06:00:01 2025 UTC |
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