Answers for "php remove bom from object"

PHP
1

php remove bom

function removeBomUtf8($s){
  if(substr($s,0,3)==chr(hexdec('EF')).chr(hexdec('BB')).chr(hexdec('BF'))){
       return substr($s,3);
   }else{
       return $s;
   }
}
Posted by: Guest on February-04-2020

Code answers related to "php remove bom from object"

Browse Popular Code Answers by Language