1

How to pass below array from Andriod? I want to pass this array to PHP.

b_array=[ [1,y],[3,y],[4,n],[5,n],[99,y],[1001,y],[1002,n],[1003,y],…]

How to received array (GET / POST ) in PHP. My Database structure required data in two part

part 1 ( id )> 1
part 2 ( status )> y

b_array will be one variable pass from android and b_array length cant be fix. b_array length depends on user input.

3
  • Possible duplicate of Send an Array with an HTTP Get Commented Nov 4, 2016 at 6:11
  • here i want to pass array in one variable Commented Nov 4, 2016 at 6:17
  • You know they are two distinct systems, right? Commented Nov 4, 2016 at 6:22

1 Answer 1

1

First, use okhttp to send GET request.
Second, make b_array to json, xml or etc which can represent array.
Third, parse those request at PHP-side.

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

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.