#
DIFF.BLOG
New
Following
Discover
Jobs
More
Top Writers
Suggest a blog
Upvotes plugin
Report bug
Contact
About
Privacy
Sign up
The home for great developer writing.
We surface the best developer writing from thousands of independent blogs, updated daily.
Join Diff.blog
TOPICS
Two new array methods are coming in PHP 8.5 — array_first() and array_last()
·
Amit Merchant
·
May 2, 2025, 10:34 a.m.
PHP
Web Development
PHP
programming
Array Methods
Summary
PHP 8.5 introduces two new array methods: array_first() and array_last(), making it easier to retrieve the first and last elements of an array without using reset() and end().
Read full post on www.amitmerchant.com →
MORE POSTS LIKE THIS
Programming is Art
Adafruit Industries Blog ·
Sep 8, 2026
art
programming
How Loops Work in PHP: A Complete Guide for Beginners
freeCodeCamp.org ·
Jun 19, 2025
PHP
php7
PHP - A Lightweight Dev Setup for Windows
Daniel Opitz ·
Jun 1, 2025
Web Development
PHP
The new withAttributes method for relationships and scopes in Laravel
Amit Merchant ·
Feb 16, 2025
laravel
Web Development
Upgrade your PHP installs immediately to protect against php2shell
Jeff Geerling ·
Oct 21, 2026
Open Source
Web Development
Critical PHP RCE Vulnerabilities: Patch Now (CVE-2026-109618, CVE-2026-109619)
DigitalOcean ·
Oct 22, 2026
Trust & Security
Web Development
Discover more posts →
AUTHOR
Advertise
Sponsor diff.blog
Put your product in front of developers who read and write about their craft. One exclusive sponsor at a time.
Become a sponsor →
RECENT POSTS FROM THE AUTHOR
Choose how you want to continue.
Continue with GitHub
Continue with Google
By continuing, you agree to our
Privacy Policy
.