denoteone Posted September 12, 2010 Share Posted September 12, 2010 I need to find out how many times the "mac" key show is in an array. Array ( [serial] => Robert [added] => Peter [mac] => 1232091823 [mac] => 7538572375 [mac] =>943820348239804 [place] =>home ) Quote Link to comment Share on other sites More sharing options...
Hypnos Posted September 12, 2010 Share Posted September 12, 2010 Arrays don't work like that. Keys are unique identifiers. If you try to define "mac" more than once then you're overwriting the previous value for "mac". Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.