有两个array
:
$tClasseMenu = array();
$tDroitsClassMenu = array();
for ($i = 0; $i < $data['user']['classMenus']['cnt']; $i++)
{
$tClasseMenu[$i] = $data['user']['classMenus'][$i]['class_menu_code'];
for ($j = 0; $j < $data['user']['droit']['cnt']; $j++)
{
$tDroitsClassMenu[$i][$j] = $data['user']['droit'][$j]['class_menu_code'];
}
}
这些数组中的数据示例如下:
class_menu_code = 7 , droit classmenucode = 6
class_menu_code = 7 , droit classmenucode = 6
class_menu_code = 7 , droit classmenucode = 6
class_menu_code = 7 , droit classmenucode = 6
class_menu_code = 7 , droit classmenucode = 6
class_menu_code = 7 , droit classmenucode = 4
class_menu_code = 7 , droit classmenucode = 4
class_menu_code = 7 , droit classmenucode = 4
class_menu_code = 7 , droit classmenucode = 4
class_menu_code = 7 , droit classmenucode = 4
class_menu_code = 7 , droit classmenucode = 2
class_menu_code = 7 , droit classmenucode = 2
class_menu_code = 7 , droit classmenucode = 2
class_menu_code = 7 , droit classmenucode = 2
class_menu_code = 7 , droit classmenucode = 2
class_menu_code = 7 , droit classmenucode = 2
class_menu_code = 8 , droit classmenucode = 6
class_menu_code = 8 , droit classmenucode = 6
class_menu_code = 8 , droit classmenucode = 6
class_menu_code = 8 , droit classmenucode = 6
class_menu_code = 8 , droit classmenucode = 6
class_menu_code = 8 , droit classmenucode = 4
class_menu_code = 8 , droit classmenucode = 4
class_menu_code = 8 , droit classmenucode = 4
class_menu_code = 8 , droit classmenucode = 4
class_menu_code = 8 , droit classmenucode = 4
class_menu_code = 8 , droit classmenucode = 2
class_menu_code = 8 , droit classmenucode = 2
class_menu_code = 8 , droit classmenucode = 2
class_menu_code = 8 , droit classmenucode = 2
class_menu_code = 8 , droit classmenucode = 2
class_menu_code = 8 , droit classmenucode = 2
class_menu_code = 3 , droit classmenucode = 6
class_menu_code = 3 , droit classmenucode = 6
class_menu_code = 3 , droit classmenucode = 6
class_menu_code = 3 , droit classmenucode = 6
class_menu_code = 3 , droit classmenucode = 6
class_menu_code = 3 , droit classmenucode = 4
class_menu_code = 3 , droit classmenucode = 4
class_menu_code = 3 , droit classmenucode = 4
class_menu_code = 3 , droit classmenucode = 4
class_menu_code = 3 , droit classmenucode = 4
class_menu_code = 3 , droit classmenucode = 2
class_menu_code = 3 , droit classmenucode = 2
class_menu_code = 3 , droit classmenucode = 2
class_menu_code = 3 , droit classmenucode = 2
class_menu_code = 3 , droit classmenucode = 2
class_menu_code = 3 , droit classmenucode = 2
class_menu_code = 1 , droit classmenucode = 6
class_menu_code = 1 , droit classmenucode = 6
class_menu_code = 1 , droit classmenucode = 6
class_menu_code = 1 , droit classmenucode = 6
class_menu_code = 1 , droit classmenucode = 6
class_menu_code = 1 , droit classmenucode = 4
class_menu_code = 1 , droit classmenucode = 4
class_menu_code = 1 , droit classmenucode = 4
class_menu_code = 1 , droit classmenucode = 4
class_menu_code = 1 , droit classmenucode = 4
class_menu_code = 1 , droit classmenucode = 2
class_menu_code = 1 , droit classmenucode = 2
class_menu_code = 1 , droit classmenucode = 2
class_menu_code = 1 , droit classmenucode = 2
class_menu_code = 1 , droit classmenucode = 2
class_menu_code = 1 , droit classmenucode = 2
class_menu_code = 5 , droit classmenucode = 6
class_menu_code = 5 , droit classmenucode = 6
class_menu_code = 5 , droit classmenucode = 6
class_menu_code = 5 , droit classmenucode = 6
class_menu_code = 5 , droit classmenucode = 6
class_menu_code = 5 , droit classmenucode = 4
class_menu_code = 5 , droit classmenucode = 4
class_menu_code = 5 , droit classmenucode = 4
class_menu_code = 5 , droit classmenucode = 4
class_menu_code = 5 , droit classmenucode = 4
class_menu_code = 5 , droit classmenucode = 2
class_menu_code = 5 , droit classmenucode = 2
class_menu_code = 5 , droit classmenucode = 2
class_menu_code = 5 , droit classmenucode = 2
class_menu_code = 5 , droit classmenucode = 2
class_menu_code = 5 , droit classmenucode = 2
class_menu_code = 6 , droit classmenucode = 6
class_menu_code = 6 , droit classmenucode = 6
class_menu_code = 6 , droit classmenucode = 6
class_menu_code = 6 , droit classmenucode = 6
class_menu_code = 6 , droit classmenucode = 6
class_menu_code = 6 , droit classmenucode = 4
class_menu_code = 6 , droit classmenucode = 4
class_menu_code = 6 , droit classmenucode = 4
class_menu_code = 6 , droit classmenucode = 4
class_menu_code = 6 , droit classmenucode = 4
class_menu_code = 6 , droit classmenucode = 2
class_menu_code = 6 , droit classmenucode = 2
class_menu_code = 6 , droit classmenucode = 2
class_menu_code = 6 , droit classmenucode = 2
class_menu_code = 6 , droit classmenucode = 2
class_menu_code = 6 , droit classmenucode = 2
class_menu_code = 4 , droit classmenucode = 6
class_menu_code = 4 , droit classmenucode = 6
class_menu_code = 4 , droit classmenucode = 6
class_menu_code = 4 , droit classmenucode = 6
class_menu_code = 4 , droit classmenucode = 6
class_menu_code = 4 , droit classmenucode = 4
class_menu_code = 4 , droit classmenucode = 4
class_menu_code = 4 , droit classmenucode = 4
class_menu_code = 4 , droit classmenucode = 4
class_menu_code = 4 , droit classmenucode = 4
class_menu_code = 4 , droit classmenucode = 2
class_menu_code = 4 , droit classmenucode = 2
class_menu_code = 4 , droit classmenucode = 2
class_menu_code = 4 , droit classmenucode = 2
class_menu_code = 4 , droit classmenucode = 2
class_menu_code = 4 , droit classmenucode = 2
class_menu_code = 2 , droit classmenucode = 6
class_menu_code = 2 , droit classmenucode = 6
class_menu_code = 2 , droit classmenucode = 6
class_menu_code = 2 , droit classmenucode = 6
class_menu_code = 2 , droit classmenucode = 6
class_menu_code = 2 , droit classmenucode = 4
class_menu_code = 2 , droit classmenucode = 4
class_menu_code = 2 , droit classmenucode = 4
class_menu_code = 2 , droit classmenucode = 4
class_menu_code = 2 , droit classmenucode = 4
class_menu_code = 2 , droit classmenucode = 2
class_menu_code = 2 , droit classmenucode = 2
class_menu_code = 2 , droit classmenucode = 2
class_menu_code = 2 , droit classmenucode = 2
class_menu_code = 2 , droit classmenucode = 2
class_menu_code = 2 , droit classmenucode = 2
class_menu_code = , droit classmenucode = 6
class_menu_code = , droit classmenucode = 6
class_menu_code = , droit classmenucode = 6
class_menu_code = , droit classmenucode = 6
class_menu_code = , droit classmenucode = 6
class_menu_code = , droit classmenucode = 4
class_menu_code = , droit classmenucode = 4
class_menu_code = , droit classmenucode = 4
class_menu_code = , droit classmenucode = 4
class_menu_code = , droit classmenucode = 4
class_menu_code = , droit classmenucode = 2
class_menu_code = , droit classmenucode = 2
class_menu_code = , droit classmenucode = 2
class_menu_code = , droit classmenucode = 2
class_menu_code = , droit classmenucode = 2
class_menu_code = , droit classmenucode = 2
如何测试 $tClasseMenu 中的值是否存在于 $tDroitsClassMenu 中?