If it's a "php page" then I suppose you're talking about a web page anyway, so in practice you should call the function on your webpage, for example teste.php
:
<?php
function retornar() {
$valor = "aa";
return $valor;
}
echo retornar();
Or it may even be just this:
<?php
echo "aa";
And then call the address http://seusite/teste.php
(yourite is just an example) in your own C # , you can use #
Call in your C # file
WebClient client = new WebClient();
string downloadString = client.DownloadString("http://seusite/teste.php");
Or save content in a document:
WebClient client = new WebClient ();
client.DownloadFile("http://seusite/teste.php", " C:\conteudo.txt");