title: Which function I can use to send a simple text from the php server to android
body: <p>If I have the following string variable in a <code>php</code> file:</p>
  
  <pre><code>$text = "Hello World";
  </code></pre>
  
  <p>Can I use <code>print(json_encode($text));</code> to send  the <code>$text</code> to the <code>void</code> function such as the following function in android?</p>
  
  <pre><code>void getString(String text) { // Do somethings on the text variable }
  </code></pre>