FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » Newline (cr/lf) in imagestring
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: Newline (cr/lf) in imagestring [message #182413 is a reply to message #182412] Sat, 03 August 2013 21:24 Go to previous messageGo to previous message
Lew Pitcher is currently offline  Lew Pitcher
Messages: 60
Registered: April 2013
Karma:
Member
On Saturday 03 August 2013 17:01, in comp.lang.php, timstreater(at)greenbee(dot)net
wrote:

> In article <46kqv8d4tqhl15ripkbc1dfjb2m0tqvgtt(at)4ax(dot)com>,
> Ed Jay <edMbj(at)aes-intl(dot)com> wrote:
>
>> So...how do I produce cr/lf?
>
> $lf = chr (10);
> $cr = chr (13);
> $nl = $cr . $lf;

Alternatively,

$lf = chr (37);
$cr = chr (13);
$nl = $cr . $lf;

or even

$nl = chr (21);

Control characters are very platform specific, don't you think?

> Simples.

Only if you restrict Ed's solution to the platform /you/ use.

--
Lew Pitcher
"In Skills, We Trust"
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Reading a file on same server
Next Topic: ini_get("memory_limit") returns an empty string
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Fri Nov 22 08:45:57 GMT 2024

Total time taken to generate the page: 0.05218 seconds