Jump to content

how to add something to an object?


ballhogjoni

Recommended Posts

I have the object $oCart and I want to add a property to it. This does not work. Can someone show me what I am doing wrong? AddVoucherRecipient is a new index in the properties array.

 

$oCart->properties['AddVoucherRecipient'] = $bAddVoucherRecipient;

 

properties is an array in the object.

Link to comment
https://forums.phpfreaks.com/topic/130600-how-to-add-something-to-an-object/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.