This approach has a number of problems. Firstly, it is assumed here you aren't sanitizing the value at all or checking its validity. Secondly it will throw an error if you assume it is set when it is not (hence the call to isset()).

Finally, if you do not want the entire string in PHP and just want to echo the variable, you can do like this: