laravel print array inner array [closed]

  arrays, laravel, php
{
  "id": 4,
  "name": "Carpets",
  "slug": "carpets",
  "type": "shop",
  "parent_category_id": 0,
  "featured": 0,
  "position": 5,
  "active": 0,
  "created_at": "2020-04-28 03:54:39",
  "updated_at": "2020-04-28 03:54:39",
  "child_categories": [
    {
      "id": 29,
      "name": "Office Floor Mat",
      "slug": "office-floor-mat",
      "type": "shop",
      "parent_category_id": 4,
      "featured": 0,
      "position": 9999,
      "active": 0,
      "created_at": "2020-04-28 03:54:40",
      "updated_at": "2020-05-22 06:43:34"
    }]
}

How to print "child_categories->id"

Source: Ask PHP

LEAVE A COMMENT