variable from php to unity

hello friends i need help.

i have a php file with one variable:

$test= “this is a text”;

i need pass from php to unity this variable can you helpme please?

i read something about WWW, but i dont understand how to unity reciebe this variable.

The idea is that I have a database in php, I create a 3D gallery where each field should be stored in mysql and open the gallery data, such as name age and sex are loaded from the database. … can someone help?

in the php file contains a variable how to send to unity

sorry for my english…:shock:

Use the echo command in php to write the contents of your variable as a response from a web page.

Then you can use the WWW class to process the response in Unity.

  var wwwResponse = new WWW("http://your.domain.com/some_page.php");

  /* wait for the download of the response to complete */

  yield wwwResponse;

  /* display the content from the response */

  print(wwwResponse.text);