Hi,

OOP is not my strong suit, and I'm trying to work with someone else's code, but am having trouble accessing a value. Let's say I have an object called $bob, and doing a print_r on $bob produces this....

Array
(
        [one] => this
        [two] => that
        [three] = Array
                (
                        [alpha] => something
                )
        [_four] = Array
                (
                        [beta] => another
                        [gamma] => Array
                                (
                                        [word] => up
                                )
                )
)

Now, I want to retrive the value of $bob->_four->gamma->word, but how? I've tried $bob->_four->gamma->word, $bob->_four['gamma']['word'], etc. I've also tried get_object_vars(), but for some reason 'word' isn't in the resulting array. Anyone? TIA

--
John C. Nichel
KegWorks.com
716.856.9675
[EMAIL PROTECTED]

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to