Quantcast
Channel: function – An Exploring South African
Viewing all articles
Browse latest Browse all 4

PHP: Implode a Multi-dimensional Array

$
0
0
PHP's implode is a pretty handy function to flatten any array into a single string value, using any piece of 'glue' (basically a substring) that you specifiy to put everything together. Of course, extending this function to handle multi-dimensional arrays (or matrices if you prefer) is a pretty simple matter of quickly whipping up a recursive version.

Viewing all articles
Browse latest Browse all 4

Trending Articles