配列の最後の要素を取り出す
2017/02/05
PHP5.3.3
$stack = array("orange", "banana", "apple", "raspberry");
$fruit = array_pop($stack);
print_r($stack);
//"orange", "banana", "apple"
array_pop — 配列の末尾から要素を取り除く
http://php.net/manual/ja/function.array-pop.php
2017/02/05
PHP5.3.3
$stack = array("orange", "banana", "apple", "raspberry");
$fruit = array_pop($stack);
print_r($stack);
//"orange", "banana", "apple"
array_pop — 配列の末尾から要素を取り除く
http://php.net/manual/ja/function.array-pop.php