Source Code:
(back to article)
<?php $array = [1, 2, 3, 4, 5]; $last_key = end($array); echo $last_key; // Outputs 5
Result:
Report an issue