如何从数组中的特定键获取值?

I have the following array:

Array (
    [result] => Array (
        [id] => 58fba3ebf4
        [type] => A
        [name] => ser.domain.com
        [content] => 192.168.100.1
        [proxiable] => 
        [proxied] => 
        [ttl] => 1 
        [priority] => 10 
        [locked] => 
        [zone_id] => eb0d86828e3ac837c 
        [zone_name] => domain.com 
        [modified_on] => 2018-07-06T06:37:14.069598Z
        [created_on] => 2018-07-06T06:37:14.069598Z
        [meta] => Array (
            [auto_added] => 
            [managed_by_apps] => 
            [managed_by_argo_tunnel] => 
        )
    )
    [success] => 1
    [errors] => Array ( )
    [messages] => Array ( )
)

How can I just get the value from id?

$data =json_decode($response);

  $id = $data->result->id;

Assuming your payload from the request was $response.

Here is solution

// $result_array() is your reponse from curl PHP

$data = $result_array();

$id = $data['result']['id'];

You already have a multi-dimensional array so just try like this

echo $arrays['result']['id']; // this will return id
echo $arrays['result']['type']; // this will return type