The codes in short:
F = Full-Fare First Class
P = First Class (some airlines use this code for Business class. Jet Airways of India, for instance).
A = First Class Discounted
R = First Class Suites (currently only Airbus A380, and formerly Supersonic Concorde),