0 8

Web Technology II05 marksString operations and concatenation

Write a PHP program that will read two input strings in variable fname and lname and display concatenation of fname and lname.

Write a PHP program that will read two input strings in variable fname and lname and display concatenation of fname and lname. [5]

PHP joins strings with the dot operator, so $fname . " " . $lname gives the full name with a single space between the two parts. The two values are typed into an HTML form and read on the server from the

Up nextHow can you define variable in PHP. Illustrate with example.