Welcome Guest, Not a member yet? Register   Sign In
Looking for an explanation of stdClass Object
#1

[eluser]caperquy[/eluser]
I am currently studying codeigniter samples. It appears that the result of MySQL requests returns something like this :

Array (
  • =>Array([0]=>stdClass Object([id]=>9 [name]=>Anna [email]=>anna@Anna.com)[1] =>stdClass Object([id]=>5[name]=>Bill[email]=>[email protected])[2]=>stdClass Object([id]=>1 [name]=>Bob [email]=>bob@bob.com)[3]=>stdClass Object([id]=>10[name]=>Hellen [email]=>[email protected]) [4]=>stdClass Object([id]=>7 [name]=>John [email]=>john@john.com)))

    Question 1 : I am looking for an explanation of what a stdClass Object is, as well as its
    utility ?
    Question 2 : how to access a specific element (for instance all names) of such complex
    array ?

    Many thanks for help.


Messages In This Thread
Looking for an explanation of stdClass Object - by El Forum - 06-25-2010, 02:29 AM
Looking for an explanation of stdClass Object - by El Forum - 06-25-2010, 02:58 AM
Looking for an explanation of stdClass Object - by El Forum - 06-25-2010, 03:09 AM
Looking for an explanation of stdClass Object - by El Forum - 06-25-2010, 03:32 AM



Theme © iAndrew 2016 - Forum software by © MyBB