Function : not_empty

This function is the direct opposite of the not_empty() method. It tests if a value is not empty. This can be an array or trimmed string. By trimming strings before testing, it acts as a proof against empty spaces. The function is also capable of regarding non-empty values as empty values. Examples are shown below:

Syntax
  not_empty($testval, $includes)

  
  $testval: value to be tested
  $includes: values to be regarded as empty values
   
                  
Sample 1
  vdump(not_empty('10')); //true
                  
The value above is not empty value, hence, true is returned
Sample 2
  vdump(not_empty('')); //false
                  
The string value above is empty, hence, false is returned
Sample 3
  vdump(not_empty(' ')); //false
                  
The string value above contains only empty spaces, hence, false is returned
Sample 4
  vdump(not_empty([])); //false
                  
The array value above is empty, hence, false is returned
Sample 5
  vdump(not_empty('10', [5, 10, 15])); //false
                  
The value above exist in the empty values array list, hence, false is returned
Sample 6
  vdump(not_empty('10', [2, 4, 6])); //true
                  
The value above does not exist in the empty values array list, hence, true is returned