I have this php function :
<?php
global $searchandfilter;
$sf_current_query = $searchandfilter->get(108542)->current_query()->get_array();
echo '<pre>',print_r($sf_current_query,true),'</pre>';
?>
and as a result this multi-level array :
Array
(
[_sft_areas] => Array
(
[name] => Areas
[singular_name] => Area
[all_items_label] => All Areas
[type] => taxonomy
[active_terms] => Array
(
[0] => Array
(
[id] => 288
[name] => LA Zone
[value] => la-zone
[count] => 18
)
[1] => Array
(
[id] => 291
[name] => Bel Air
[value] => bel-air
[count] => 2
)
)
)
)
I'm gonna get rid of the print_r but I'm struggling to use a foreach function in order to echo something like this :
Areas : LA Zone, Bel Air.
I'm pretty new to php, can anyone help me with that ?
thanks !