Line Breaks in PHP

Ads
 

Line Breaks in PHP

Hi,

I am beginner in PHP language. How to do the line-break in PHP? Does somebody help me in this regard.

Thanks,

View Answers

February 10, 2011 at 6:27 PM

Hi,

You are looking for add the line-break function in PHP. I below providing the example of link-breaks function in PHP.

Check this Example of link break using PHP Program.

<?php

$myString ="Welcome to the PHP programming.\n\nHere you will learn PHP in detail";
echo nl2br($myString);

?>

Ads









Related Tutorials/Questions & Answers:
Line Breaks in PHP
Line Breaks in PHP  Hi, I am beginner in PHP language. How to do the line-break in PHP? Does somebody help me in this regard. Thanks
execute a PHP script using command line
script using command line?   Hi friends, Just run the PHP CLI (Command Line Interface) program and provide the PHP script file name as the command line......   Hi friends, Just run the PHP CLI (Command Line Interface) program
Advertisements
How to run PHP Script from the command line ?
How to run PHP Script from the command line ?  Running PHP Script from the command line   Actually it is very simple to run php script command line. Except there are a few things that are different, for example
Determining Potential Line Breaks in a Unicode String
Determining Potential Line Breaks in a Unicode String This section illustrates you how to use the BreakIterator to parse a string on a line break. Parsing...() method. The method getLineInstance() create BreakIterator for line-breaks using
How to Check Markup in PHP File from Command Line
How to Check Markup in PHP File from Command Line  Check Markup in PHP File from Command Line   PHP has a feature that allowed you to check... try this: http://www.phpzag.com/check-markup-in-php-file-from-command-line
How to Checking Syntax Error in PHP from Command Line
How to Checking Syntax Error in PHP from Command Line  Checking Syntax Error in PHP from Command Line   PHP allows you to check your script... check this: http://www.phpzag.com/checking-syntax-error-in-php-from-command-line
ModuleNotFoundError: No module named 'breaks'
ModuleNotFoundError: No module named 'breaks'  Hi, My Python... 'breaks' How to remove the ModuleNotFoundError: No module named 'breaks'... to install padas library. You can install breaks python with following command
php
php   what is php   PHP Tutorials
php
php  what is php
php
php using javasript  how to set timer in php using javasript
php
php  i want to know about php and php plateform required software to make php program and database that used in php program?   Please visit the following link: PHP database
php
php  i want to know about php and php plateform required software to make php program and database that used in php program?   Please visit the following link: PHP database
ModuleNotFoundError: No module named 'jenks-natural-breaks'
ModuleNotFoundError: No module named 'jenks-natural-breaks'  Hi...: No module named 'jenks-natural-breaks' How to remove the ModuleNotFoundError: No module named 'jenks-natural-breaks' error? Thanks   Hi
ModuleNotFoundError: No module named 'jenks-natural-breaks'
ModuleNotFoundError: No module named 'jenks-natural-breaks'  Hi...: No module named 'jenks-natural-breaks' How to remove the ModuleNotFoundError: No module named 'jenks-natural-breaks' error? Thanks   Hi
ModuleNotFoundError: No module named 'time-pretty-breaks'
ModuleNotFoundError: No module named 'time-pretty-breaks'  Hi, My... named 'time-pretty-breaks' How to remove the ModuleNotFoundError: No module named 'time-pretty-breaks' error? Thanks   Hi, In your
PHP
PHP  How to work in drupal with PHP
php
php  show the constructor overloading in php
php
php  what is php   PHP is one of the most used open source server-side scripting language, which runs on almost all the platform. PHP... and Solaris. To know more about PHP, Visit Here
php
php  how to write a program in php to create pdf file
php
php  plz tell me code for PHP SQL Insert,delete,update,view is used to insert the record from HTML page to Mysql database using in single PHP form
php
php  retrieve data from mysql in php   Please visit the following links: http://www.roseindia.net/sql/mysql-table/mysql-php-select.shtml http://www.roseindia.net/sql/mysql-example/select-where.shtml
php
php  How to catch a image and link click counters using Ajax php can any one help me
php
php  how to set email remainder in php?can you help me pls
PHP
PHP  I want to create Calendar Event in PHP. Could u help me
PHP
PHP  How to check whether a username exists on a website using php and cURL and not MySQL
php
Write a simple PHP program that display the days of week as per the system date using switch case statement.  Write a simple PHP program that display the days of week as per the system date using switch case statement
PHP
PHP  I would love to do PHP project with the title of "Hospital Management System". I want to know how to make validation using jquery
php
can learn php mysql connectivity examples from the given link: PHP Mysql Connectivity
php
shortcut method in php like in javscript seletedIndex
php
php  im beginner to php. i faced problem with creating form and data stored into mysql <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <
php
php  im beginner to php. i faced problem with creating form and data stored into mysql <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <

Ads