I have a text that has this format:
{
"id":"1",
"creado_por":"superadmin",
"fecha_y_hora_de_creacion":"2018-06-09 11:04:08",
"auditor_asignado":"Yheferzon",
"nombre_beneficiario":"CHARLES XAVIER"
}
And I have not been able to convert it into an array to be able to work with it, I thank you for a little hand.
That string is in JSON format , so if you have that text in a variable, you can use json_decode. The second parameter, TRUE , means that you want an associative array to be returned. Try this code: