I have response json, but this respone is dynamic i mean key and value is dynamic, this json for logs on create or update or delete, i need loop for this response
I do not need loop like this
foreach($object as $row)
{
$rwo->first_name;
}
etc,... I need loop dynamic
string(2) "id" int(27)
string(4) "type" string(5) "blogs"
array(17) {
["id"]=> int(12)
["user_id"]=> int(34)
["category_id"]=> int(32)
["image"]=> string(20) "image_1590073786.jpg"
["status"]=> int(1)
["views"]=> int(0)
["is_read"]=> int(1)
["created_at"]=> string(19) "2020-05-21 15:09:46"
["updated_at"]=> string(19) "2020-06-06 13:07:51"
["deleted_at"]=> NULL
["id_hash"]=> int(12)
["humans_date"]=> string(17) "منذ شهرين"
["full_path_image"]=> string(33) "uploads/blog/image_1590073786.jpg"
["title"]=> string(29) "المائدة الفاخرة"
["description"]=> NULL
["details"]=> string(74) "
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire