繁体   English   中英

在 php href 中插入变量/函数

[英]insert variable/function in php href

我必须插入代码: <?php WPSM_Woohelper::re_show_brand_tax(); ?> <?php WPSM_Woohelper::re_show_brand_tax(); ?>

在下面的 <a href 中:

$text = '<p>' . substr($content, 0, $pos[$limit]) . "..<a href='{$product_url}' class='goto_more_offer_tab button'><?php WPSM_Woohelper::re_show_brand_tax(); ?></a></p>";

怎么做? 谢谢你

回显WPSM_Woohelper::re_show_brand_tax(); :

$text = '<p>'
    . substr($content, 0, $pos[$limit])
    . '..<a href="' . $product_url . '" class="goto_more_offer_tab button">'
    . WPSM_Woohelper::re_show_brand_tax()
    . '</a></p>';

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM