PHP Concatenating Strings Together – String Function

<?php
$my_string = "Hello Max. My name is: ";
$newline = "<br />";
echo $my_string . "Paula" . $newline;
echo "Hi, I'm Max. Who are you? " . $my_string . $newline;
echo "Hi, I'm Max. Who are you? " . $my_string . "Paula";?>

Enjoyed this post? Share it!

 

Leave a comment

Your email address will not be published.