how can I write html code between PHP tag -
i want write html code between php without using of echo
i want write
<?php <div> <ul> <li>my text</li> <li>my text</li> <li>my text</li> <li>my text</li> <li>my text</li> </ul> </div> ?>
or use heredoc syntax. https://php.net/manual/en/language.types.string.php#language.types.string.syntax.heredoc
<?php $str = <<<eod example of string spanning multiple lines using heredoc syntax. eod; echo $str; ?>
Comments
Post a Comment