PHP在csv的每个值的两端添加引号

I am currently attempting to wrap every entry in a csv in quotes for input into an SQL server. currently, I am using this method:

$the_row = str_replace(",", "','", $the_row);
$the_row = "'" . $the_row . "'";

This works great, except it leaves off the final quote at the end of each row. What is the best way to go about fixing this?