Domain Name Forum

Domain Name Forum (http://www.domainnameforum.org/index.php)
-   Programming (http://www.domainnameforum.org/forumdisplay.php?f=18)
-   -   Please wrap PHP codes using the [PHP][/PHP] tag (http://www.domainnameforum.org/showthread.php?t=153219)

jackwebso 10-11-2012 10:57 PM

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

jackwebso 10-15-2012 01:09 AM

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


All times are GMT -4. The time now is 12:44 AM.

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