Skip to content
Advertisement

PHP separate values by comma

I am trying to separate my JSON Array:

JavaScript

WHERE

JavaScript

What i need is if one column like “Front_glass”:”X, XXX_or_XX, G” has three values it should be

JavaScript

or any thing that is possible Thanks.

Advertisement

Answer

You can use array_map function in your case. Look here live PHP sandbox

JavaScript
User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement