SyntaxFix
Write A Post
Hire A Developer
Questions
$lastValue = end(array_values($array))
No modification is made to $array pointers. This avoids the
reset($array)
which might not be desired in certain conditions.