How can i get the data as a json code like this image?

i have database and in this database i have a row name Tags like this image from youtube api
i wanna get the tags data with number
like this image how can i do it ?
in php.

json_encode is your friend.

i know but i wanna get the tags data as foreach inside the json encode

yeah u are right i open the documetion about json encode and i found my answer thank u so much

1 Like

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