Skip to content

Instantly share code, notes, and snippets.

@Gkiokan
Created December 15, 2016 19:53
Show Gist options
  • Save Gkiokan/f02ced10a1ffb85fe0a46b64f42aa321 to your computer and use it in GitHub Desktop.
Save Gkiokan/f02ced10a1ffb85fe0a46b64f42aa321 to your computer and use it in GitHub Desktop.
Delete BOM in a json content
$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