everbox_sanitize_bool

Sanitizes bool.

Description

everbox_sanitize_bool( $input ); 

Parameters (1)

0. $input
The input.

Usage

  1. if ( !function_exists( 'everbox_sanitize_bool' ) ) { 
  2. require_once '/inc/extras.php'; 
  3.  
  4. // The input. 
  5. $input = null; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = everbox_sanitize_bool($input); 
  9.  

Defined (1)

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

/inc/extras.php  
  1. function everbox_sanitize_bool( $input ) { 
  2. if($input) { 
  3. return 1; 
  4. return 0;