note 112916 deleted from function.array-diff by cmb

From: Date: Sun, 17 Mar 2019 09:25:18 +0000
Subject: note 112916 deleted from function.array-diff by cmb
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-210383@lists.php.net to get a copy of this message
Note Submitter: Anonymous ---- Please note that array_diff cannot compare with an undefined array. For example: <?php $array1 = array ("ABC", "DEF"); $Result = $array_diff( $array1, $array2); var_dump($Result); ?> will output NULL NULL. If your script causes an undefined array (like mine did) it can be hard to find the mistake. Greetings

« previous php.notes (#210383) next »