Insert php variable in a href

后端 未结 4 1377
青春惊慌失措
青春惊慌失措 2020-12-09 12:11

I am planning to insert a PHP variable which holds the directory path for a file stored on my Windows machine. How can I include this variable in the a href tag

4条回答
  •  执笔经年
    2020-12-09 12:58

    Try using printf function or the concatination operator

    http://php.net/manual/en/function.printf.php

提交回复
热议问题