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

Popular posts from this blog

c# - Validate object ID from GET to POST -

node.js - Custom Model Validator SailsJS -

php - Find a regex to take part of Email -