James
James

Reputation: 6008

Extract data from PHP Object

I'm using the Facebook API and the class produces this object.

   object(User)#4 (5) {
      ["fbc_uid"]=>
      string(9) "324234324"
      ["fbc_first_name"]=>
      string(5) "James"
      ["fbc_last_name"]=>
      string(5) "Proud"
      ["fbc_name"]=>
      string(11) "James Proud"
      ["fbc_email"]=>
      NULL
    }

How do I extract the fbc_uid from this object, from outside the "User" Facebook class?

Upvotes: 0

Views: 1401

Answers (1)

Jake McGraw
Jake McGraw

Reputation: 56146

Have you tried:

$userObj->fbc_uid

Upvotes: 4

Related Questions