What is the best way to transfer an object from C# to PHP?
Lets say I have this:
class MyClass {
public string name;
public int id;
}
I then want to send it to a PHP page and receive it as an object (I have more complex datatypes in mind).
How can I do that, from the C# side and from the PHP side?
One way is to serialise to and from a text based format, for example JSON. Both languages should have ready-made serializers. Or XML if you prefer that.