php concatenate two variables into one

How to combine two strings in PHP

We can use the PHP concatenation operator (.) to join or combine two strings together in PHP. This operator is exactly designed for strings. There are two string operators :…

How to append a string in PHP

There’s no exact function to append a string in PHP. But PHP concatenation assignment operator (.=) is used to append a string with another string. There are two string operators : Concatenation operator (‘.’) – Concatenation of…

How to prepend a string in PHP

There’s no exact function to prepend a string in PHP. But PHP concatenation operator (.) is used to returns the concatenation of its left and right arguments. There are two…
back to top