[PHP] different value in array

2006-07-29 Thread weetat
Hi all, I have 2 array which populated from MYSQL as shown below : My program will update status in the temporary table according to compare of 2 arrays, for example from 2 array below: in $temptablearr = there 3 elements in $currenttablearr = there 2 elements If value different

Re: [PHP] different value in array

2006-07-29 Thread Paul Novitski
At 11:18 PM 7/28/2006, weetat wrote: I have 2 array which populated from MYSQL as shown below : My program will update status in the temporary table according to compare of 2 arrays, for example from 2 array below: in $temptablearr = there 3 elements in $currenttablearr = there 2

Re: [PHP] different value in array

2006-07-29 Thread Paul Novitski
At 12:20 AM 7/29/2006, Paul Novitski wrote: You might consider concatenating all the elements in each sub-array to make the comparison logic simpler, e.g.: foreach ($currenttablearr as $key = $subarray) { $comparisonArray[$key] = explode(_, $subarray); }