Edelco

Laravel itterate through arrays in an array

Posted 1 year ago by Edelco

I have the following dd from a API query:

array:22 [▼
  0 => array:3 [▼
    0 => {#436 ▼
      +"applicationInstance": "_definst_"
      +"name": "myAmsterdam"
      +"sourceIp": "rtmp://xx.xx.xx.xx:{portnumber}"
      +"isRecordingSet": false
      +"isStreamManagerStream": false
      +"isPublishedToVOD": false
      +"isConnected": true
      +"isPTZEnabled": false
      +"ptzPollingInterval": 2000
      +"ptzPollingIntervalMinimum": 1000
    }
    1 => {#418 ▶}
    2 => {#409 ▶}
  ]
  1 => []
  2 => []
  3 => []
  4 => array:3 [▶]
  5 => []
    ]

How will I be able to itterate over this so I can call the data from "name" and "isConnected" ?

Please sign in or create an account to participate in this conversation.

Reply to

Use Markdown with GitHub-flavored code blocks.