請幫忙。我真的堅持這一點,我正在學習PHP。我知道基本知識,但我需要學習像下面這樣的先進事物:php在雙引號內嵌入單引號不起作用
echo "<code><p></code>$_POST[quiz_complete]<code></p></code>"; //this code won't execute
//Note: variable $_POST['quiz_complete'] exists
<code>echo "<p>$str</p>";</code> //works fine
此單引號不起作用。我如何獲得單引號的變量是爲如雙引號)
echo "<code><p></code>$_POST['quiz_complete']<code><p></code>";
' 「
{$ _POST [ 'quiz_complete']}
」' – tradyblix 2013-03-05 03:22:46http://www.php.net/manual/en/language.types.string.php#language.types.string.parsing – 2013-03-05 03:24:41