Heim > Artikel > Backend-Entwicklung > php二维数组应用举例-根据条件取数据
php二维数组应用举例-根据条件取数据,假如数组$point_arr(如下),请取出 user_id = 3的那一行数组。
php二维数组应用举例-根据条件取数据,假如数组$point_arr(如下),请取出 user_id = 3的那一行数组。
1,"id"=>1,"point"=>2),
array("id"=>2,"id"=>3,"point"=>2),
array("id"=>3,"id"=>3,"point"=>2),
array("id"=>4,"id"=>3,"point"=>2),
);
for($i = 0;$i |