How to get PHP script result in Unity?

I was loonking on WWW and WWWForm to make some login system.

The only thing i didn’t get is how to get a result from a PHP code.

Lets say i make a request to this url: http://example.com/script.php?var1=value2&var2=value2.

The php script does this: var3 = var1 + var2.

I run the code, and the request is completed.

In what variable is the result for the request?

Where i can get var3 in Unity?

The WWW object will contain all the text that service returns.

If you were to hit an html page it would have the text of the source for the page as the result. If you hit a php service, it’ll have the text of the response, whatever format you’re sending it back in (JSON, XML, plain text, etc).