|
From: <php...@li...> - 2009-04-17 11:51:16
|
just guessing, but have you tried
$object = new java("Arrayausgabe");
$result = $object->meinArray(5);
print_r($result);
?
2009/4/17 <php...@li...>
> Hello,
> does anyone have an idea how to access this class from php?
>
> public class Arrayausgabe{
>
> public int[] meinArray(int wert){
> int a=wert;
> int Array[]=new int[5];
> Array[0]=a;
> Array[1]=a+1;
> Array[2]=a+2;
> Array[3]=a+5;
> Array[4]=a+9;
> return Array;
> }
> }
>
>
>
> Well,
> <?php
> require_once("http://localhost:8081/Ordner/java/Java.inc");
> $System = java("java.lang.System");
> $object = new java("Arrayausgabe");
> ????????????????????????????????
> ?>
>
> Thanks in advance!!!!!!!!!!!!!
>
>
>
>
>
>
> ------------------------------------------------------------------------------
> Stay on top of everything new and different, both inside and
> around Java (TM) technology - register by April 22, and save
> $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
> 300 plus technical and hands-on sessions. Register today.
> Use priority code J9JMT32. http://p.sf.net/sfu/p
> _______________________________________________
> php-java-bridge-users mailing list
> php...@li...
> https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users
>
|