utf8_encode_recursive

The Ninja Forms utf8 encode recursive function.

Description

utf8_encode_recursive( $input ); 

Parameters (1)

0. $input
The input.

Usage

  1. if ( !function_exists( 'utf8_encode_recursive' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'ninja-forms/deprecated/includes/database.php'; 
  3.  
  4. // The input. 
  5. $input = null; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = utf8_encode_recursive($input); 
  9.  

Defined (1)

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

/deprecated/includes/database.php  
  1. function utf8_encode_recursive( $input ) { 
  2. if ( is_array( $input ) ) { 
  3. return array_map( __FUNCTION__, $input ); 
  4. }else{ 
  5. return utf8_encode( $input );