Created
December 15, 2016 19:53
-
-
Save Gkiokan/f02ced10a1ffb85fe0a46b64f42aa321 to your computer and use it in GitHub Desktop.
Delete BOM in a json content
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$content = file_get_contents($cc_uri); | |
$content = preg_replace('/[\x00-\x1F\x80-\xFF]/', '', $content); | |
$content = json_decode($content,true); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment