Brimbox Logo Brimbox Version 2.3.4 Released


Method to flatten a array tree generated by recursive parent function, namely function bb_get_directory_tree()

Class: bb_main, called as $main

File: bb_functions.php (php)


function array_flatten($a)


$flat_array = $main->array_flatten($a);

Returns: flattened array of values from a nested array of values.

Note: method built specifically for function get_directory_tree

Parameter: $a (array, tree stuctured)
Nested array from recursive tree parse.

Updated: 2016-06-16