I am using Codeigniter to develop APIs and I am required to accept data in application/x-www-form-urlencoded format instead of JSON.
I am not getting how to store and input request data as array in a variable.
I am using Codeigniter to develop APIs and I am required to accept data in application/x-www-form-urlencoded format instead of JSON.
I am not getting how to store and input request data as array in a variable.
Use the same key multiple times, and put square brackets on the end.
animals[]=cat&animals[]=dog