0

i want to send result proccess in php to android then i want to display the result in emulator..

but i cant send the result from php to android cz the result is an array 2Dimension

1      2        3
4      5        6
7      8        9
10    11       12

how to parse the result in android?

2 Answers 2

2

I would use json_encode() in PHP, and then decode it in Android.

Sign up to request clarification or add additional context in comments.

4 Comments

I agree, JSON is the way to go
i do but it just works in 1D array, can you find me example with 2Dimension array?
@akalucas, in 2D? how to store in android?
0

JSon is a good way, and this is an example https://stackoverflow.com/a/4692780/719212 or http://fahmirahman.wordpress.com/2011/04/21/connection-between-php-server-and-android-client-using-http-and-json/

And for 2D array: 2D arrays in JSON getting converted into a 1D array of objects

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.