if (preg_match("/^\s*[\'\"]+/", $variable)){ // tiene comillas (al menos una)}else{ // no tiene (al comienzo)}