Hello,
This is my first ever attempt with PHP and I am stuck working with strings. I have this:
Code: Select all
$message .= "Requested Training: $Area1, $Area2, $Area3, $Area4, $Area5, $Area6, $Area7, $Area8, $Area9, $Area10, $Area11 \n\n";
It of course puts the data correctly but if one of the $Area variables are blank I end up with: “test, test1, , , , , “ As I am sure you know I still display the commas. I figure I can fix this with an IF statement in between each one but I am hoping there is a better way.
Thanks for the help