here is the code

foreach ($qr as $q){ var_dump($q); } 

getting

  object(stdClass)[63] public 'id' => string '991624' (length=6) public 'nameRU' => string 'Пол Фиг' (length=13) public 'posterURL' => string 'actor_iphone/iphone_991624.jpg' (length=30) public 'professionKey' => string 'director' (length=8)... 

I write so

 foreach ($qr as $q){ var_dump($q->posterURL); } 

I get Undefined property: stdClass::$posterURL why not tell Undefined property: stdClass::$posterURL and how correctly

    1 answer 1

    it means that at a certain moment of the cycle it is not; I can only advise you to do so for debug

     foreach ($qr as $q){ if(!isset($q->posterURL) { var_dump($q->posterURL,$q); } }