PHP Question

Hello How to add comma in echo term to get output job city?

Please help me PHP Masters,

I need to show cities values along with comma,
e.g Arizona, California, Los Angeles

$terms = get_the_terms( $job_id, 'job_region' );
foreach($terms as $term){
echo $term->name;

Answer Source

Thank you for everyone for you help and support. Finally I found an answer:

echo '>>>>'.count($terms); foreach($terms as $term){

                         echo $term->name.', ';
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download