doumi4676 2013-07-24 05:17
浏览 39
已采纳

Ruby和PHP在一起

I know PHP well but I'm new to Ruby on Rails, I am about to learn it.

The thing is that I would like to have PHP code inside Ruby code, or something similar to this. Could there be a way to do that, even if it's hard to achieve ?

  • 写回答

1条回答 默认 最新

  • dongsou0083 2013-07-24 05:25
    关注

    You can invoke PHP interpreter from inside Ruby as an external command, whether with system, backticks, popen3 or another mechanism. But why would you want that?

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?