1

Is thare any way to translate .net C# into PHP and vice versa?

Rella
  • 65,003
  • 109
  • 363
  • 636
  • 1
    Possible Duplicate - http://stackoverflow.com/questions/441161/how-to-convert-code-from-c-to-php – Bhaskar Jan 29 '10 at 08:34

3 Answers3

2

There is Phalanger, which is a .NET php compiler. If you compile php with it, you can then open the assembly in Reflector to get the C# or VB.NET.

Don't know about anything that will do it the other way around.

Oded
  • 489,969
  • 99
  • 883
  • 1,009
1

The jsc project can convert .net/C# to PHP for you.

  1. Overview: http://jsc.sf.net
  2. Source: http://jsc.sourceforge.net/examples/web/OrcasAvalonWebApplication/
  3. Example: http://jsc.svn.sourceforge.net/viewvc/jsc/templates/OrcasAvalonWebApplication/ alt text
Glorfindel
  • 21,988
  • 13
  • 81
  • 109
zproxy
  • 3,509
  • 3
  • 39
  • 45
0

I am not sure this is going to work without getting some wetware involved. For example, like this.

Tarydon
  • 5,097
  • 23
  • 24