Skip to content

Latest commit

 

History

History
23 lines (16 loc) · 382 Bytes

spgetuseravatarurl.md

File metadata and controls

23 lines (16 loc) · 382 Bytes

sp_get_user_avatar_url()

X2.2.0新增

sp_get_user_avatar_url($avatar)
功能:

获取用户头像地址

参数:

$avatar: 数据库中保存的用户头像文件路径

返回:

类型string,用户头像地址

使用:
$url = sp_get_user_avatar_url('avatart/2231rweqrqwer.png');
echo $url;//输出用户头像地址