Created
January 14, 2020 14:46
-
-
Save redsoxfan2499/cc5e1815fc07f94a8f49f1114e640dea to your computer and use it in GitHub Desktop.
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
function removeBomUtf8($s){ | |
if(substr($s,0,3)==chr(hexdec('EF')).chr(hexdec('BB')).chr(hexdec('BF'))){ | |
return substr($s,3); | |
}else{ | |
return $s; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment