【函数功能】
该函数将内部指针指向数组中的最后一个元素,并返回其值。
	【函数语法】
end (array &$array)
	【参数说明】
$array:必需,要使用的数组。
	【演示程序】
<?php
        /**
         * end (array &$array)
         * **/
        $array = array('site_name'=>'PHP1234','site_url'=>'php1234.cn','site_auth'=>'明礼馨德');
        echo (current($array));
        echo '<br>';
        echo (end($array));
        echo '<br>';
        var_dump(next($array));
?>
	【输出结果】
PHP1234
明礼馨德
bool(false)
	【特别注意】
1.如果数组为空则返回false。
2.PHP 版本:4+。
	【原版定义】
/**
 * Set the internal pointer of an array to its last element
 * @link http://www.php.net/manual/en/function.end.php
 * @param array array <p>
 * The array. This array is passed by reference because it is modified by
 * the function. This means you must pass it a real variable and not
 * a function returning an array because only actual variables may be
 * passed by reference.
 * </p>
 * @return mixed the value of the last element or false for empty array.
 */
转载请注明出处:php1234.cn ,原文地址:http://www.php1234.cn/a/functions/2017/0421/218.html