acymailing_error_handler_encoding

The MailPoet Newsletters acymailing error handler encoding function.

Description

acymailing_error_handler_encoding( $errno, (string) $errstr = '' ); 

Parameters (2)

0. $errno
The errno.
1. $errstr — Optional. (string) => ''
The errstr.

Usage

  1. if ( !function_exists( 'acymailing_error_handler_encoding' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'mailpoet-newsletters/helpers/encoding.php'; 
  3.  
  4. // The errno. 
  5. $errno = null; 
  6.  
  7. // The errstr. 
  8. $errstr = ''; 
  9.  
  10. // NOTICE! Understand what this does before running. 
  11. $result = acymailing_error_handler_encoding($errno, $errstr); 
  12.  

Defined (1)

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

/helpers/encoding.php  
  1. function acymailing_error_handler_encoding($errno, $errstr='') { 
  2. static $error = false; 
  3. if(is_string($errno) && $errno=='result') { 
  4. $currentError = $error; 
  5. $error = false; 
  6. return $currentError; 
  7. $error = true; 
  8. return true;