title: Heirarchical Sub-Menu - PHP
body: <pre><code>====================================================================
  |   menu id    |    parent_id     |   menu            |   Level    |
  ====================================================================
  |    1         |        0         |   Control Panel   |      1     |
  ====================================================================
  |    2         |        1         |   Administrative  |      2     |
  ====================================================================
  |    3         |        2         |   Manage User     |      3     |
  ====================================================================
  |    4         |        2         |   Manage Role     |      3     |
  ====================================================================
  |    5         |        1         |   Change Password |      2     |
  ====================================================================
  </code></pre>
  
  <p>I have this table to create a sub-menu... the problem is don't know how echo the data and display the echoed data into like this: </p>
  
  <pre><code> - Control Panel
      - Administrative
          - Manage User
          - Manage Role
      - Change Password
  </code></pre>
  
  <p>Does anyone have the answer in PHP? Please I need this solution for my project. Please give me an example. Thank You!</p>