thieumao

Remove BOM with PHP 

Apr 23rd, 2014
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.14 KB | None | 0 0
  1. function removeBOM($str=""){
  2. if(substr($str, 0,3) == pack("CCC",0xef,0xbb,0xbf)) {
  3. $str=substr($str, 3);
  4. }
  5. return $str;
  6. }
Advertisement
Add Comment
Please, Sign In to add comment