Тема: Подскажите как убрать черту
Здравствуйте,собственно имеется скрипт пример работы здесь
как убрать черту перед выводом исполнителя?
<?php
$handle = fopen("http://78.46.69.36:18012/status2.xsl?mount=/live", "rb");
$contents = '';
while (!feof($handle)) {
$contents .= fread($handle, 8192);
}
fclose($handle);
$mas=explode(",",$contents);
$dj=$mas[15];
$dj = str_replace ("~", " ICQ: ", $dj);
$text = $mas[16];
if ($text =='' and $dj=='')
{
/////////////////////////////////////Non stop/////////
$handle = fopen("http://78.46.69.36:18012/status2.xsl?mount=/autodj", "rb");
$contents = '';
while (!feof($handle)) {
$contents .= fread($handle, 8192);
}
fclose($handle);
//$str = $contents;
$mas=explode(",",$contents);
$text = $mas[16];
$dj='Non Stop';
}
$string = $text;
//echo 'Ведущий: '.$dj;
//echo "<br>";
echo ' '.$string;
?>
я так понимаю проблема здесь $string = $text;? или где?
и что на что заменить? подскажите,если не сложно...заранее спасибо.