Created
January 18, 2021 09:40
-
-
Save saasindustries/d4d3a00e6f28ebf3c92d78e2fc101aa1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$xmlFile = ‘MovieReview.xml’; | |
$handle = fopen($xmlFile, ‘w’) or die('Unable to open the file: '.$xmlFile); | |
if(fwrite($handle, $xml_content)) { | |
echo 'Successfully written to an XML file.'; | |
} | |
else{ | |
echo 'Error in file generating'; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment