Domain Name Forum  

Go Back   Domain Name Forum > Web Design & Development > Programming

Reply
 
Thread Tools Display Modes
  #1  
Old 10-11-2012, 10:57 PM
jackwebso jackwebso is offline
Member
 
Join Date: Jun 2012
Posts: 34
Default Please wrap PHP codes using the [PHP][/PHP] tag

When posting a PHP code, please remember to use vBulletin's PHP tag to format it. This makes it a lot easier for other readers to distinguish between regular text and PHP code in your post.

Example:
PHP Code:
echo 'Hello World!'
Becomes:
PHP Code:
echo 'Hello World!';

Thanks in Advance
Reply With Quote
  #2  
Old 10-15-2012, 01:09 AM
jackwebso jackwebso is offline
Member
 
Join Date: Jun 2012
Posts: 34
Default Clean and keep line breaks

Hello,

I want to keep line spaces in comments but clean more then 2 after each.

Example:

$sentence="This is my first sentence
This will be in a new row
This will be too in a new row but not separated with 3line breaks just with

one

";
And i want to output just this:

$sentence="This is my first sentence
This will be in a new row

This will be too in a new row but not separated with 3line breaks just with
one
";
Please Help

Thanks in Advance
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 03:07 PM.

| Webmaster Forum | | Domain Name Forum |



Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.