This question may sounds way too simple for the php experts out there, but 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.