Welcome Guest, Not a member yet? Register   Sign In
Finding Value in Array using isset
#13

[eluser]Fielder[/eluser]
It looks like before the merge, the keys are the store_ids (ie 2975). After the merge, the keys in the original $storeArray were changed to 0, 1, 2, 3, etc...

So somehow $storeArray[2975] is being changed to $storeArray[0].

I ran this code
Code:
echo '<hr />';
foreach ($storeArray as $key => $val)
{
    echo $key.'<br />';
}
echo '<hr />';

Maybe this helps.
$storeArray keys before merge:
Quote:2975
2732
2768
3133
2766
2771
2930
2923

$storeArray keys after merge:
Quote: 0
1
2
3
4
5
6
7
Appletree
Fiesta
HEB
Zieglers
Food Town


Messages In This Thread
Finding Value in Array using isset - by El Forum - 11-07-2009, 06:14 PM
Finding Value in Array using isset - by El Forum - 11-07-2009, 06:33 PM
Finding Value in Array using isset - by El Forum - 11-07-2009, 08:03 PM
Finding Value in Array using isset - by El Forum - 11-07-2009, 09:42 PM
Finding Value in Array using isset - by El Forum - 11-07-2009, 10:00 PM
Finding Value in Array using isset - by El Forum - 11-07-2009, 11:12 PM
Finding Value in Array using isset - by El Forum - 11-07-2009, 11:29 PM
Finding Value in Array using isset - by El Forum - 11-07-2009, 11:43 PM
Finding Value in Array using isset - by El Forum - 11-08-2009, 12:40 AM
Finding Value in Array using isset - by El Forum - 11-08-2009, 10:46 AM
Finding Value in Array using isset - by El Forum - 11-08-2009, 11:41 AM
Finding Value in Array using isset - by El Forum - 11-08-2009, 11:55 AM
Finding Value in Array using isset - by El Forum - 11-08-2009, 12:04 PM
Finding Value in Array using isset - by El Forum - 11-08-2009, 12:13 PM
Finding Value in Array using isset - by El Forum - 11-08-2009, 12:18 PM
Finding Value in Array using isset - by El Forum - 11-08-2009, 06:22 PM



Theme © iAndrew 2016 - Forum software by © MyBB