1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
<?php $text1 = 'Hello '; $text2 = $text1 . 'World!'; echo "$text2"; echo "\n"; $text3 = 'Upwhere We '; $text3 .= 'Belong!'; echo "$text3"; echo "\n"; $num = 3; echo "Result: " . ($num + 3); ?>
1 2 3
Hello World! Upwhere We Belong! Result: 6