嗨,我想知道是否有人能指出我对这个问题的正确方向,我只是不知道从哪里开始。通过嵌套数组循环测试并输出结果相同的结果
我有如下这种结构
Array (
[0] => Array ([day_id] => 1 [plan_id] => 3 [day_num] => 1 [schedule_time] => 1300866720 [checkin_time] => [fine] =>)
[1] => Array ([day_id] => 2 [plan_id] => 3 [day_num] => 2 [schedule_time] => 1300953120 [checkin_time] => [fine] =>)
[2] => Array ([day_id] => 3 [plan_id] => 3 [day_num] => 3 [schedule_time] => 1301039520 [checkin_time] => [fine] =>)
[3] => Array ([day_id] => 4 [plan_id] => 3 [day_num] => 4 [schedule_time] => 1301125920 [checkin_time] => [fine] =>))
我希望能够做的是循环通过它测试“schedule_time”的特定时间的数组,如果它匹配整个数组保存到一个新的阵列。所以说阵列0和1匹配它会输出这样
Array (
[0] => Array ([day_id] => 1 [plan_id] => 3 [day_num] => 1 [schedule_time] => 1300866720 [checkin_time] => [fine] =>)
[1] => Array ([day_id] => 2 [plan_id] => 3 [day_num] => 2 [schedule_time] => 1300953120 [checkin_time] => [fine] =>))
相同结构等