Function java_invoke
Invoke a method dynamically.
Example:
java_invoke(new java("java.lang.String","hello"), "toString", array())
Any declared exception can be caught by PHP code.
Exceptions derived from java.lang.RuntimeException or Error should
not be caught unless declared in the methods throws clause -- OutOfMemoryErrors cannot be caught at all,
even if declared.
object |
$object |
java object or type |
string |
$method |
method string |
array |
$args |
argument array |