così ...

Codice PHP:
if(substr($row[0],strlen($row[0])-2)=='A1'