127 ? '\uc0{\u' . $value . '}' : chr($value); } } return $entities; } /** * Return name without underscore for < 0.10.0 variable name compatibility * * @param string $value * @return string */ public static function removeUnderscorePrefix($value) { if (!is_null($value)) { if (substr($value, 0, 1) == '_') { $value = substr($value, 1); } } return $value; } /** * Build control characters array. * * @return void */ private static function buildControlCharacters() { for ($i = 0; $i <= 19; ++$i) { if ($i != 9 && $i != 10 && $i != 13) { $find = '_x' . sprintf('%04s', strtoupper(dechex($i))) . '_'; $replace = chr($i); self::$controlCharacters[$find] = $replace; } } } }