Stack Overflow Questions Jobs Tags Users Badges Ask Question How to post dynamic 2d array in php server from ionic angularjs and save into mysql database?

I’m getting input from text field dynamically by angularjs

Array format

item[0][‘id’] = 0;

item[1][‘text’] = ‘abc’;

item[0][‘id’] = 1;

item[1][‘text’] = ‘xyz’;




item[0][‘id’] = n;

item[1][‘text’] = ‘zxc’;

I want to post this array to my php script using angularjs service API

php script should accept this 2d array and save to database.