PHP String Concatenation Operators – String Function

 
    <?php
     $header = "<html>\n"
             . "<head>\n"
             . "<title>String Operators</title>\n"
             . "</head>\n"
             . "<body>\n";
     $body_content = "body<br />\n";
     $footer = "</body>\n"
             . "</html>\n";
     $page_content .= $header . $body_content . $footer;
     print($page_content);
?>

Enjoyed this post? Share it!

 

Leave a comment

Your email address will not be published.