LitmusBlog
Monday, September 16, 2013
PHP Array flatten
Here's a handy way to convert a multi-dimensional array into a single-dimensional array in PHP. We simply recursively run array_merge() on the all the values inside the provided array:
No comments:
Post a Comment
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment