Skip to content

Instantly share code, notes, and snippets.

@Foxy79
Created October 5, 2016 08:56
Show Gist options
  • Save Foxy79/e741e3ea9f8dd8f905ead826462ecfc3 to your computer and use it in GitHub Desktop.
Save Foxy79/e741e3ea9f8dd8f905ead826462ecfc3 to your computer and use it in GitHub Desktop.
BOM remove from json answer
<?php
$bom = pack('H*','EFBBBF');
$json = preg_replace("/^$bom/", '', $json);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment