array_pop() to take out last element and returning the same of the array in PHP
PHP array_pop() - WayToLearnX
PHP】array_pop()で配列の末尾から要素を抜き出す!|Sossyの助太刀ブログ
PHP interview questions | php interview questions and answers | top 70 php interview questions and answers | top 70 php interview questions and answers for 0 – 4 years experience – Learn WebTech
PHP Delete Array Element with Built-in Function – iTechSheet