Returned things from webpage request may contain lots of backslashes due to JavaScript and JSON may need to escape some characters. That is inconvenient if we want to handle these results such as do regular expression in PHP; therefore, just use function "stripslashes" to strip all backslashes which are used for escaping characters.
References:
PHP: stripslashes - Manual
$stripped_string = stripslashes($input_string)
References:
PHP: stripslashes - Manual
Comments
Post a Comment