note 91598 rejected from language.operators.array by danbrown

From: Date: Thu, 18 Jun 2009 19:29:40 +0000
Subject: note 91598 rejected from language.operators.array by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-157101@lists.php.net to get a copy of this message
Note Submitter: ayman1 at aol dot com ---- I wish there were a seventh array operator, - (minus sign), which would return the intersection of the two arrays, i.e., elements in that are common in both arrays but no other elements from either array. In a similar way, I can think of two more operators: > and <. The > operator would get the elements of array 1 that are not in array 2 and the < operator would extract the elements of array 2 that are not in array 1.

« previous php.notes (#157101) next »