I need to explode my string input into an array at the commas. However the string contains commas inside quotes.
Input:
$line = \'TRUE\',\'59\',\'A l
Since you are using comma seperated values, you can use str_getcsv.
str_getcsv($line, ",", "'");
Will return:
Array ( [0] => TRUE [1] => 59 [2] => A large number is 10,000 )