Login
From:
Amit Merchant
(Uncensored)
subscribe
Two new array methods are coming in PHP 8.5 — array_first() and array_last() — Amit Merchant — A blog on PHP, JavaScript, and more
https://www.amitmerchant.com/array-first-last-php-85/
links
backlinks
Tagged with:
php
Today, if you want to get the first or last element of an array in PHP effectively, you can use the reset() and end() functions respectively.
Roast topics
Find topics
Find it!