Hello,
I have an object that looks like this:
shelterrental Object
(
[connectionError] =>
[changedVals] => Array ( )
[dbh] => Resource id #2
[id] => 1 [shelter] => 1
[renter] => Kevin Shakakhnopolis
[contact] => 504-899-4028
[date] => 2005-04-11
)
I would like to add a field or two under certain circumstances. I have
tried
$obj->newfield = 'xxx';
$obj->{'newfield'} = 'yyy';
$obj['newfield'] = 'zzz';
None of these methods work.
What is the correct syntax to add a field to an object in PHP 4?
TIA!
jg