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 ) Link to comment https://forums.phpfreaks.com/topic/213242-count-how-many-times-a-specific-key-show-in-an-array/ 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". Link to comment https://forums.phpfreaks.com/topic/213242-count-how-many-times-a-specific-key-show-in-an-array/#findComment-1110338 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.