Re: array of java-objects

From: Date: Thu, 23 Oct 2003 14:42:57 +0000
Subject: Re: array of java-objects
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-167285@lists.php.net to get a copy of this message
Hi, please post your full code Helke Schröder wrote:
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
-- Raditha Dissanayake. ------------------------------------------------------------------------ http://www.radinks.com/sftp/ | http://www.raditha/megaupload/ Lean and mean Secure FTP applet with | Mega Upload - PHP file uploader Graphical User Inteface. Just 150 KB | with progress bar.

« previous php.general (#167285) next »