the check whether the first char is an "-char can be performed like this:
if($string{0} == "\"")
// Do whatever u wanna do
Using the curly bracket syntax, u can get every single char of the string as if it were an element of an array, just put the number of the char (indexing starts with 0, so do be careful) between curly brackets after the variable.
hth