See code below:
This for an example would produce the follwong result:
077323232,077845848,935683856,
I want to store the entire result as a string in $to variable without the last " , "
The reason I want to store all mobile numbers in a variable is because I'm using a SMS script that should receive mobile numbers in comma seperated format in order to send in bulk.
Ex.
$to = 077323232,077845848,935683856;
First problem is getting rid of the last comma in the result and the second problem is storing the entire result in $to variable.
Please help me.