How to echo an echo in php?

后端 未结 5 1197
轻奢々
轻奢々 2021-01-22 15:28

I have some basic PHP code:

$raceramps56[\"short\"] = \"My Test Product\";

$leftMenu = 

\'
5条回答
  •  囚心锁ツ
    2021-01-22 15:52

    You can run php in a '. You can only echo it like this if you know what I mean.

    $leftMenu ='
    .$raceramps56["short"].
    '; echo $leftMenu;

    Use this:

    $leftMenu ='
    '.$raceramps56["short"].'
    ';

提交回复
热议问题