Created
August 2, 2016 15:28
-
-
Save alefcastelo/547e4aec365dd6595181b58fa07745af 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
<?php | |
header("Content-type: text/xml"); | |
// Cabeçalho XML | |
print "<?xml version=\"1.0\" encoding=\"UTF-8\"?>"; | |
// Abrindo tag que contém a lista de usuários | |
print "<lista-usuarios>"; | |
// repare que está sendo incluindo um arquivo do tipo XML com código PHP dentro. | |
require_once 'syntax-example-8.xml'; | |
// Fechando tag que contém a lista de usuários | |
print "</lista-usuarios>"; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment