Top Ad unit 728 × 90

ticker

How to multiple line printing in PHP



Multi-lines Printing: 

 Here are the examples to print multiple lines in a single print statement

# First Example
print <<This uses the "here document" syntax to output
multiple lines with $variable interpolation. Note
that the here document terminator must appear on a
line with just a semicolon no extra whitespace!
END;
# Second Example
print "This spans
multiple lines. The newlines will be
output as well";
?>
How to multiple line printing in PHP Reviewed by Rajat Jha on 11:35:00 Rating: 5

No comments:

All Rights Reserved by INFO PHP 99 © 2014 - 2015
Powered by Blogger, Designed by Sweetheme

Contact Form

Name

Email *

Message *

Powered by Blogger.