$ rules = str_ replace( ' & quot; ', ' " ', $ rules) ;. ブラウザ上で print_ r( ) やらDebug: : dump( ) やらしてて見分けられるの・ ・ か? ソースで見. The json string being decoded. This function only works with UTF- 8 encoded strings. PHP implements a superset of JSON as specified in the original » RFC 7159. An article on how to do error handling with json_ encode and json_ decode. JSON_ ERROR_ SYNTAX: Syntaxfehler. JSON_ ERROR_ UTF8: Missgestaltete UTF- 8 Zeichen,. when json_ decode a empty string, PHP7 will trigger an Syntax error: