54 of 110 menu

The End of an Array in PHP

To output the last element of an array, the function array_pop is used. See the example:

<?php $arr = ['a', 'b', 'c']; echo array_pop($arr); ?>

Code execution result:

'c'
English
БеларускаяEspañolРусский
We use cookies for website operation, analytics, and personalization. Data processing is carried out in accordance with the Privacy Policy.
accept all customize decline