<?php $a = [1, 2, 3, 4, 5]; foreach ($a as $key => $value) { if ($value == end($a)) { echo $value; } }
You have javascript disabled. You will not be able to edit any code.