Get first key, last key, first value and last value in Array
Associative arrays are great, and they work perfectly when working with foreach. But what do you do if you just want the first key in the array or the last value?
Associative arrays are great, and they work perfectly when working with foreach. But what do you do if you just want the first key in the array or the last value?
A couple of years ago we published a short article with some tips on good string functions. Didn’t think it would be that appreciated, but lots of people has emailed us and thanked us for the examples and ideas on how to use the functions. So here we go again, a new function to explain: [...]