Administrators Thanked: 265 mal
Если нужно просто посчитать вложенность:
$nesting_count = substr_count($structure['page'][$c]['path']), '.');