I have one string, it is given below,
$str = '1, test1, 22, 2, test2, 44, 3, test4, 55, 4, test7, 12...';
The string contains id, name, age, I have to insert into database like this,
id | name | age
1 | test1| 22
2 | test2| 44
Please let me know, How can I achieve this one?
Thanks In advance