web_business_meta_clean

The Business Responsive web business meta clean function.

Description

web_business_meta_clean( &$arr ); 

Parameters (1)

0. $arr
The arr.

Usage

  1. if ( !function_exists( 'web_business_meta_clean' ) ) { 
  2. require_once '/custom/meta-functions.php'; 
  3.  
  4. // The arr. 
  5. $arr = &$arr; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = web_business_meta_clean($arr); 
  9.  

Defined (1)

The function is defined in the following location(s).

/custom/meta-functions.php  
  1. function web_business_meta_clean(&$arr) 
  2. if (is_array($arr)) 
  3. foreach ($arr as $i => $v) 
  4. if (is_array($arr[$i]))  
  5. web_business_meta_clean($arr[$i]); 
  6.  
  7. if (!count($arr[$i]))  
  8. unset($arr[$i]); 
  9. else  
  10. if (trim($arr[$i]) == '')  
  11. unset($arr[$i]); 
  12.  
  13. if (!count($arr))  
  14. $arr = NULL;