我的模板文件($data)中有一个数组,如下所示
$data.1.name
$data.1.date
$data.1.place
$data.2.name
$data.2.date
$data.2.place
$data.3.name
$data.3.date
$data.3.place
now I would like to check the entire array and remove an item where the date is older then today. The date check i figured out but i m stuck at removing the item.
所以假设第2项比较老,结果应该是
$data.1.name
$data.1.date
$data.1.place
$data.3.name
$data.3.date
$data.3.place
有人知道我是怎么做的吗?如果有可能的话?