codeHex2utf

The Gravity PDF codeHex2utf function.

Description

codeHex2utf( $hex, (constant) $lo = true ); 

Parameters (2)

0. $hex
The hex.
1. $lo — Optional. (constant) => true
The lo.

Usage

  1. if ( !function_exists( 'codeHex2utf' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'gravity-pdf/vendor/blueliquiddesigns/mpdf/includes/functions.php'; 
  3.  
  4. // The hex. 
  5. $hex = null; 
  6.  
  7. // The lo. 
  8. $lo = true; 
  9.  
  10. // NOTICE! Understand what this does before running. 
  11. $result = codeHex2utf($hex, $lo); 
  12.  

Defined (1)

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

/vendor/blueliquiddesigns/mpdf/includes/functions.php  
  1. function codeHex2utf($hex, $lo=true) { 
  2. $num = hexdec($hex); 
  3. if (($num<128) && !$lo) return '&#x'.$hex.';'; 
  4. return code2utf($num, $lo);