• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to get value from array? message: "Cannot use object of type stdClass as array"

#2
That's easy.

PHP Code:
$details->production_companies[0]->id;

// Or

$a = ($details->production_companies);
$a[0]->id
Reply


Messages In This Thread
RE: How to get value from array? message: "Cannot use object of type stdClass as ... - by kaitenz - 10-02-2018, 02:50 AM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.