This is your solution:
$pageTitle = $pageName . ' | ' . $siteName;
Anyway you can use this to:
$pageTitle = $pageName . ' | ' . $siteName;
In this last, you can give 1,2,3 or more spaces, example:
$pageTitle = $pageName . ‘ | ‘ . $siteName;
$pageTitle = $pageName . ' | ' . $siteName;
1
solved Best way to add a space when joining values