Jump to content

Print only certian Arrays!


al

Recommended Posts

Hi PHP Coders.

I have this arrays and would like to display only the ones that are [type] => A not AAAA.

Is this possible?

Thanks

 


Array
(
    [0] => Array
        (
            [name] => ns1.localhost.com
            [type] => A
            [class] => IN
            [ttl] => 98007
            [rdlength] => 4
            [rdata] => �Hdd
            [address] => 192.168.0.1
        )

    [1] => Array
        (
            [name] => ns1.localhost.com
            [type] => A
            [class] => IN
            [ttl] => 259200
            [rdlength] => 4
            [rdata] => �Hd
            [address] => 192.168.0.2
        )

[2] => Array
        (
            [name] => ns3.localhost.com
            [type] => AAAA
            [class] => IN
            [ttl] => 259200
            [rdlength] => 4
            [rdata] => �Hd
            [address] => 192.168.0.3
)


Link to comment
https://forums.phpfreaks.com/topic/191627-print-only-certian-arrays/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.