LLeoun Posted February 4, 2011 Share Posted February 4, 2011 Hi guys, Sorry if this is too dumb, I'm a student yet .. I have: $newEmail = preg_replace($patterns, $replacements, $email); How can I save $newEmail contents into an html file? Thanks a lot!! Quote Link to comment https://forums.phpfreaks.com/topic/226673-saving-into-an-html-file/ Share on other sites More sharing options...
Roman Fedorov Posted February 4, 2011 Share Posted February 4, 2011 Hi, you can do it as writing to any text file: http://php.net/manual/en/function.fwrite.php Quote Link to comment https://forums.phpfreaks.com/topic/226673-saving-into-an-html-file/#findComment-1169801 Share on other sites More sharing options...
LLeoun Posted February 4, 2011 Author Share Posted February 4, 2011 thanks a lot, worked! Quote Link to comment https://forums.phpfreaks.com/topic/226673-saving-into-an-html-file/#findComment-1169809 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.