Re: arrays

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 6/9/06, Jesús Alain Rodríguez Santos <wmaster@xxxxxxxxxxxxxxxx> 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

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux