Recently, hivemind.co.uk's friends published an article on PHP, to show you how to use the Php-java bridge. The original title of this article is "How to bridge PHP and Java for powerful web Solutions" (How PHP and Java are linked to create a more powerful web solution).
This title more accurately describes what the article is going to tell you. But I'm skeptical about the proposal to create a Autoexec.bat file to set the path of PHP and the path to Java classes mentioned in the article. This is true from a technical point of view, and you can do so.
In addition, there is a suggestion to create the JDK and then run it. This setting can be very convenient. (because it is windows-based, so it does not need to be reset) Once you have the JDK installed, you can quickly create a "Hello World" class and use it in PHP. Anyway, for those of you who want to know how to run PHP and Java at the same time, look at this article.
Here the PHP code is so simple and straightforward. This is not OOP. But you can use it in Java in a lot of oop. Here I am prompted by the author: If you want, PHP can also provide the same OOP-based functionality. Finally, I'd like to note that if you consider using Java in PHP, you can continue reading the article and look at the examples it provides.