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

Home » RADICORE development » Bug Reports » Adding line breaks to text fields
Re: Adding line breaks to text fields [message #4096 is a reply to message #4095] Wed, 05 March 2014 06:37 Go to previous messageGo to previous message
haider.faraz is currently offline  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

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Change number of columns in PDF list report
Next Topic: PostgreSQL error
Goto Forum:
  


Current Time: Fri Mar 29 05:55:07 EDT 2024

Total time taken to generate the page: 0.00936 seconds