woopp_detect_cyr_utf8

The WooCommerce PDF & Print woopp detect cyr utf8 function.

Description

woopp_detect_cyr_utf8( $content ); 

Parameters (1)

0. $content
The content.

Usage

  1. if ( !function_exists( 'woopp_detect_cyr_utf8' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'woocommerce-pdf-print/functions.php'; 
  3.  
  4. // The content. 
  5. $content = null; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = woopp_detect_cyr_utf8($content); 
  9.  

Defined (1)

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

/functions.php  
  1. function woopp_detect_cyr_utf8($content) { 
  2. return preg_match('/ [78]\d/', mb_encode_numericentity($content, array(0x0, 0x2FFFF, 0, 0xFFFF), 'UTF-8'));