How does PHP remove special characters read from Linux files

  ios, question

Record a string on each line of the linux file inside, such as-I bellows,
When I read this line of data from the file inside through PHP, it became-I b bellowsWith “B” added, how can I remove such special characters?

I don’t know if b here is a character with ascii code 2
Reference here:http://www.robelle.com/smugbook/ascii.html

If it is, in PHP, you can get/replace this character in this way:

$str = 'some string';
 $ctrl_b = chr(2);
 
 $new_str = str_replace($ctrl_b, '', $str);

Reference here:http://us1.php.net/chr