note 10740 added to array_intersect
| From: | lee at mediawaveonline dot com | Date: | Fri, 19 Jan 2001 21:51:32 +0000 |
| Subject: | note 10740 added to array_intersect | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-9978@lists.php.net to get a copy of this message | ||
array_intersect() only seems to work when the values are 16 char or less...
<?
// this doesnt work
$test_a[] = '974806802083190501';
$test_a[] = '974806802083190503';
$test_a[] = '974806802083190504';
$test_b[] = '974806802083190501';
$new_array = array_intersect($test_a, $test_b);
print_r($new_array);
?>
<?
// this does works
$test_a[] = '4806802083190501';
$test_a[] = '4806802083190503';
$test_a[] = '4806802083190504';
$test_b[] = '4806802083190501';
$new_array = array_intersect($test_a, $test_b);
print_r($new_array);
?>
php4.0.4pl1
Chris Lee
Mediawaveonline.com
http://www.php.net/manual/en/function.array-intersect.php