Ben sadece bu yüzden anlamak bazı ekstra bilgi vermek düşündüm.
Kodunuzda:
$raceramps56["short"] = "My Test Product";
$leftMenu =
'<div class="leftMenuProductButton"><?PHP echo $raceramps56["short"] ?></div>';
Kelimenin tam anlamıyla dahil.
Bu bir okuma almak. http://php.net/manual/en/language.types.string.php
Ben ilk öğrenirken, ben literal 've çift tırnak arasındaki farklı anlamak vermedi ve ben şeyler yankı çalışıyordu özellikle sorunlara neden oldu.
Bu bir göz atın:
<?php
echo 'this is a simple string';
echo 'You can also have embedded newlines in
strings this way as it is
okay to do';
// Outputs: Arnold once said: "I'll be back"
echo 'Arnold once said: "I\'ll be back"';
// Outputs: You deleted C:\*.*?
echo 'You deleted C:\\*.*?';
// Outputs: You deleted C:\*.*?
echo 'You deleted C:\*.*?';
// Outputs: This will not expand: \n a newline
echo 'This will not expand: \n a newline';
// Outputs: Variables do not $expand $either
echo 'Variables do not $expand $either';
?>
Her şeyi yorumlamak olacaktır "çünkü aynı çıktıyı almak değil bunun yerine 'yorum" "kullanmak olsaydı ziyade tam anlamıyla götürün.
Ben size bir soru zaten yanıtlamış oldu olsa bile, bu ek yardımcı olmuştur umarım.