Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3602120
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T20:42:23+00:00 2026-05-18T20:42:23+00:00

I am not sure about understanding about JSON, PHP, and MySQL. In my plan,

  • 0

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?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-18T20:42:24+00:00Added an answer on May 18, 2026 at 8:42 pm

    Your question is difficult to understand.

    It seems like you’re asking how to send JSON data using PHP.

    Use the PHP json_encode and json_decode functions to convert between JSON and PHP arrays.

    To send a JSON string, first convert the array to JSON using json_encode(), then print the resulting string and exit the program.

    <?php
    $my_array = array('this'=>'is', 'just'=>'an', 'example'=>'array');
    
    $json_string = json_encode($my_array);
    print $json_string;
    die;
    ?>
    

    Hope that helps.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am not sure about understanding about JSON, PHP, and MySQL. In my plan,
I'm studying for the Zend PHP certification . I am not sure about the
I am not sure about how NSSet's anyObject work. What does it mean that
I am not sure about the exact purpose of the following Rampion's code .
I am not sure about some things in OOP. If I have Class1 ,
I'm not sure about clarity of the STAR word. I'm implementing a search method
I'm not sure about one thing. There are two things in object oriented programming.
I'm new to MVC (MVC3) so not sure about the best way to implement
I am relatively new to OOP so I am not sure about the terminology.
I'm using HTMLPurifier in a current project and I'm not sure about the most

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.