You are here

public static function FeedsJSONPathParser::stripFourBytes in Feeds JSONPath Parser 7

Strips four byte characters from a string.

Parameters

string $string: The input string.

Return value

string The string with four byte characters removed.

2 calls to FeedsJSONPathParser::stripFourBytes()
FeedsJSONPathParser::parseSourceElement in ./FeedsJSONPathParser.inc
Parses one item from the context array.
FeedsJSONPathParserTestCase::test in tests/feeds_jsonpath_parser.test
Run tests.

File

./FeedsJSONPathParser.inc, line 483
Contains FeedsJSONPathParser.

Class

FeedsJSONPathParser
Parses JSON using JSONPath.

Code

public static function stripFourBytes($string) {
  return preg_replace(self::$fourByteRegex, '', $string);
}