|
From: <php...@li...> - 2009-07-09 11:02:39
|
For example with:
$jlist = new ("java.util.ArrayList", array("one", true, 3));
$jlist->append(...);
...
$jarray = $jlist->toArray());
$jarray|1] = false;
...
// now we store it in the context
java_context()->setAttribute("ar", $jarray)
9. Jul 2009 12:35 nachm. schrieb am <
php...@li...>:
Hi
I am trying with the following code could you please tell me how to create
the java objects array in php, using php java bridge.
Code I am using:
$testArray = array();
$testObject = new java("test.ravi.phpjavabridge.testJava");
$testArary[0] = $testObject;
java_context()->setAttribute("context", java_closure($testArray), 100);
Thanks
- Ravi -
------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge
This is your chance to win up to $100,000 in prizes! For a limited time,
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize
details at: http://p.sf.net/sfu/Challenge
_______________________________________________
php-java-bridge-users mailing list
php...@li...
https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users
|