array_pop() definition and usage
array_pop() function deletes the last element in the array.
Syntax
array_pop(array) Parameter Description
array Required. Specifies the input array parameters.
Example
Copy code The code is as follows:
$a=array ("Dog","Cat","Horse");
array_pop($a);
print_r($a);
?>
Output:
Array ( [0] => Dog [1] => Cat )
http://www.bkjia.com/PHPjc/324608.htmlwww.bkjia.comtruehttp: //www.bkjia.com/PHPjc/324608.htmlTechArticlearray_pop() definition and usage array_pop() function deletes the last element in the array. Syntax array_pop(array) Parameter Description array Required. Specifies the input array parameters. Example Copy code...