heredoc syntax in php examples
by using the heredoc style we can display the html forms through php to avoid the single and double quotations. We are using heredoc syntax
<?php
<<< name of string
?>
Or
<?php
$str = <<< xyz
<input type =”buttion” value =”click”>
Xyz;
Echo $str;
?>
by using the heredoc style we can display the html forms through php to avoid the single and double quotations. We are using heredoc syntax
<?php
<<< name of string
?>
Or
<?php
$str = <<< xyz
<input type =”buttion” value =”click”>
Xyz;
Echo $str;
?>