The is a very simple echo statement but I can't solve it?
echo '"What is your name?'";
The is a very simple echo statement but I can't solve it?
echo '"What is your name?'";
Mismatch of single quotes, use this:
echo '"What is your name?"';
Your first enclosing character was single quote but ending one was double quote causing the problem
Your single quote (') is misplaced at the end.
Your corrected syntax is this
echo '"What is your name?"';
Incorrect:
echo '"What is your name?'";
^ Unexpected character
Correct:
echo '"What is your name?';
Correct:
echo "What is your name?";
Correct:
echo 'What is your name?';
Correct:
echo '"What is your name?"';
Correct:
echo "'What is your name?'";
This is where your interpreter is choking:
echo '"What is your name?'";
expecting ; not "
echo "What is your name?";
This is Simply the best. No confusion No problem..:)