Skip to content
Advertisement

Tag: format

Format simpe array in multidimensional

I have a simple array in PHP like this : I want to convert this array in multidimensional width underscore as separator : I can do this with the following uggly code : How can I do this with a pretty function ? Thanks for reply Answer It’s pretty easy to achieve by iterating and adding branch by branch to

Advertisement