array of java-objects
| From: | Helke Schr�der | Date: | Thu, 23 Oct 2003 14:04:36 +0000 |
| Subject: | array of java-objects | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-167277@lists.php.net to get a copy of this message | ||
Hi,
I'm trying to use our java-code in php.
But strange things happens....
Maybe I did a simple mistake..
$MyInf=new Java("myUtil.myInfo");
This is inside of a loop through 3 items:
$MyAttributes=array();
$MyAttributes=$MyInf->MyAttrReader($v, "","", $item);
$c=null;
$c=count($MyAttributes);
so far ok, $c shows the correct number
but when doing this :
reset($MyAttributes);
$sa=$MyAttributes[0]; /* I can use 0 because there are always more than one
elements inside*/
var_dump($sa);
it comes up with a java-object only for the first entry
object(java)(1) { [0]=> int(4) }
int(20)
int(36)
And then of course it's impossible to call methods on the objects because
they are no objects....
Fatal error: Call to a member function on a non-object
Every hint woul'd be appreciated
thanks, Helke