Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

array filter multiple conditions php

$item = array_values(array_filter($itmlist, function ($itmlist) {
    return ($itmlist['itmslsprc'] > 0 && $today >= $itmlist['itmslsfr']  &&  $today <= $itmlist['itmslsto']);
    }
));
Source by ittone.ma #
 
PREVIOUS NEXT
Tagged: #array #filter #multiple #conditions #php
ADD COMMENT
Topic
Name
7+6 =