ThinkChat🤖让你学习和工作更高效,注册即送10W Token,即刻开启你的AI之旅 广告
# array\_value() ## array\_value() ``` <pre class="calibre11">``` array_value($arr, $key, $default = '') ``` ``` #### 【功能】 以无 Notice 的方式返回数组中指定的键对应的值。 #### 【参数】 ``` <pre class="calibre11">``` $arr:数组 $key:键名 $default: 在不存在的时候,默认值 ``` ``` #### 【用例】 ``` <pre class="calibre11">``` <?php include './xiunophp/xiunophp.php'; echo array_value($_SERVER, 'REMOTE_ADDR'); ?> ``` ```