Locker\Helpers\Helpers::checkForNull PHP Method

checkForNull() static public method

|---------------------------------------------------------------------------
static public checkForNull ( $array )
    static function checkForNull($array)
    {
        foreach ($array as $key => $value) {
            if (is_array($value)) {
                Helpers::checkForNull($value);
            } else {
                if (!is_null($value)) {
                    //if the key is not extensions, then reject statement
                    //do something
                }
            }
        }
    }

Usage Example

 static function checkForNull($array)
 {
     foreach ($array as $key => $value) {
         if (is_array($value)) {
             Helpers::checkForNull($value);
         } else {
             if (!is_null($value)) {
                 //if the key is not extensions, then reject statement
                 //do something
             }
         }
     }
 }