26 of 110 menu

Adding to a String in PHP

Using the concatenation operator ' . ' you can add to a string. See the example:

<?php $a = 'Hello '; $b = $a . 'World!'; echo $b; ?>

Code execution result:

'Hello Word!'
English
БеларускаяEspañolРусский
We use cookies for website operation, analytics, and personalization. Data processing is carried out in accordance with the Privacy Policy.
accept all customize decline