How to save a PHP file?

hi guys, i know this is so simple to others but not for me.

I was reading a PHP tutorial about a mailer.php and i’d like to know where do I save this file? Will I use notepad or wordpad to paste the codes in that tutorial?

thanks for the info in advance.

cheers guys…