Forum Moderators: open
The problem I am having is that I want to remove the very last semicolon becuase what I have is outputting something like this
randomnameemailcom; randomguyemailcom; randomgirlemailcom;
and I need it to output like this
randomnameemailcom; randomguyemailcom; randomgirlemailcom
here is some of my php code, i know that i need to probably use the rtrim() function but Im just not sure how to emplement it...
while(list($val) = mysql_fetch_array($result))
{
$text = "$val; ";
};$text = rtrim($text, '; ');
echo $text;
how would I make the output result into a single variable in which I could then clip the final semicolon off of?
does this make sense?
in the example I have it only echos one email address, not all of them.
dc
, email[at]email[dot]com, , , email[at]email[dot]com, email[at]email[dot]com, ,