This repository was archived by the owner on Jan 8, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 78
This repository was archived by the owner on Jan 8, 2019. It is now read-only.
Not working on deeper arrays? #6
Copy link
Copy link
Open
Labels
Description
I'm trying to parse the following array **:
Array
(
[data] => Array
(
[0] => Array
(
[id] => 78987967867
[created_time] => 2013-06-16T02:30:15+0000
)
[1] => Array
(
[id] => 45645645645
[created_time] => 2013-04-20T17:43:46+0000
)
[2] => Array
(
[id] => 5675676756756
[created_time] => 2013-04-08T20:52:57+0000
)
[3] => Array
(
[id] => 5767567657
[created_time] => 2013-02-15T23:08:10+0000
)
[4] => Array
(
[id] => 6556765756
[created_time] => 2013-02-15T23:08:02+0000
)
[5] => Array
(
[id] => 345345345
[created_time] => 2010-01-25T06:44:05+0000
)
[6] => Array
(
[id] => 345345656
[created_time] => 2008-12-06T02:12:25+0000
)
[7] => Array
(
[id] => 2453453453
[created_time] => 2008-02-16T02:36:45+0000
)
[8] => Array
(
[id] => 1232434234
[created_time] => 2007-07-08T01:56:34+0000
)
[9] => Array
(
[id] => 6512005646
[created_time] => 2007-07-08T01:55:14+0000
)
[10] => Array
(
[id] => 6512010646
[created_time] => 2007-03-13T20:44:19+0000
)
[11] => Array
(
[id] => 6512015646
[created_time] => 2007-02-16T15:12:42+0000
)
)
[paging] => Array
(
[cursors] => Array
(
[before] => sdkj898hnnksdffsdf=
[after] => moiusdujnekwero==
)
)
)
This array is contained in $data. Calling array_column($data,'id') returns an empty array:
Array
(
)
There are no errors, no warnings, no notices. Unless I'm doing something wrong, it would seem that there is some sort of limit on array depth?
Ideas? Particularly how to debug this?
** this is a standard datastructure from the Facebook API, turn into a PHP array by using json_decode($json, TRUE)