1
我有一個數組:比較multidimsensional數組值
array (
[0] => Array (
[host] => google.nl
[class] => IN
[ttl] => 279310
[type] => NS
[target] => ns3.google.com)
[1] => Array (
[host] => google.nl
[class] => IN
[ttl] => 279310
[type] => NS
[target] => ns4.google.com)
[2] => Array (
[host] => google.nl
[class] => IN
[ttl] => 279310
[type] => NS
[target] => ns2.google.com)
這個陣列與dns_get_record()
功能製成。這是每個域的不同數量的變量。 如何將[0]['target']
與[1]['target']
和[2]['target']
進行比較,並且如果剩餘目標的數量更多?