jeudi 4 août 2022

how to parse db object in laravel - php

I am new to laravel and I get this results from the DB Query that I made.

[{
    
    "screen_type": "ctv",
    "resulte1": "9.00",
    "resulte2": "9.00",
    "created_at": "2022-06-23 12:03:54",
    "updated_at": null
}, {
    
    "screen_type": "app",
    "resulte1": "9.00",
    "resulte2": "9.00",
    "created_at": "2022-06-23 12:03:54",
    "updated_at": null
}, {
    
    "screen_type": "site",
    "resulte1": "9.00",
    "resulte2": "9.00",
    "created_at": "2022-06-23 12:03:54",
    "updated_at": null
}]

I want to put in variables the resulte1 of screen_type ctv and in another variable the resultes of screen type app

how in laravel\php I can parse this DB Object and get this values?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire