stdClass Object ([Sector] => Manufacturing [Date Found] => 2010-05-03 08:15:19)
So I can access [Sector] by using $object->S
[Sector]
$object->S
have you tried
$property = 'Date Found'; $object->{$property};
Or simply
$object->{'Date Found'};
try
$var="Date Found"; $this->$var
But I doubt that much you can have spaces in class properties names in php
You can do it this way:
$object->{'Date Found'}