用php4中带的array_pop这个函数即可,函数原型: mixed array_pop(array array) 举个例子: 输出结果: old: php jsp asp new: php jsp
http://www.bkjia.com/phpjc/629512.htmlwww.bkjia.comtruehttp://www.bkjia.com/phpjc/629512.htmltecharticle用php4中带的array_pop这个函数即可,函数原型: mixed array_pop(array array) 举个例子: ? $array = array(‘php’,’jsp’,’asp’); $count = count($array); echo ‘old:br’; for(…