PHP
1 2 3 4 5 6 7 8 9 10 11 12 |
$list_path_code = explode ( '.' , $structure [ 'page' ][ $c ][ 'path' ]);
$i = 1;
$param_code = 'list_parent_code' ;
$param_level = 'list_parent_level' ;
foreach ( $list_path_code as $key => $value )
{
$param_name = $param_code . $i ;
$ $param_name = $v ;
$param_name = $param_level . $i ;
$ $param_name = $k ;
$i ++;
}
|
Чисто показал принцып, а дальше доточить самому нужно под конкретное задание
Pavlo Tkachenko aka Dayver