|
|
|
|
|
|
|
Re: Adding line breaks to text fields [message #4096 is a reply to message #4095] |
Wed, 05 March 2014 06:37   |
haider.faraz
Messages: 15 Registered: July 2013
|
Junior Member |
|
|
This must be my mis-understanding of how php works but it is interesting to share with you what I found.
Apparently, the following code does introduce the new line character:
$str1 = "faraz";
$str2 = "haider";
$str3 = $str1."\n".$str2;
while the code that follows next does not:
$str1 = "faraz";
$str2 = "haider";
$str3 = $str1.'\n'.$str2;
[Updated on: Wed, 05 March 2014 06:45] Report message to a moderator
|
|
|
|