Dear Experts,
i am opeing a text file in php, when i print file contents using the given bellow script it excludes the spaces
Example
in Text file:
123______456___ ____789 "_" is equal to space
but when i print this like using file_get_conten ts it print like
123 456 789
i want same line with spaces
Thanks in advance
$filestring = file_get_conten ts($newpath);
$filearray = explode("\n", $filestring);
while (list($line_no, $line) = each($filearray ))
{
print "Line $line_no: $line<BR />";
}
i am opeing a text file in php, when i print file contents using the given bellow script it excludes the spaces
Example
in Text file:
123______456___ ____789 "_" is equal to space
but when i print this like using file_get_conten ts it print like
123 456 789
i want same line with spaces
Thanks in advance
$filestring = file_get_conten ts($newpath);
$filearray = explode("\n", $filestring);
while (list($line_no, $line) = each($filearray ))
{
print "Line $line_no: $line<BR />";
}
Comment