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

[eluser]Fielder[/eluser]
I get these also

'Appletree' key comes from the merged array with $storeArray.
Code:
var_dump($storeArray['Appletree']);

Quote:array(11) { ["storename"]=> string(9) "Appletree" ["storenum"]=> string(5) "Total" ["newAd_count"]=> int(2) ["renewAd_count"]=> int(7) ["totAd_count"]=> int(9) ["spaces_count"]=> int(10) ["print"]=> int(0) ["lastqtrAd_count"]=> int(8) ["cancelled"]=> int(1) ["freeAd_count"]=> int(2) ["revenue"]=> string(8) "$ 345.04" }

and this actually gives me Undefined Offset on the var_dump, but still spits out the dump below.
Code:
var_dump($storeArray[2975]);

Quote:array(11) { ["storename"]=> string(9) "Appletree" ["storenum"]=> string(3) "736" ["newAd_count"]=> string(1) "0" ["renewAd_count"]=> string(1) "0" ["totAd_count"]=> string(1) "0" ["spaces_count"]=> string(1) "0" ["print"]=> string(1) "N" ["lastqtrAd_count"]=> string(1) "0" ["cancelled"]=> string(1) "0" ["freeAd_count"]=> string(1) "0" ["revenue"]=> string(6) "$ 0.00" }

and this gives me Undefined index on the var_dump as previously mentioned. Still spits out the dump below.
Code:
var_dump($storeArray['2975']);

Quote:array(11) { ["storename"]=> string(9) "Appletree" ["storenum"]=> string(3) "736" ["newAd_count"]=> string(1) "0" ["renewAd_count"]=> string(1) "0" ["totAd_count"]=> string(1) "0" ["spaces_count"]=> string(1) "0" ["print"]=> string(1) "N" ["lastqtrAd_count"]=> string(1) "0" ["cancelled"]=> string(1) "0" ["freeAd_count"]=> string(1) "0" ["revenue"]=> string(6) "$ 0.00" }


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