What is Heredoc in PHP?

Dero Minasyan
Dero Minasyan

Posted On: Apr 15, 2024

 

The Heredoc in PHP syntax is a write multi-line string inside PHP without using the single quote and double quotes delimiters. It works using <<< symbol and a token is a mark the end of the string.

    Related Questions

    Please Login or Register to leave a response.

    Related Questions

    PHP String Interview Questions

    What is String in PHP?

    The String is a collection or set of characters in sequence in PHP. The String in PHP is used to save and manipulate like an update, delete and read the data....

    PHP String Interview Questions

    How to cast a php string to integer?

    The int or integer used for a variable into an integer in PHP....

    PHP String Interview Questions

    How to perform string concatenation in PHP?

    The string concatenation means two strings connect together. The dot ( . ) sign used in PHP to combine two string. Example:- &lt;?php $stringa = " creative "; $stringb = "writing "; echo $stringa ...