putting strings together with a linefeed

From: Date: Fri, 16 Apr 2004 16:23:51 +0000
Subject: putting strings together with a linefeed
Groups: php.db 
Request: Send a blank email to php-db+get-33926@lists.php.net to get a copy of this message
For example, say I have a variable $mytext = 'what up doc'. Now I want to add the text 'not much' to the end of this variable. But I want to place a return or linefeed after the original text so when I echo $mytext it looks like: what up doc not much I tried: $mytext = 'what up doc'; $mytext .= chr(10) . 'not much'; I also tried chr(13) 10 is linefeed and 13 is carriage return. Thanks for your previous help as well. Doug

« previous php.db (#33926) next »