Since starting with PHP, if I wanted to incorporate a local $ variable into a piece of script, I would do the following...
"here is some text " . $myvariable . " and the text continues"
...but more and more so I'm seeing script that doesn't escape out, the local variable is included in the script and I presume automatically detected at runtime?
Like this...
"here is some text $myvariable and the text continues"
What are the pros/cons to this approach?