I have built an HTLM form with checkboxes. I am sending the output to email. I am having trouble understanding how to cleanup the array I’m using to make the output from the 8 possible checkboxes look good in the email to be sent. For example if I have
These are all as check boxes and assuming that the user selects just a few boxes. How do I output in the body of the email just those selected with a comma separator.
At this point I’m using $array $array etc…thru 
I end up with spaces between for those not selected like
" Sidewalks Taxes Police"
I would like to test the array and append commas so I can get nice clean output like
Sidewalks, Taxes, Police
Any Help would be great!