Ben aşağıdaki url / dir1/dir2/page.php var
Ben yukarıdaki url oluşturan ebeveyn-> çocuk ilişkisinin bir dizi oluşturmak gerekiyor.
/dir1
|
|
/dir2/
|
|
page.php
örneğin:
array('dir1'=> array(
'child' => array( 'dir2' => array(
'child' => array(
'page' => array())))));
I tried using the recursive function but not able to figure out the logic. Please let me know if you need some more explanation.