Re: Breaking lines
| From: | Ben Ramsey | Date: | Tue, 03 Oct 2006 16:56:26 +0000 |
| Subject: | Re: Breaking lines | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-242542@lists.php.net to get a copy of this message | ||
On 10/3/06 8:05 AM, Deckard wrote:
$stringData = '$hostname = ' . $hostname . '\n' . '$mysql_username = ' . $mysql_username . '\n' . '$mysql_user_password = ' . $mysql_user_password . '\n'; but instead of breaking a line, it appears in the file the string \n How can i make the line break ?Use double quotation marks instead of single quotation marks: "\n" See here for why: http://us3.php.net/manual/en/language.types.string.php#language.types.string.syntax.double -- Ben Ramsey http://benramsey.com/