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 post my question to Php.net 2
3 matches
Mail list logo