1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27: 28: 29: 30: 31: 32: 33: 34: 35: 36: 37:
Array ( [0] => Array ( [.id] => *2 [mac-address] => 00:00:00:00:00:EF [interface] => all [signal-range] => -120.120 [authentication] => true [forwarding] => true [ap-tx-limit] => 0 [client-tx-limit] => 0 [private-algo] => none [private-key] => [private-pre-shared-key] => [management-protection-key] => [disabled] => false ) [1] => Array ( [.id] => *1 [mac-address] => 00:00:00:00:00:ED [interface] => all [signal-range] => -120.120 [authentication] => false [forwarding] => true [ap-tx-limit] => 0 [client-tx-limit] => 0 [private-algo] => none [private-key] => [private-pre-shared-key] => [management-protection-key] => [disabled] => false ) )
1: 2: 3: 4: 5: 6:
<?php foreach ($main_array as $k => $sub_array) { if ($sub_array[mac-address] == '00:00:00:00:00:ED') echo $k; }