How to strtolower an array in PHP?

php Many times we store our data in array and need to perform some additional function to the array like strtolower, strtoupper, and etc. Before i get to know this handy function, I’ve been searching for the shortest code to perform strtolower to an array in php. Thank god, finally i found array_map function and it solved my many years problem.

To strtolower an array in php, use the code below:-


You may also check out the documentation on array_map

Related posts:

Share this with your friends:-

Leave a Reply