return ' ';里怎么插入函数?

WBOY
Release: 2016-06-23 14:23:55
Original
1013 people have browsed it

如下,我想在a href里插入函数the_permalink()

if(a>b){

return '

return ' ';里怎么插入函数?
';

}

试过用echo输出,虽然能插入the_permalink(),但图片会居所有文字之上,return输出的图片则会在预设的位置,不知怎么解决

回复讨论(解决方案)

不明白你说的意思

不明白你说的意思

意思是让这句话没有语法错误,让the_permalink()的值能输出

return '

return ' ';里怎么插入函数?
';

显然是位置不对。。。

你这样写不就是对的吗?
当然 the_permalink 中也是 return 的

你这样写不就是对的吗?
当然 the_permalink 中也是 return 的
这样输出结果有问题,href得到的值是空的,the_permalink()的值却直接显示出来

1、the_permalink() 返回的是什么?
2、你这样写后得到的是什么?
3、你期望得到的是什么?

1、the_permalink() 返回的是什么?
2、你这样写后得到的是什么?
3、你期望得到的是什么?
1.the_permalink()返回http://xxxx.com/123.html
2.图片没有链接,图片上面显示http://xxxx.com/123.html
3.给图片加链接http://xxxx.com/123.html

我猜测: 你the_permalink()最终没有 return “http://xxxx.com/123.html” 而是echo “http://xxxx.com/123.html”

问题已解决

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!