Search
 
SCRIPT & CODE EXAMPLE
 

PHP

php filter non utf-8 characters

function remove_bs($Str) {  
  $StrArr = str_split($Str); $NewStr = '';
  foreach ($StrArr as $Char) {    
    $CharNo = ord($Char);
    if ($CharNo == 163) { $NewStr .= $Char; continue; } // keep £ 
    if ($CharNo > 31 && $CharNo < 127) {
      $NewStr .= $Char;    
    }
  }  
  return $NewStr;
}
Comment

PREVIOUS NEXT
Code Example
Php :: php call class method dynamically 
Php :: laravel model sync 
Php :: replace text in string php 
Php :: install phpmyadmin on vagrant homestead on mac 
Php :: jQuery is not defined load-scripts.php 
Php :: wordpress admin url 
Php :: is serialized php 
Php :: laravel log reader 
Php :: laravel get id from insert 
Php :: ini_set php 
Php :: increase php_values 
Php :: custom error page htaccess 
Php :: php password verify 
Php :: php http errorcode 
Php :: array search multidimensional php 
Php :: nl2br() php 
Php :: throttle laravel 
Php :: how make a variable global php 
Php :: doctrine querybuilder print sql 
Php :: php catch echo output 
Php :: How to Connect MySQL Database with PHP Websites 
Php :: destroy multiple sessions in laravel 
Php :: laravel update query builder 
Php :: laravel start que listener 
Php :: laravel response json status 500 
Php :: laravel make password 
Php :: filter var php function 
Php :: woocommerce product hooks 
Php :: wordpress if is not page template 
Php :: job with queue name 
ADD CONTENT
Topic
Content
Source link
Name
8+5 =