PHP 4 gives you the ability to integrate PHP with Java libraries and servlets. Simply create a new Java object and then you can call the Java object's methods and access its properties.