$lastValue = array_values(array_slice($spread, -1))[0];
Reference:
https://stackoverflow.com/questions/3687358/whats-the-best-way-to-get-the-last-element-of-an-array-without-deleting-it
Your email address will not be published. Required fields are marked *
Comment *
Name*
Email*
Website
Save my name, email, and website in this browser for the next time I comment.
Δ