pivopen May 1, 2025 0 3
pivopen May 1, 2025 0 4
pivopen May 1, 2025 0 5
pivopen May 1, 2025 0 6
pivopen Apr 26, 2025 0 9
pivopen May 2, 2025 0 0
pivopen May 2, 2025 0 1
pivopen May 2, 2025 0 2
Join our subscribers list to get the latest news, updates and special offers directly in your inbox
PHP Tutorials
In PHP, you can concatenate (combine) strings using the dot (.) operator.
.
<?php $firstName = "John"; $lastName = "Doe"; $fullName = $firstName . " " . $lastName; echo $fullName; // Outputs: John Doe ?>
The . operator joins two strings together.
If you want to append a string to an existing variable, you can use .=:
.=
<?php $message = "Hello"; $message .= " World!"; echo $message; // Outputs: Hello World! ?>
Previous Article
Next Article
Like
Dislike
Love
Funny
Angry
Sad
Wow
pivopen
pivopen May 2, 2025 0 4