here is a snip of code I am working with.
for ($t = 0; $t < count($sold_tickets); $t++) {
$line = each ($sold_tickets);
}
I want to send the values (separated by a space) in an email message and can't seem to get it to work.
I have tried:
$tickets = implode (" ", $line);
and
$tickets = implode (" ", $sold_tickets);
and variations with $line[value], but never seem to get what I am looking for. If someone buys tickets 1001 and 1002, they are held in the array ok, but implode statements either send nothing or weird formats like "1001 1002 1 1"
Can someone please show me what I'm doing wrong?
Thank you