mercredi 27 janvier 2016

Split Database column value

I'm fetching data from database. I'm saving my data in string format like this

23,32

while fetching data from database my output is like

[{"transaction_id":"28,34"}]

but i want the out put in this format

[{"transaction_id":"28"},{"transaction_id":"34"}]

I'm not able to find the proper solution



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire