please help me I try to post my question to Php.net 2-3 times

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



text file problem

read text file to array string. I use function File(). but when I display
data in text file it compress space in each lines such as first record
contain "1_____2______3______4______" ( _ = blank )
when store in array string is "1 2 3 4" . I want you tell me howto do?
+++++++++++++++++++++++++++++++++++++++++
<?php

$filename = "c:data.txt";
$contents = file($filename);
echo $contents;
?>
// data in text file is "1_____2_____3_____4" < _ = blank>
// output is "1 2 3 4"
// I want fixed possition . please help me ?
from Wvolks

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux