Array
(
    [stat] => ok
    [offset] => 0
    [limit] => 50
    [total] => 1
    [monitors] => Array
        (
            [monitor] => Array
                (
                    [0] => Array
                        (
                            [id] => 
                            [friendlyname] => 
                            [url] => 
                            [type] => 3
                            [subtype] => 
                            [keywordtype] => 
                            [keywordvalue] => 
                            [httpusername] => 
                            [httppassword] => 
                            [port] => 
                            [interval] => 300
                            [status] => 2
                            [alltimeuptimeratio] => 100
                            [log] => Array
                                (
                                    [0] => Array
                                        (
                                            [type] => 2
                                            [datetime] => 11/24/2016 04:01:32
                                        )
                            [responsetime] => Array
                                (
                                    [0] => Array
                                        (
                                            [datetime] => 12/09/2016 19:34:02
                                            [value] => 109
                                        )
                                    [1] => Array
                                        (
                                            [datetime] => 12/09/2016 19:29:02
                                            [value] => 110
                                        )
                                    [2] => Array
                                        (
                                            [datetime] => 12/09/2016 19:24:02
                                            [value] => 110
                                        )
                                )
                        )
                )
        )
)
I need to get the value of datetime, and value from the responsetime array. I tried the following but it seems to not return anything.
foreach($multidim as $value) {
    foreach($value as $key => $val) {
        if($key == "responsetime") {
            echo $val[3];
        }
    }
}
Where $multidim is the large multi-dim array listed above. Any help is appreciated as I am not sure where to go from here.
Thank you in advance.
 
    