There was a problem with filtering data in an array.
The bottom line is: 1. User GET sends filtering data.
index.php?type=filter&date=06.12&time=17:30&name=&price=&count=&address=&comment=
2. We have an array
array (size=76) 0 => array (size=8) 0 => string '06.2012' (length=7) 1 => string '17:59' (length=5) 2 => string 'Велик б' (length=13) 3 => string '150' (length=3) 4 => string '1' (length=1) 5 => string 'Киев' (length=8) 6 => string 'Доставка' (length=16) 7 => string '1471962977 ' (length=11) 1 => array (size=8) 0 => string '06.2011' (length=7) 1 => string '17:59' (length=5) 2 => string 'Велик б' (length=13) 3 => string '150' (length=3) 4 => string '1' (length=1) 5 => string 'Киев' (length=8) 6 => string 'Доставка' (length=16) 7 => string '1471962720 ' (length=11) 2 => array (size=8) 0 => string '06.2010' (length=7) 1 => string '17:59' (length=5) 2 => string 'Велик б' (length=13) 3 => string '150' (length=3) 4 => string '1' (length=1) 5 => string 'Киев' (length=8) 6 => string 'Доставка' (length=16) 7 => string '1471962116 ' (length=11)
- It is necessary to filter the data of the original array and return the filtered.
There are suggestions that you need to go through all the combinations. For example, if the date came together, check with the time, etc. But this option is time consuming and confusing. How can you do differently?