php - Accessing Class Properties with Spaces -
stdclass object ([sector] => manufacturing [date found] => 2010-05-03 08:15:19)
so can access [sector] using $object->sector how can access [date found] ?
you can way:
$object->{'date found'} stdclass object ([sector] => manufacturing [date found] => 2010-05-03 08:15:19)
so can access [sector] using $object->sector how can access [date found] ?
you can way:
$object->{'date found'}
Comments
Post a Comment