Ahmed wrote:
hi,
i am reading data from text file and when it reads it adds slaches
like that "Birdy birdy in the sky, left a poopie in my eye. Me don\'t care, me don\'t cry, me just happy that a cow can\'t fly!!"
how can i remove these slaches?
i am using this piece of code
<?
$sms=file("sms.txt");
$number_of_sms = count($sms);
if ($number_of_sms == 0){
echo "<p><font color=\"#FFFF00\"><strong>There is no sms have been submited to this section yet</strong></font><br>";
}
for ($i=0; $i<$number_of_sms; $i++){
$line=explode("\t", $sms[$i]);
echo "<p><font color=\"#FFFF00\" size=\"2 px\">".$line[0]." <br></font>".
" <br><font color=\"#CCFFFF\" size=\"2 px\">Thanks to ".$line[1]. </font></p>";
echo "<font color=\"red\">--------------------------------------</font>"
}
?>
waiting for reply
thanks a lot
-- The above message is encrypted with double rot13 encoding. Any unauthorized attempt to decrypt it will be prosecuted to the full extent of the law.
-- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php