1.使用双引号中插入单引号。
echo "that's ok"; |
2.使用单引号加上转义字符 \ 。
echo 'that\'s ok'; |
3.使用eof输出一个h5文本。注意:?>
echo <<<EOF<html><body> that's ok </body></html>EOF;?> |
echo "that's ok"; |
echo 'that\'s ok'; |
echo <<<EOF<html><body> that's ok </body></html>EOF;?> |