What is PHP heredoc used for?

Options
- allows creating single line of string without using quotations
- allows creating multiple lines of string without using quotations
- allows creating multiple lines of string with quotations
- allows creating single lines of string with using quotations


CORRECT ANSWER : allows creating multiple lines of string without using quotations

Discussion Board
nice question

I agree, this is a good one, and it made me have to dig in my memory.

Paul 06-28-2017 08:17 PM

Heredoc.

Answer : allows creating multiple lines of string without using quotations.

Heredoc is a robust way to create string in PHP with more lines but without using quotations.

Jayesh Sonar 02-10-2015 04:57 AM

php test

there good qeust as well as some not expecting

mani.k 09-30-2014 08:41 PM

Write your comments


Enter the code shown above:

(Note: If you cannot read the numbers in the above image, reload the page to generate a new one.)


Advertisement