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 ?
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?