Basic PHP Programming Question:
Download Questions PDF

How To Concatenate Two Strings Together in PHP?

Answer:

You can use the string concatenation operator (.) to join two strings into one. Here is a PHP script example of string concatenation:

<?php
echo 'Hello ' . "world! ";
?>

This script will print:

Hello world!


Download PHP Interview Questions And Answers PDF

Previous QuestionNext Question
How To Assigning a New Character in a String using PHP?How To Compare Two Strings with Comparison Operators in PHP?