Trying to use the implode()
function to add a string at the end of each element.
$array = array('9898549130', '9898549131', '9898549132');
$attUsers = implode("@txt.att.net,", $array);
print($attUsers);
Prints this:
9898549130@txt.att.net,9898549131@txt.att.net,9898549132
How do I get implode()
to also append the glue for the last element?
Expected output:
9898549130@txt.att.net,9898549131@txt.att.net,9898549132@txt.att.net
//^^^^^^^^^^^^ See here