开发者

How to send the values to echo?

开发者 https://www.devze.com 2023-02-08 07:29 出处:网络
echo \"<img src=\'bloginfo(\'template_url\').\'/img/\'.$img\' />\"; i want this value bloginfo must be attach to this src of img tag with $img开发者_StackOverflow too...
echo "<img src='bloginfo('template_url').'/img/'.$img' />";

i want this value bloginfo must be attach to this src of img tag with $img开发者_StackOverflow too... means how can i adjust this " and ' to get the result.

Please help .


Change it to

echo "<img src='".bloginfo('template_url')."/img/".$img."' />";

And always read manual first before asking question.

0

精彩评论

暂无评论...
验证码 换一张
取 消