You are here: Re: [PHP] Accessing data in an object? « PHP « IT news, forums, messages
Re: [PHP] Accessing data in an object?

Posted by Charles Kline on 09/27/05 19:16

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'];

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация