Home >Backend Development >PHP Tutorial >discuz 获取用户组id 数组

discuz 获取用户组id 数组

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-06-23 13:14:441793browse

XML文件中

















模板文件输出:$testgroups
显示为:
a:7:{i:0;s:2:"10";i:1;s:2:"11";i:2;s:2:"12";i:3;s:2:"13";}


怎么样才能输出为:
10,11,12,13


请老师们指点下,谢谢


回复讨论(解决方案)

echo join(',',unserialize('a:4:{i:0;s:2:"10";i:1;s:2:"11";i:2;s:2:"12";i:3;s:2:"13";}'));//10,11,12,13

Statement:
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