Ben bu gibi birden fazla alt-dizileri ile bir dizi var:
Array
(
[0] => Array
(
[Page_ID] => 1
[Page_Parent_ID] => 0
[Page_Title] => Overview
[Page_URL] => overview
[Page_Type] => content
[Page_Order] => 1
)
[1] => Array
(
[0] => Array
(
[Page_ID] => 2
[Page_Parent_ID] => 1
[Page_Title] => Team
[Page_URL] => overview/team
[Page_Type] => content
[Page_Order] => 1
)
)
[2] => Array
(
[Page_ID] => 3
[Page_Parent_ID] => 0
[Page_Title] => Funds
[Page_URL] => funds
[Page_Type] => content
[Page_Order] => 2
)
[3] => Array
(
[0] => Array
(
[Page_ID] => 4
[Page_Parent_ID] => 3
[Page_Title] => Strategy
[Page_URL] => funds/strategy
[Page_Type] => content
[Page_Order] => 1
)
[1] => Array
(
[0] => Array
(
[Page_ID] => 7
[Page_Parent_ID] => 4
[Page_Title] => A Class Fund
[Page_URL] => funds/strategy/a-class-fund
[Page_Type] => content
[Page_Order] => 1
)
[1] => Array
(
[0] => Array
(
[Page_ID] => 10
[Page_Parent_ID] => 7
[Page_Title] => Information
[Page_URL] => funds/strategy/a-class-fund/information
[Page_Type] => content
[Page_Order] => 1
)
[1] => Array
(
[Page_ID] => 11
[Page_Parent_ID] => 7
[Page_Title] => Fund Data
[Page_URL] => funds/strategy/a-class-fund/fund-data
[Page_Type] => content
[Page_Order] => 2
)
)
[2] => Array
(
[Page_ID] => 8
[Page_Parent_ID] => 4
[Page_Title] => B Class Fund
[Page_URL] => funds/strategy/b-class-fund
[Page_Type] => content
[Page_Order] => 2
)
Eğer $ url olduğunu biliyorum eğer "fon / strateji / a-class-fon" Ben tek bir dizi sonuç (olurdu page_id = 7 döndüren bir işlev olduğunu geçmesi gerekiyor bu yüzden doğru Page_URL bulmak için bir işlev gerekir Bu örnekte dizi).
Aptal bir gün biraz sahip, herhangi bir yardım mutluluk duyacağız!