Rohm Semiconductor has a series of linear voltage regulators called the 78 series. The question has been asked, what is the difference between CP and FP in the manufacturer part numbers? We can provide the answer.
For this series specifically:
CP = through hole package (TO-220CP-3)
and
FP = surface mount package (TO-252-3)
This image was taken from the manufacturer datasheet - BA78MCP series,BA78MFP series,BA78CP series,BA78FP series : Power Management ICs (rohm.com)
If there are any questions on this, please reply to this post and we will be happy to address them.
Please review the datasheets to ensure the alternative will work for your application.