Skip to content
Advertisement

How to string two variables together in php

I am new to php. And string concatenation is difficult for me. I want to concatenate the following string:

JavaScript

But the string I want:

JavaScript

Thanks.

Advertisement

Answer

Try this(Added single quote to the string):

JavaScript

Another solution(Wrap the single quotes in double quotes to branch variable):

JavaScript

OUTPUT:

JavaScript
User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement