如何阅读和打印此PHP数组

时间:2017-09-07 12:39:38

标签: php html html5

我juste想知道如何阅读和打印值“client_unique_identifier”  在这个PHP数组中: 这是图书馆链接:http://ts3admin.info 特别是这个功能:http://ts3admin.info/manual/classts3admin.html#aa73eb538596ef6bd5760a5601a819a69 从库到ts3的输出。

  Array
    {
     [cid] => 2
     [client_idle_time] => 4445369
     [client_unique_identifier] => nUixbsq/XakrrmbqU8O30R/D8Gc=
     [client_nickname] => par0noid
     [client_version] => 3.0.9.2 [Build: 1351504843]
     [client_platform] => Windows
     [client_input_muted] => 1
     [client_output_muted] => 1
     [client_outputonly_muted] => 0
     [client_input_hardware] => 1
     [client_output_hardware] => 1
     [client_default_channel] => 
     [client_meta_data] => 
     [client_is_recording] => 0
     [client_version_sign] => ldWL49uDKC3N9uxdgWRMTOzUabc1nBqUiOa+Nal5HvdxJiN4fsTnmmPo5tvglN7WqoVoFfuuKuYq1LzodtEtCg==
     [client_security_hash] => 
     [client_login_name] => 
     [client_database_id] => 2
     [client_channel_group_id] => 5
     [client_servergroups] => 6
     [client_created] => 1361027850
     [client_lastconnected] => 1361027850
     [client_totalconnections] => 1
     [client_away] => 0
     [client_away_message] => 
     [client_type] => 0
     [client_flag_avatar] => 
     [client_talk_power] => 75
     [client_talk_request] => 0
     [client_talk_request_msg] => 
     [client_description] => 
     [client_is_talker] => 0
     [client_month_bytes_uploaded] => 0
     [client_month_bytes_downloaded] => 0
     [client_total_bytes_uploaded] => 0
     [client_total_bytes_downloaded] => 0
     [client_is_priority_speaker] => 0
     [client_nickname_phonetic] => 
     [client_needed_serverquery_view_power] => 75
     [client_default_token] => 
     [client_icon_id] => 0
     [client_is_channel_commander] => 0
     [client_country] => 
     [client_channel_group_inherited_channel_id] => 2
     [client_badges] => Overwolf=0
     [client_base64HashClientUID] => jneilbgomklpfnkjclkoggokfdmdlhnbbpmdpagh
     [connection_filetransfer_bandwidth_sent] => 0
     [connection_filetransfer_bandwidth_received] => 0
     [connection_packets_sent_total] => 12130
     [connection_bytes_sent_total] => 542353
     [connection_packets_received_total] => 12681
     [connection_bytes_received_total] => 592935
     [connection_bandwidth_sent_last_second_total] => 82
     [connection_bandwidth_sent_last_minute_total] => 92
     [connection_bandwidth_received_last_second_total] => 84
     [connection_bandwidth_received_last_minute_total] => 88
     [connection_connected_time] => 5908749
     [connection_client_ip] => 127.0.0.1
    } 
提前谢谢 FEDE

1 个答案:

答案 0 :(得分:-1)

您可以使用提取功能并使用数组键作为变量

示例:

$arr = [
  'key1' => 'test1',
  'key2' => 'test2'
];

extract($arr);

echo $key1; // it will print 'test1'