daily pastebin goal
15%
SHARE
TWEET

PHP

rafaelclares Aug 1st, 2012 103 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. $xml = simplexml_load_file('foo.xml');
  3.  
  4. foreach($xml->parametro as $parametro)
  5. {
  6.         $nome = $parametro->nome;
  7.         $http = $parametro->http;
  8.         $www = $parametro->www;
  9.         $dominio = $parametro->dominio;
  10.         $email = $parametro->email;
  11.         $telefone = $parametro->telefone;
  12.         $endereco = $parametro->endereco;
  13. }
  14.        
  15. echo "debug";
  16. echo $nome;
  17. echo $http;
  18. echo $www;
  19. echo $dominio;
  20. echo $email;
  21. echo $telefone;
  22. echo $endereco;
  23.  
  24. ?>
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