Hi everyone! I'm the author of code.mu :)
I'd love to chat with my non-Russian audience. I'm looking for your feedback on the site and the translation quality. Let's chat:)
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