That would be a great method, but a bit messy. I'd say that's the best way to start off. Then, run through a loop that cleans up the array (erases the even parts):
$stringArray = explode("\"",$string); // Split it into an array
for ($i = 0; $i < count($stringArray); $i++) { // Go through each array key
if ($i % 2 != 0) { // Use the mod operator to find if it's even
// It's an odd number, so we know it's in a quote.
$quoteArray[] = $stringArray[$i]; // Add to the quote array
}
}
unset($stringArray); // Get rid of $stringArray, it's wasting memory
However, if it starts with a quote, this might not work...