|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2006-01-10 12:01 UTC] sniper@php.net
|
|||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Nov 02 21:00:02 2025 UTC |
Description: ------------ Hi, I call a COM function which returns a multi dimensional variant array of type VT_VARIANT|VT_ARRAY. I am using PHP 5.0.5 version. I have problems to print this multi array and I get a warning saying "can handle only 1 dimension variant arrays." Kindly find my code below and let me know where the problem is. Reproduce code: --------------- //call the COM $instance = new COM("ArrayTry.myarray"); //define the VT_VARIANT|VT_ARRAY which will hold the multi dimensional variant array returned from the COM $StringVariant = new VARIANT(); //call the COM function GetUserList() which returns the multi variant array $StringVariant=$instance->GetUserList(); print_r($StringVariant); // here I get Object id #number as output in the php page Expected result: ---------------- Should print the multi array and its associated elements. Actual result: -------------- display shows "Object ID#number"