PHP Shorthand for Pre-Concatenation?

Aquamehem

New Member
I've been programming in PHP for years, and I've always wondered if there is a way to 'pre-concatenate' a string. Example:\[code\]$path = '/lib/modules/something.php';$server = $_SERVER['DOCUMENT_ROOT'];\[/code\]I've been doing this for years in order to append a value to the beginning of a string:\[code\]$path = $server . $path;// returns: /home/somesite.com/public_html/lib/modules/something.php\[/code\]Is there a shorthand for this? Just curious.
 
Back
Top