html concat in php code example Example: php concat $a = "hello"; $b = "world"; $c = $a . " " . $b; echo $c; // hello world