note 120600 deleted from function.json-decode by salathe

From: Date: Mon, 21 Sep 2020 15:00:52 +0000
Subject: note 120600 deleted from function.json-decode by salathe
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-215428@lists.php.net to get a copy of this message
Note Submitter: slva dot web dot sit at gmail dot com ---- if you have error JSON_ERROR_SYNTAX (4 code) try filter you data from this code: for ($i = 0; $i <= 31; ++$i) { $contents = str_replace(chr($i), "", $contents); } $contents = str_replace(chr(127), "", $contents); if (0 === strpos(bin2hex($contents), 'efbbbf')) { $contents = substr($contents, 3); }

« previous php.notes (#215428) next »