0

I have function to return a stdClass object. when i do a

print_r($obj);

i get following as the output.

stdClass Object ( [string] => Array ( [0] => 0744202068 [1] => 0744202069 [2] => 0744202071 [3] => 0744202072 [4] => 0744202073 [5] => 0744202074 [6] => 0744202075 [7] => 0744202076 ) ) 

How do i access these variables as an array or convert these object array to a normal php array ?

mahen3d
  • 7,047
  • 13
  • 51
  • 103

0 Answers0