How to perform some exporting php to excel?

Hello fellows,
How to perform some exporting php to excel? Is it possible for me to record all my php codes in an excel application? I really need some assistance to export those codes and gather them all in my excel sheet. This is to make sure that I will get some back up record for the codes.
Regards,
Marie Philips.
