Re: arrays

From: Date: Fri, 09 Jun 2006 13:33:10 +0000
Subject: Re: arrays
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-237692@lists.php.net to get a copy of this message
On 6/9/06, Jesús Alain Rodríguez Santos <wmaster@cfg.jovenclub.cu> wrote:
if I have two arrays, example: $a = array ("one", "two", "three", "four", "two"); $b = array ("seven", "one", "three", "six", "five"); How can I get in another variable a new array with the same elements into $a and $b.
php.net/array_intersect will get you the common elements. Rabin

« previous php.general (#237692) next »