开发者

Multiple accounts creation at a time

I am trying to build an application, which could create multiple accounts at the same time. For example I add single account using ....

 $data = array('username'=>$username, 'email'=>$email, 'active'=>$active, 'admin'=>$admin);
 $add_user->开发者_高级运维AddUser($data);

Should I use explode method? How do I provide multiple values like username, email etc. Please help...


call AddUser for each addition, or make data a nested array.

 $data = array(
array('username'=>$username, 'email'=>$email, 'active'=>$active, 'admin'=>$admin),
array('username'=>$username2, 'email'=>$emai2, 'active'=>$active2, 'admin'=>$admin2)
)

and then execute each of them .

But I would call AddUser for each addition

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜