Re: Accessing data in an object?

From: Date: Tue, 27 Sep 2005 16:16:58 +0000
Subject: Re: Accessing data in an object?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-223290@lists.php.net to get a copy of this message
On Sep 27, 2005, at 12:07 PM, Charles Kline wrote:
I am confused on how to get to the data in this object, anyone help me out? here is the result of my var_dump() which is inside a class function functionTest($data){ var_dump($data); } object(staff)(2) { ["arrStaff"]=> array(12) {
    ["bsStaffID"]=>
    string(4) "9090"
    ["bsLastName"]=>
    string(5) "kline"
    ["bsFirstName"]=>
    string(7) "charles"
    ["bsPhone"]=>
    string(4) "1212"
    ["bsSite"]=>
    string(1) "4"
    ["bsCube"]=>
    string(4) "1212"
    ["bsEmail"]=>
    string(6) "klinec"
    ["bp_boOrgID"]=>
    NULL
    ["bpPositionID"]=>
    NULL
    ["ptTitleName"]=>
    NULL
    ["bp_ptTitleID"]=>
    NULL
    ["bpVacantDate"]=>
    NULL
} ["created"]=> int(0) }
Nevermind... I got it :) echo $s->arrStaff['bsLastName'];

« previous php.general (#223290) next »