PHP TutorialPHP Tutorials PHP Heredoc Syntax by Online Tutorials Library July 14, 2014 39 Heredoc Syntax By using the syntax, we can display the HTML elements through PHP Script. Syntax <<<name of string //content name of string Example 1 <?php echo <<<tutoraspire welcome to the best tutorial site tutoraspire; ?> Output: Example 2 Save as string.php Output: Next TopicMySQL Tutorial addcslashes()addslashes()ajaxarraybin2hex()chop()dateexamplefilefunctionsmysqloopphpregexsessionstringtimetutorialxml Share 0 FacebookTwitterPinterestEmail previous post Multiple Inheritance in PHP next post PHP include_once You may also like PHP strtr() Function PHP substr() Function PHP chunk_split() function PHP strcasecmp() function PHP crypt() function PHP addcslashes() function