array_pop()函数
删除数组中的最后一个元素。如果数组为空则返回null。
示例:
<?php $test_arr = array ( "name" => "jeanphorn", "skill" => "programming", "hobby" => "swimming", ); echo array_pop($test_arr). "\\n"; print_r($test_arr); ?>
© 版权声明
THE END
array_pop()函数
删除数组中的最后一个元素。如果数组为空则返回null。
示例:
<?php $test_arr = array ( "name" => "jeanphorn", "skill" => "programming", "hobby" => "swimming", ); echo array_pop($test_arr). "\\n"; print_r($test_arr); ?>
暂无评论内容