![]() |
|
Ê×Ò³ ©¦ Apache ©¦ Linux©¦ Java©¦ MySQL©¦ ×¢²á©¦°ïÖú | |||
ÈçҪͶËß»òÌá³öÒâ¼û½¨Ò飬Çëµ½
Õ¾Îñ½¨ÒéͶËß°É·´À¡¡£
[php]$array1=array (
0 =>
array (
'id' => 0,
'symbol' => 'moins',
'text' => 'test1',
'nb_childs' => 2,
'level' => 0,
'id_father' => -1,
'childs' =>
array (
0 => 1,
1 => 2,
),
'tree' =>
array (
),
),
1 =>
array (
'id' => 1,
'symbol' => 'milieu',
'text' => 'test1.1',
'nb_childs' => 0,
'level' => 1,
'id_father' => 0,
'childs' =>
array (
),
'tree' =>
array (
0 => 'vide',
),
),
2 =>
array (
'id' => 2,
'symbol' => 'moins',
'text' => 'test1.2',
'nb_childs' => 2,
'level' => 1,
'id_father' => 0,
'childs' =>
array (
0 => 3,
1 => 4,
),
'tree' =>
array (
0 => 'vide',
),
),
3 =>
array (
'id' => 3,
'symbol' => 'milieu',
'text' => 'test1.2.1',
'nb_childs' => 0,
'level' => 2,
'id_father' => 2,
'childs' =>
array (
),
'tree' =>
array (
0 => 'vide',
1 => 'vide',
),
),
4 =>
array (
'id' => 4,
'symbol' => 'angle',
'text' => 'test1.2.2',
'nb_childs' => 0,
'level' => 2,
'id_father' => 2,
'childs' =>
array (
),
'tree' =>
array (
0 => 'vide',
1 => 'vide',
),
),
);
$array2=array (
'element' =>
array (
0 =>
array (
'name' => 'test1',
'element' =>
array (
0 =>
array (
'name' => 'test1.1',
),
1 =>
array (
'name' => 'test1.2',
'element' =>
array (
0 =>
array (
'name' => 'test1.2.1',
),
1 =>
array (
'name' => 'test1.2.2',
),
),
),
),
),
),
);
[/php]
Íê³Éarray1µ½array2µÄת»»Ôõô×öºÃµã£¿ÓеãÍ·ÔΡ£¡£¡£Ð»Ð»ÁË

