note 36001 deleted from ref.com by danbrown
| From: | danbrown@php.net | Date: | Mon, 21 Dec 2009 17:14:57 +0000 |
| Subject: | note 36001 deleted from ref.com by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-164228@lists.php.net to get a copy of this message | ||
Note Submitter: mkcostello at hotmail dot com
----
Took me a while to work this out as there is very little help available. Accessing com variables
that are multi arrays can prove tricky.
e.g.
$ex = new COM("application");
$ex->Stock->stSalesBands
is an array A-H [stPrice,stCurrency]
php chucks out an error on this:
$ex->Stock->stSalesBands(C)->stPrice;
so, you have to do this
$tmp = $ex->Stock->stSalesBands(C);
echo $tmp->stPrice;
unset($tmp)