Retreiving php value using WWW

I have the following php script and would like to get the echo into unity. However, when I do www.text ,it gives me the HTML text instead of the echoed value. Can someone point out to me where did I go wrong?

<?php
$a = 'apple';
$b = 'cider';
$c = 'drink';
echo $c;
?>

In Unity I use:

var www : WWW = new WWW("My address");
yield www;
Debug.Log(www.text);

It gives me the whole html page after www.text.

EDIT: It looks like someone had a similar problem but not solved.

That’s what www.text should give you, “drink” followed by the whole page.

You could use String.Split to trim off everything but the first word.

Or you can use WWWForm with $POST to just send a value to the PHP script and get the echo value back.