Share on Google+Share on Google+

Hiteshkumar
Line Breaks in PHP
1 Answer(s)      6 years and 2 months ago
Posted 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,

Ads

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);

?>









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
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
Advertisements
page breaks in HTML
page breaks in HTML  How do I specify page breaks in HTML
page breaks in HTML
page breaks in HTML  How do I specify page breaks in HTML
PHP GD line graph
<?php header("Content-type: image/png"); $arrval = array(12,123,21,32,77,85,166,176,163,121); $height = 260; $width = 330; $im...,'Line Graph by: Roseindia Technologies',$red); imagepng($im); ?> After
PHP GD draw line
<?php header ("Content-type: image/jpeg"); $handle... ($handle, 255, 255, 255); $line_color = ImageColorAllocate ($handle, 0, 0, 0); ImageLine($handle, 65, 0, 130, 50, $line_color); ImageJpeg ($handle
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
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
PHP GD dashed line
<?php header("Content-type: image/png"); $width = 350; $height = 360; $im = ImageCreateTrueColor($width, $height); ImageAntiAlias($im, true); $white = ImageColorAllocate($im, 255, 255, 255
PHP line break, PHP nl2br() function
The PHP Line break example & code If you are developing the application... the same value on the website. If user enters the <enter key> to add the line... the text will displayed without any line break. You can use the nl2br() function
How can I execute a PHP script using command line?
How can I execute a PHP script using command line?  How can I execute a PHP script using command line
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
How to write file by line in Java
() method breaks the continuous line into a separate new line. Firstly we need...How to write file by line in Java  How to write file by line in Java   Hi, For Write to a file by line using java programming language we
nio read file line by line
nio read file line by line  Is there any way to read file line by line using the Java nio package? How to use the nio classes to read file line by line? Thanks   Hi, The easiest way to read file line by line is to use
line graph
line graph  I have developed an application and in that i have to compare 2 reports using line graph from the data taken from ms access database?please help
Draw Line
Draw Line  sir i want to draw a moving line in j2me.That line should also show arrow in moving direction. How can we do so
on line exam
on line exam  how we can upload the data on the server from any site
HTML line break tag
, It breaks line. The break line (<br>) is a singular tag. It breaks the text...HTML line break tag. The HTML Line break tag <br> is used to add a line break in web page. You can use the <br> tag to add line break in your
php
php   what is php   PHP Tutorials
php
php  what is php
AJAX Line
AJAX Line       AJAX Community with a blog, forum and tutorials Read full Description
objective c read file line by line
objective c read file line by line  Please explain how to read files in Objective C line by line
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
PHP
PHP  How to work in drupal with PHP
php
php  show the constructor overloading in php
Java Write To File By Line
Java Write To File By Line In this tutorial you will learn how to write to file by line Write to a file by line using java you can use the newLine() method of BufferedWriter class. newLine() method breaks the continuous line
PHP Magic Constant
are working.   Example: <?php function fun_co(){ echo __LINE...PHP Magic Constants: In PHP there are various predefined constants, but many... constants are available in PHP, but seven magical constants are most important
Java - How to read a string line per line
Java - How to read a string line per line  Java - How to read a string line per line I am trying to find the tutorial for reading the String line per line. I have a String data, which contains many lines. What is the best way
Tutorials   
Java Spring Hibernate Struts Training I am Java programmer. Should I learn Java Script or Python? Delete multiple records with pagination by selecting checkboxes How to add one hour in php date? connection in php connection in php connection in php PHP magento how to make previous and next Button Display Data in php session written exam display database results question create a simple form Magento Strings in PHP Zend Framework Installation in xampp? How to prevent adding duplicate items to the shopping cart php problem maximum execution time of 30 seconds exceeded in php Call-time pass-by-reference has been removed in HTTP_POST_VARS is deprecated $_GET[] index is not defined Function mysql_db_query() is deprecated Function mysql_db_query() is deprecated Function split() is deprecated Fatal error: Call to undefined function session_register() in .php file php tag not working Error reporting in PHP Why are MySQL Routines and Views not used with PHP? How to add Click to copy function to my wordpres blog? connection of php to MySQL. loan calculator Datepicker not getting called through include function of php change url string integrate login in php Installation of wamp server Display PHP clock with user input date and time value in div from php, reloading form pre-populate form developing a system using php n mysql Configure apache Tomcat to work with Eclipse and PDT in php How to display a file for 24 hours? LOGIN ERROR LOGIN FAILED", $_SESSION['login fail']='0',}?> I GOT ERROR FOR MY PROJECT PHP Sending emails and insert into trable Tutorial college Student Admission System PLZ HELP ME. i need php code.

Ads

 
Advertisement null

Ads