Like @shez1983 said, write to a csv file then use tools like mysqlimport or mongoimport (the command...
Please use mysqlimport ... https://dev.mysql.com/doc/refman/5.0/en/mysqlimport.html
I get your feeling. It is true that PHP does have a lot of weaknesses and have a bad reputation of h...
If I understand correctly, it looks like you are having hard time picking up the right candidate key...
Could you provide more information? Your code, error log would help.
The Laravel portal for problem solving, knowledge sharing and community building.