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
Hugh Danaher wrote:
If you want to preserve the blank spaces then try;
str_replace(" ", " ", $contents); // 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 General
If you want to preserve the blank spaces then try;
str_replace(" ", " ", $contents); // is html for blank space.
HTH
HTD
- Original Message -
From: <[EMAIL PROTECTED]>
To:
Sent: Wednesday, February 15, 2006 10:26 PM
Subject: [PHP] please help me I try to p
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