If you have
$a = 'World'
$str = 'Hello '.$a
$a = ' John Doe'
Is there a way in PHP that $str would now receive the changed value from $a?
What I know I get: $str = 'Hello World', what I would like: $str = 'Hello John Doe'
I know this could be done by replacing the old value with str_replace, but I would like to ask if there is a way that this var could be passed by reference or something.