Home ยป PHP Heredoc Syntax

PHP Heredoc Syntax

by Online Tutorials Library

Heredoc Syntax

By using the syntax, we can display the HTML elements through PHP Script.

Syntax

Example 1

Output:

Heredoc Syntax

Example 2

Save as string.php

Heredoc Syntax

Output:

Heredoc Syntax


Next TopicMySQL Tutorial

You may also like