to post my question to Php.net 2-3 times
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
Hugh Danaher wrote:
If you want to preserve the blank spaces then try;
str_replace( , nbsp;, $contents); // nbsp; is html for blank space.
HTH
HTD
no he don't:
qote:
read text file to array string
--
Smileys rule (cX.x)C --o(^_^o)
Dance for me! ^(^_^)o (o^_^)o o(^_^)^ o(^_^o)
--
PHP
On 2/16/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
$filename =3D c:data.txt;
$contents =3D file($filename);
echo $contents;
?
// data in text file is 1_2_3_4 _ =3D blank
// output is 1 2 3 4
// I want fixed possition . please help me ?
I'm not really sure what you're
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?
4 matches
Mail list logo