Is there are tools for converting java code to php? I have source code of java library and I need it to convert to php.
解决方案
It is possible to automatically convert it. This is called a source to source compiler. Normally when you compile software, the parser will build an abstract syntax tree and convert this into the target machine language code. But it is just as possible to have a compiler convert this into another high level (compilable) language.
Java is a strongly typed language, and PHP is not, so source to source compilers are rare and the code conversion process is incomplete. However this said, there is a reasonably good one with a free demo at: http://javatophp.com
虽然存在源代码到源代码的编译器可以尝试将Java转换为PHP,但要注意的是,由于Java是强类型语言而PHP不是,所以转换可能不完全。有一个免费演示的转换工具可以在http://javatophp.com上找到。

被折叠的 条评论
为什么被折叠?



