skt_pathway_sanitize_integer

The SKT Pathway skt pathway sanitize integer function.

Description

skt_pathway_sanitize_integer( $input ); 

Parameters (1)

0. $input
The input.

Usage

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

Defined (1)

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

/inc/customizer.php  
  1. function skt_pathway_sanitize_integer( $input ) { 
  2. if( is_numeric( $input ) ) { 
  3. return intval( $input );