Good evening friends, I have a database that contains a longtext type field where they record a json as text.
"[{"nom":"(13) Radio AM FM - $13500","can":"1","sub":13500},{"nom":"(14) Audifonos Gamer - $40500","can":"3","sub":121500}]"
And I need to convert it to a multidimensional array but I have not been able to do it with PHP, I have tried with str_split with explode
Use the function
json_decode
:And you will get: