PHP supports MySQL queries, which include INSERT INTO.
It's just not very fast to do an INSERT for every record if you plan
to insert many records at the same time.
The fastest way to insert many records is to print the information
in a delimited textfile, and user mysql's LOAD DATA INFILE to load the text into the table.
Check out the manual for more information.