This procedure describes how to create a new Java object within a PHP script, which will adopt Java object properties and code assist options.
|
|
|
|
|
To create a new Java Object:
$a= new Java("");
|
|
The PHP variables that the Java objects have been assigned to will assume the properties and methods of the Java class. When creating new instances of the java class, java code assist options will therefore be available. |
|
|
|
|
|
|
Example:
$a->
Zend Studio stores Java variables in the same way as PHP variables, allowing for code completion functionality for nested method invocation:
|
|
|
|
|
|
|
|
|
Related Links: |
|
|
|