I have just started learning PHP, so please forgive me for asking a question like this.
I have a variable
$myVar = "hello";
echo "$myVar: $myVar"; //this simple prints out the value of $myVar twice
echo '$myVar'+ ":$myVar"; //somehow the number 0 was printed out to the browser
echo '$myVar: $myVar'; //this just prints out the string literal itself
You can simply do this:
echo "\$myVar: $myVar";
\ to display the variable name as it is.