如何在PHP回音中重写PHP回音?
我要放置此代码:如何在PHP回音中重写PHP回音?,php,wordpress,get,echo,Php,Wordpress,Get,Echo,我要放置此代码: <?php echo Sabai::_h($entity->getAuthor()->email);?> <?php echo get_avatar( 'email@example.com', 32 ); ?> 在该代码内部: <?php echo Sabai::_h($entity->getAuthor()->email);?> <?php echo get_avatar( 'email@exampl
<?php echo Sabai::_h($entity->getAuthor()->email);?>
<?php echo get_avatar( 'email@example.com', 32 ); ?>
在该代码内部:
<?php echo Sabai::_h($entity->getAuthor()->email);?>
<?php echo get_avatar( 'email@example.com', 32 ); ?>
上面写着email@example.com
。有人能写下来让我理解吗?试试这个:
<?php echo get_avatar( Sabai::_h($entity->getAuthor()->email), 32 ); ?>
或:
$email=Sabai::h($entity->getAuthor()->email);
以这种方式尝试。正如奥卡纳尔所说。
以他为例
echo '<td align="left"><a href="'.url('Forum/create_new_post?topic_id='.$post->topic_id.'&forum_id='.$post->forum_id.'').'"><img src="'.SITE_URL.'/lib/skins/flyeuro/images/forums/t_reply.gif"/></a></td>';
echo';
或者您也可以参考此链接以供参考。
请根据您的代码进行修改。第一个代码只是将电子邮件放在无图片头像的顶部,也许get_头像功能有问题。你能分享更多关于你的代码的细节吗?我不知道怎么说,我是新来的