I have the following code :
$results = $Q->get_posts($args);
foreach ($results as $r) {
print $r['trackArtist'];
}
This is the output :
["SOUL MINORITY"]
["INLAND KNIGHTS"]
["DUKY","LOQUACE"]
My question is, if trackArtist is an array, why can't I run the implode function like this :
$artistString = implode(" , ", $r['trackArtist']);
Thanks
UPDATE :
Yes, it is a string indeed, but from the other side it leaves as an array so I assumed it arrives as an array here also. There must be some processing done in the back.
Any idea how I can extract the information, for example from : ["DUKY","LOQUACE"]
to get :
DUKY, LOQUACE
Thanks for your time
trackArtistis array?var_dump($r['trackArtist']);instead ofprint();to check if it is actually an array.