- str_replace: documentation ( source)
- explode: documentation ( source)
- trim: documentation ( source)
<?php
$text= ' h ssadsad олрыфвалоыварлыва / ';
$d = explode('©', $text);
$text = $d[0];
$text = str_replace(array("\r\n"), "", $text);
$text = trim($text);
echo $text ;