Update as in how exactly?
Basically from what ive seen your better in just leaving this sublinks links in the HTML and not even deal with it with PHP.
However the best way if your going to have a dynamic based Navigation would be databases and put things into sub sections etc. Then just build HTML templates of them depending on whether there a link or a sub link.