I could do that using just the if and elseifmanually, but it doesn't works if I use an array result to separate by comma...
So, this is what I'm trying to do:
on DB a member has 3 languages in this format: english, portuguese, spanish
how to print that in this format: english, portuguese and spanish?
This is how the result is print:
foreach($acc_languages as $list){
$languages = $list['lang'];
}
there is some "list format" to add a comma to separate values with an "and" before the last?