level1 level2
Who we are
. Welcome from jay(video)
. mission statement (Copy)
. vision(Copy)
. what we believe(copy)
. FAQ (copy)
Connect
. History
. Executive Profiles
. Resort Art
. Charities
. Blog
What's up
Staff
Contact
Give
[page_id] of level1 elements are same as [page_parent_id] of level
this is only field common between level1 & level2
My question is, what is the coding to print below array in above format?
(Using OOPS)
Array is here:
Debug:
Expand|Select|Wrap|Line Numbers
- Array
- (
- [0] => Array
- (
- [page_id] => 18
- [page_post_slug] => who-we-are.htm
- [page_title] => Who we are
- [page_level] => 1
- [page_parent_id] => 2
- )
- [1] => Array
- (
- [page_id] => 19
- [page_post_slug] => connect.htm
- [page_title] => Connect
- [page_level] => 1
- [page_parent_id] => 2
- )
- [2] => Array
- (
- [page_id] => 21
- [page_post_slug] => what-s-up.htm
- [page_title] => What's up
- [page_level] => 1
- [page_parent_id] => 2
- )
- [3] => Array
- (
- [page_id] => 22
- [page_post_slug] => staff.htm
- [page_title] => Staff
- [page_level] => 1
- [page_parent_id] => 2
- )
- [4] => Array
- (
- [page_id] => 23
- [page_post_slug] => contact.htm
- [page_title] => Contact
- [page_level] => 1
- [page_parent_id] => 2
- )
- [5] => Array
- (
- [page_id] => 24
- [page_post_slug] => give.htm
- [page_title] => Give
- [page_level] => 1
- [page_parent_id] => 2
- )
- [6] => Array
- (
- [page_id] => 25
- [page_post_slug] => welcome-from-jay-video-.htm
- [page_title] => Welcome from jay(video)
- [page_level] => 2
- [page_parent_id] => 18
- )
- [7] => Array
- (
- [page_id] => 26
- [page_post_slug] => mission-statement--copy-.htm
- [page_title] => mission statement (Copy)
- [page_level] => 2
- [page_parent_id] => 18
- )
- [8] => Array
- (
- [page_id] => 27
- [page_post_slug] => vision-copy-.htm
- [page_title] => vision(Copy)
- [page_level] => 2
- [page_parent_id] => 18
- )
- [9] => Array
- (
- [page_id] => 28
- [page_post_slug] => what-we-believe-copy-.htm
- [page_title] => what we believe(copy)
- [page_level] => 2
- [page_parent_id] => 18
- )
- [10] => Array
- (
- [page_id] => 29
- [page_post_slug] => faq--copy-.htm
- [page_title] => FAQ (copy)
- [page_level] => 2
- [page_parent_id] => 18
- )
- [11] => Array
- (
- [page_id] => 30
- [page_post_slug] => history.htm
- [page_title] => History
- [page_level] => 2
- [page_parent_id] => 19
- )
- [12] => Array
- (
- [page_id] => 31
- [page_post_slug] => executive-profiles.htm
- [page_title] => Executive Profiles
- [page_level] => 2
- [page_parent_id] => 19
- )
- [13] => Array
- (
- [page_id] => 32
- [page_post_slug] => resort-art.htm
- [page_title] => Resort Art
- [page_level] => 2
- [page_parent_id] => 19
- )
- [14] => Array
- (
- [page_id] => 33
- [page_post_slug] => charities.htm
- [page_title] => Charities
- [page_level] => 2
- [page_parent_id] => 19
- )
- [15] => Array
- (
- [page_id] => 34
- [page_post_slug] => blog.htm
- [page_title] => Blog
- [page_level] => 2
- [page_parent_id] => 19
- )
- )