0

I have a variable $outvar that is returned from a call to a COM object. The following,

echo count($outvar)

returns a value of 0.

But if I

echo $outvar[1][1];

the value that I expect to be passed back by the COM object is printed.

Why doesn't a count of 0 indicate that there is nothing in the variable?

(Note: I believe $outvar is a VARIANT containing 2 numbers, although I cannot be sure. This question is related to another question specifically regarding Displaying contents of VARIANT in PHP, that is yet to be answered.)

Phil Goddard
  • 10,571
  • 1
  • 16
  • 28

0 Answers0