Forum Moderators: coopster

Message Too Old, No Replies

New line not a goofy character

Mac returns, escaped

         

HeadBut

5:33 am on May 30, 2006 (gmt 0)

10+ Year Member



I've read the php manual on strings and even the WARNING on "\r on Macintosh". Does anyone know how to end a line and start a new line and not get the goofy character at the end of the line in my image. Here is the line, I think, thats driving me crazy:
$Text .= (str_pad($SingleLine, 30 , " " , STR_PAD_BOTH)).'\r';

or is it the 'imagestring' function that is messing up the image result.

Many Thanks!
Earbite

dreamcatcher

7:31 am on May 30, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Have you tried enclosing the \r in double quotes?

."\r";

dc

HeadBut

2:24 pm on May 30, 2006 (gmt 0)

10+ Year Member



yep, I've tried single and double quotes.