![]() |
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:
|
echo $list_username . '; ' ;
|
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) UPDATE: Think I got it PHP Code:
|
All times are GMT. The time now is 09:35 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|