PHP has many built in functions that make developing easier. One such function is the echo function. This function takes whatever appears between the word echo and the semicolon at the end of the statement and outputs it to the screen. If you would like to output a string of text, the text must go between quotation marks.
You can use either single or double quotation marks, but they must match:
echo "Jim's Book";
echo 'He said "OK"';
Sometimes you need both single and double quotes. You can escape quotes using the back slash. \" indicates that the quote doesn't count as a quote in PHP syntax. To display the sentence Jim said, "I'm OK." we would write:
echo 'Jim said, "I\'m OK."';You should try all of the examples!
or echo "Jim said, \"I'm OK.\"";