Comma separated

Hi, How can I make this comma separated ? I tried to use the implode but I get error

$languages = json_decode($datalanguage,true);

array (size=3)
  0 => 
    array (size=1)
      'language' => string 'English' (length=7)
  1 => 
    array (size=1)
      'language' => string 'Chinese' (length=6)
  2 => 
    array (size=1)
      'language' => string 'Mandarin' (length=8)


$coma = implode(‘,’,$languages ); //error

Thank you in advance.

Looks like you have a missing $ sign

$coma = implode(',', $languages);

It’s wrong typo, I updated now the post

What error are you getting?


Hi, thank you for the reply. I already fix it.

It would be nice if you also wrote what was causing the issue to begin with. Maybe it might help someone else in the future.


1 Like

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.