Javatpoint Logo
Javatpoint Logo

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 TopicPHP Tutorial




Help Others, Please Share

facebook twitter pinterest

Learn Latest Tutorials


Preparation


Trending Technologies


B.Tech / MCA