how to get value of id, friendlyname, url and status for this multidimensional array, how to loop through array for specific value. Also how to get type and datetime for individual monitor based on the ID
Array
(
    [stat] => ok
    [offset] => 0
    [limit] => 50
    [total] => 4
    [monitors] => Array
        (
            [monitor] => Array
                (
                    [0] => Array
                        (
                            [id] => 778539790
                            [friendlyname] => Centaur
                            [url] => http://centaurdatacorp.in
                            [type] => 1
                            [subtype] => 
                            [keywordtype] => 
                            [keywordvalue] => 
                            [httpusername] => 
                            [httppassword] => 
                            [port] => 
                            [interval] => 300
                            [status] => 2
                            [alltimeuptimeratio] => 100
                            [log] => Array
                                (
                                    [0] => Array
                                        (
                                            [type] => 2
                                            [datetime] => 01/10/2017 10:16:51
                                        )
                                    [1] => Array
                                        (
                                            [type] => 98
                                            [datetime] => 01/10/2017 10:16:39
                                        )
                                )
                        )
                    [1] => Array
                        (
                            [id] => 778539794
                            [friendlyname] => Centaur dotcom
                            [url] => http://centaurdatacorp.com
                            [type] => 1
                            [subtype] => 
                            [keywordtype] => 
                            [keywordvalue] => 
                            [httpusername] => 
                            [httppassword] => 
                            [port] => 
                            [interval] => 300
                            [status] => 2
                            [alltimeuptimeratio] => 100
                            [log] => Array
                                (
                                    [0] => Array
                                        (
                                            [type] => 2
                                            [datetime] => 01/10/2017 10:17:22
                                        )
                                    [1] => Array
                                        (
                                            [type] => 98
                                            [datetime] => 01/10/2017 10:17:10
                                        )
                                )
                        )
                )
        )
)
 
    