How to extract array Keys to String in an array PHP
I need to extract a associative array keys into a string and implode with "/" or any character/symbols. For eg: $array = array([key1] => array([key11] => array([key111] => 'value111', [key112] => 'value112', [key113] => 'value113', ), ), ); I need an output as below array: array([0] => 'key1/key11/key111',[1] => 'key1/key11/key112', [2] => 'key1/key11/key112');
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.