[PHP] Re: problem with large arrays in php 4.3.2

2006-01-22 Thread Jesse Guardiani
Jesse Guardiani wingnet.net> writes: > > Hello, > > I have an old version of php (4.3.2) that is acting rather strangely. I'm > searching two large arrays (approx 22,000 records in each) using > array_diff_key() from the PEAR PHP_Compat library: > > $result = $args[0]; > foreac

[PHP] Re: problem with large arrays in php 4.3.2

2006-01-11 Thread James Benson
Their should be no problem with what your trying to do, try the following function, should act pretty much like array_diff(); if(!function_exists('array_diff')) { function array_diff($array1, $array2) { $difference = array(); foreach($array1 as $key => $value)