If we want to combine/concatenate two strings in PHP we just follow some special type of operators in PHP you can also see that In Other language we use + operator as a concatenation of two words but in PHP we use Dot Operator to concatenate two words. Here is the example you understand better.

Join Paragraphs Using here doc Syntax

If we have big paragraph now which are breaks in many variable now if we want to concatenate/combine all the variables its take time basically in this way heredoc syntax make our work easier:

Storing Multiple Values In Array

In C# language you declare an array which store multiple values. In PHP If you want to store a multiple values in array you follow this syntax:

Associative Array

In PHP the associative array is different from simple array because in simple array you give an index of array and access its value but associative array you declare an array which is handle by string.

Challenge For New Developers?

How PHP Embed In HTML?

Here’s the solution

You can see that we make an array one is simple array and one is associative array in PHP then we call at HTML first we giving the tag of PHP then give the array name now set the value one and then we out concatenate operator for good looking and after this we simple called variable array and set the array index to ready a value.

Code