I am not sure about understanding about JSON, PHP, and MySQL.
In my plan, I will create a web server and android application.The database server is MySQL. In my understanding, PHP can send data and encode it into a JSON array, how can I use this JSON array in my Android application?
Your question is difficult to understand.
It seems like you’re asking how to send JSON data using PHP.
Use the PHP
json_encodeandjson_decodefunctions to convert between JSON and PHP arrays.To send a JSON string, first convert the array to JSON using
json_encode(), thenprintthe resulting string and exit the program.Hope that helps.