daily pastebin goal
21%
SHARE
TWEET

Untitled

a guest Jan 22nd, 2018 72 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2.         $arquivo_xml = "musicas.xml";
  3.           if(file_exists($arquivo_xml)){
  4.             $musicas = simplexml_load_file($arquivo_xml);
  5.             foreach($musicas as $musica){
  6.               echo "<p>Música: {$musica -> titulo}<br />";
  7.               echo "Autor: {$musica -> autor}</p>";
  8.             }
  9.           }else{
  10.             die("Ocorreu um erro ao abrir o seu arquivo, verifique o diretório!");
  11.           }
  12. ?>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top