No such function needed. The single quotes are printed literally, without printing the contents of a variable, they simply print what you've put. You can either put them all in double quotes, or in no quotes at all:
$title = "$variable 1"; $title = $variable . "1";
The man who comes back through the Door in the Wall will never be quite the same as the man who went out.