I have an array that is a complete list of "pages" for a CMS I have written.
I am wanting to filter the array in order to output a sub navigation for my site.
I felt that the filter_var_array() function would be suitable as it provides the ability to search on multiple criteria, however I cannot see that it works on multidimensional arrays.
A snippet of my code is below - what I am wanting to filter on is the parent and the hidden array variables:
Any suggestions ?
Thanks
Nigel
I am wanting to filter the array in order to output a sub navigation for my site.
I felt that the filter_var_array() function would be suitable as it provides the ability to search on multiple criteria, however I cannot see that it works on multidimensional arrays.
A snippet of my code is below - what I am wanting to filter on is the parent and the hidden array variables:
Code:
Array
(
[Home] => Array
(
[id] => 2
[type] => content
[name] => Home
[url] => Home
[parentID] => 1
[parentName] => Site
[parentURLName] => Site
[listorder] => 1
[contentid] => 1
[hidden] => 0
[title] => CMS
[metadescription] => CMS
[template] => public/templates/ug_template.html
[metakeywords] => CMS
)
Thanks
Nigel