SyntaxFix
Write A Post
Hire A Developer
Questions
$result = $data1 . $data2;
This is called string concatenation. Your example lacks a space though, so for that specifically, you would need:
$result = $data1 . ' ' . $data2;