![]() |
In PHP, strings can be concatenated using the( Using (.operator)In PHP, the dot (.) operator is used for string concatenation. By placing the dot between strings and variables, they can be combined into a single string. This method provides a concise and efficient way to merge string elements. Syntax$string1 = "Hello"; Alternatively, you can also use the .= operator to append one string to another, like so: $string1 .= " world!"; Using
|
Reffered: https://www.geeksforgeeks.org
PHP |
Related |
---|
![]() |
![]() |
![]() |
![]() |
![]() |
Type: | Geek |
Category: | Coding |
Sub Category: | Tutorial |
Uploaded by: | Admin |
Views: | 15 |