Source Code:
(back to article)
<?php $fruits = ['apple', 'banana', 'cherry']; $last_fruit = end($fruits); print_r($last_fruit);
Result:
Report an issue