testTruthy() public static method

Is array and its values truthy?
public static testTruthy ( array | Traversable $a ) : boolean
$a array | Traversable
return boolean
Ejemplo n.º 1
0
 /**
  * Is filter active?
  * @return boolean
  */
 public function isFilterActive()
 {
     $is_filter = ArraysHelper::testTruthy($this->filter);
     return $is_filter || $this->force_filter_active;
 }