Fork me on GitHub
代码改变世界

算法 字符串转换为以为数组

2012-11-08 11:31  freefei  阅读(163)  评论(0编辑  收藏  举报
[php] //处理用户提交的id $cp_uid=1,2,3,4,5, $stringuid=$_REQUEST['cp_userid']; $uids=substr($stringuid,0,strlen($stringuid)-1); // 去掉最后的逗号 $cpuid=explode(",",$uids);// 用户的uid 数组 [/php]
@ https://github.com/ranmufei

守望者舆情监控

守望者舆情监控系统