The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Seperating a string
Hey guys, I need just a tad bit of assistance here. I basically have a text field where you enter usernames seperated by comma's (Joe, Jeff, Craig) Thats where I use the explode function. Then use a foreach loop to loop through the names. However if I echo the $list_usernames it spits out JoeJeffCraig in one line. I actually need each name to be sperated with a ; and I'm having a brain lapse on how to do this again
PHP Code:
|
#2
|
||||
|
||||
echo $list_username . '; ' ;
|
#3
|
||||
|
||||
that easy? oops, thought it required another function
My goal is to put the variable in the pm datamanager $pmdm->set_recipients($list_username, $botpermissions); So in the foreach maybe I need something like this? Code:
foreach($list_usernames AS $list_username) { $listusernames = $list_username;; } $pmdm->set_recipients($listusernames, $botpermissions); UPDATE: Think I got it PHP Code:
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|