Logo

Programming-Idioms

History of Idiom 165 > diff from v24 to v25

Edit summary for version 25 by ricardo_sdl:
New PHP implementation by user [ricardo_sdl]

Version 24

2018-08-18, 22:11:54

Version 25

2018-08-23, 01:02:19

Idiom #165 Last element of list

Assign to variable x the last element of list items.

Idiom #165 Last element of list

Assign to variable x the last element of list items.

Code
$x = end($items);
Doc URL
https://secure.php.net/manual/en/function.end.php
Demo URL
https://3v4l.org/GNkZK