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

WBOY
Libérer: 2016-06-23 14:23:55
original
1013 Les gens l'ont consulté

如下,我想在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”

问题已解决

Étiquettes associées:
source:php.cn
Déclaration de ce site Web
Le contenu de cet article est volontairement contribué par les internautes et les droits d'auteur appartiennent à l'auteur original. Ce site n'assume aucune responsabilité légale correspondante. Si vous trouvez un contenu suspecté de plagiat ou de contrefaçon, veuillez contacter admin@php.cn
Tutoriels populaires
Plus>
Derniers téléchargements
Plus>
effets Web
Code source du site Web
Matériel du site Web
Modèle frontal
À propos de nous Clause de non-responsabilité Sitemap
Site Web PHP chinois:Formation PHP en ligne sur le bien-être public,Aidez les apprenants PHP à grandir rapidement!