Created
October 5, 2016 08:56
-
-
Save Foxy79/e741e3ea9f8dd8f905ead826462ecfc3 to your computer and use it in GitHub Desktop.
BOM remove from json answer
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
<?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