note 91598 added to language.operators.array

From: Date: Thu, 18 Jun 2009 19:22:58 +0000
Subject: note 91598 added to language.operators.array
Groups: php.notes 
Request: Send a blank email to php-notes+get-157100@lists.php.net to get a copy of this message
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. ---- Server IP: 209.41.74.194 Probable Submitter: 69.109.40.254 ---- Manual Page -- http://www.php.net/manual/en/language.operators.array.php Edit -- https://master.php.net/note/edit/91598 Del: integrated -- https://master.php.net/note/delete/91598/integrated Del: useless -- https://master.php.net/note/delete/91598/useless Del: bad code -- https://master.php.net/note/delete/91598/bad+code Del: spam -- https://master.php.net/note/delete/91598/spam Del: non-english -- https://master.php.net/note/delete/91598/non-english Del: in docs -- https://master.php.net/note/delete/91598/in+docs Del: other reasons-- https://master.php.net/note/delete/91598 Reject -- https://master.php.net/note/reject/91598 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#157100) next »