Add php variable inside echo statement as href link address?

前端 未结 5 1704
盖世英雄少女心
盖世英雄少女心 2020-12-02 18:55

I\'m trying to use a php variable to add a href value for a link in an echo statement.

Here\'s a simplified version of the code I want to use. I know that I can\'t j

5条回答
  •  情深已故
    2020-12-02 19:29

    you can either use

    echo 'Link';
    

    or

    echo "Link';
    

    if you use double quotes you can insert the variable into the string and it will be parsed.

提交回复
热议问题