here is the culprit himself
array(10) { [0]=> array(1) { [0]=> object(stdClass)#110 (7) { ["id"]=> string(5) "27741" ["type"]=> string(8) "KPPeople" ["nameRU"]=> string(30) "ΠΠΆΠ΅ΠΉ ΠΠΆΠ΅ΠΉ ΠΠ±ΡΠ°ΠΌΡ" ["nameEN"]=> string(11) "JJ Abrams" ["posterURL"]=> string(29) "actor_iphone/iphone_27741.jpg" ["professionText"]=> string(18) "Π Π΅ΠΆΠΈΡΡΠ΅ΡΡ" ["professionKey"]=> string(8) "director" } } [1]=> array(127) { [0]=> object(stdClass)#108 (8) { ["id"]=> string(7) "2196854" ["type"]=> string(8) "KPPeople" ["nameRU"]=> string(21) "ΠΠΆΠΎΠ½ ΠΠΎΠΉΠ΅Π³Π°" ["nameEN"]=> string(11) "John Boyega" ["description"]=> string(4) "Finn" ["posterURL"]=> string(31) "actor_iphone/iphone_2196854.jpg" ["professionText"]=> string(12) "ΠΠΊΡΠ΅ΡΡ" ["professionKey"]=> string(5) "actor" } [1]=> object(stdClass)#111 (8) { ["id"]=> string(7) "3016071" ["type"]=> string(8) "KPPeople" ["nameRU"]=> string(21) "ΠΡΠΉΠ·ΠΈ Π ΠΈΠ΄Π»ΠΈ" ["nameEN"]=> string(12) "Daisy Ridley" ["description"]=> string(3) "Rey" ["posterURL"]=> string(31) "actor_iphone/iphone_3016071.jpg" ["professionText"]=> string(12) "ΠΠΊΡΠ΅ΡΡ" ["professionKey"]=> string(5) "actor" }... } [2]=> array(14) { [0]=> object(stdClass)#237 (7) { ["id"]=> string(5) "27741" ["type"]=> string(8) "KPPeople" ["nameRU"]=> string(30) "ΠΠΆΠ΅ΠΉ ΠΠΆΠ΅ΠΉ ΠΠ±ΡΠ°ΠΌΡ" ["nameEN"]=> string(11) "JJ Abrams" ...} [3]=> array(1) { [0]=> object(stdClass)#251 (7) { ["id"]=> string(7) "2469864" ["type"]=> string(8) "KPPeople" ["nameRU"]=> string(33) "ΠΠ΅ΠΎΡΠ³ΠΈΠΉ ΠΠ°Π½ΠΈΠ΅Π»ΡΠ½Ρ" ["nameEN"]=> string(0) "" ["posterURL"]=> string(31) "actor_iphone/iphone_2469864.jpg" ["professionText"]=> string(33) "Π Π΅ΠΆΠΈΡΡΠ΅ΡΡ Π΄ΡΠ±Π»ΡΠΆΠ°" ["professionKey"]=> string(14) "voice_director" } }...
I need to get id, nameRU, posterURL and professionKey and the number of arrays of the first level and the second as you can see can be from 0 to infinity