array_pop()函数
删除数组中的最后一个元素。如果数组为空则返回null。
示例:
<?php
$test_arr = array (
"name" => "jeanphorn",
"skill" => "programming",
"hobby" => "swimming",
);
echo array_pop($test_arr). "\n";
print_r($test_arr);
?>
array_pop()函数
删除数组中的最后一个元素。如果数组为空则返回null。
示例:
<?php
$test_arr = array (
"name" => "jeanphorn",
"skill" => "programming",
"hobby" => "swimming",
);
echo array_pop($test_arr). "\n";
print_r($test_arr);
?>