Create HTML table from PHP Multidimensional array

I have a multidimensional array that is being built pulled from a file structure.

I am trying to use this array to create dynamic HTML tables based on the key for each item. The script I am using to pull the file structure is making each folder into the keys of the array.

So the array is outputting like this:

'array([english] => Array
	    (
	        [term1] => Array
	            (
	                [circ] => Array
	                    (
	                        [Unit1] => Array
	                            (
	                                [0] => file.zip
	                            )

	                        [Unit2] => Array
	                            (
	                                [0] => file.zip
	                            )

	                        [Unit3] => Array
	                            (
	                                [0] => file.zip
	                            )

	                        [Unit4] => Array
	                            (
	                                [0] => file.zip
	                            )

	                    )

	                [type] => Array
	                    (
	                        [Unit1] => Array
	                            (
	                                [0] => file.zip
	                            )

	                        [Unit2] => Array
	                            (
	                                [0] => file.zip
	                            )

	                        [Unit3] => Array
	                            (
	                                [0] => file.zip
	                           )

	                        [Unit4] => Array
	                            (
	                                [0] => file.zip
	                            )

	                    )

	            )

	        [term2] => Array
	            (
	                [circ] => Array
	                    (
	                        [Unit1] => Array
	                            (
	                                [0] => file.zip
	                            )

	                        [Unit2] => Array
	                            (
	                                [0] => file.zip
	                            )

	                        [Unit3] => Array
	                            (
	                                [0] => file.zip
	                            )

	                        [Unit4] => Array
	                            (
	                                [0] => file.zip
	                            )

	                    )

	                [type] => Array
	                    (
	                        [Unit1] => Array
	                            (
	                                [0] => file.zip
	                            )

	                        [Unit2] => Array
	                            (
	                                [0] => file.zip
	                            )

	                        [Unit3] => Array
	                            (
	                                [0] => file.zip
	                            )

	                        [Unit4] => Array
	                            (
	                                [0] => file.zip
	                            )

	                    )

	            )
	        )
	    )'

i need merge all table Similar
in this sample : english
and term1 andterm2 must be merge

array_merge_recursive()?

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.