从php上的变量获取链接


Get Link from variable on php

我在Social Engine 4中有一个变量,我想显示它与一起产生的文本结果

$avatar = $this->itemPhoto($this->viewer(), 'thumb.icon');

变量$avatar包含到图像的链接,该图像通过DB中的链接存储在服务器上。我想看看它返回的链接文本是什么。任何建议

感谢

试试看:

ob_start();
$this->itemPhoto($this->viewer(), 'thumb.icon');
$avatar = ob_get_clean();
var_dump( $avatar );