Home >Backend Development >PHP Tutorial >PHP two-dimensional array application example - fetching data based on conditions

PHP two-dimensional array application example - fetching data based on conditions

WBOY
WBOYOriginal
2016-07-25 09:04:36955browse
PHP two-dimensional array application example - get data based on conditions, if the array $point_arr (as shown below), please take out the array row with user_id = 3.

php two-dimensional array application example - get data based on conditions, if the array $point_arr (as shown below), please take out the row of array with 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 "; } ?>



Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn