Home >Backend Development >PHP Tutorial >linq-PHP two-dimensional array search data, how to implement conditional query
linqphp
Find array:
$roots = array[
0=>[ id =>1, name =>'a', state = 1],
1=>[id =>2, name =>'b'state = 1],
.... 8000 pieces of data are omitted here
];
Query conditions: I want to search based on Name (for example, Name = 'a'). In addition to traversing, there are other Method?
Or is there any ready-made function that can be used? 2. If I search based on the State and Name conditions at the same time, how should I implement it?