note 69745 added to function.array-diff

From: Date: Tue, 19 Sep 2006 12:58:32 +0000
Subject: note 69745 added to function.array-diff
Groups: php.notes 
Request: Send a blank email to php-notes+get-117308@lists.php.net to get a copy of this message
Dear Thorsten Schaak, you made a mistake. Your example is buggy, not PHP. Check the proper syntax, check PHP errors/warnings/notices PHP deals okay with empty arrays, try yourself: <?php $a = array( 'a', 'b', 'c', 'd', 'e' ); $b = array( 'b', 'c' ); $c = array( ) ; print_r( array_diff( $a, $b ) ); print_r( array_diff( $a, $c ) ); print_r( array_diff( $c, $b ) ); print_r( array_diff( $c, $c ) ); ?> ---- Server IP: 66.163.161.117 Probable Submitter: 62.179.74.235 ---- Manual Page -- http://www.php.net/manual/en/function.array-diff.php Edit -- https://master.php.net/note/edit/69745 Del: integrated -- https://master.php.net/note/delete/69745/integrated Del: useless -- https://master.php.net/note/delete/69745/useless Del: bad code -- https://master.php.net/note/delete/69745/bad+code Del: spam -- https://master.php.net/note/delete/69745/spam Del: non-english -- https://master.php.net/note/delete/69745/non-english Del: in docs -- https://master.php.net/note/delete/69745/in+docs Del: other reasons-- https://master.php.net/note/delete/69745 Reject -- https://master.php.net/note/reject/69745 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#117308) next »