Advertisement
Guest User

Untitled

a guest
Jun 28th, 2017
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.44 KB | None | 0 0
  1. <?php
  2.  
  3. $cctprofile = ("test.xml"); // Change this to your profile name .xml
  4. $xml = simplexml_load_file($cctprofile);
  5.  
  6.  
  7. // Get each puzzle customization
  8. foreach($xml->puzzle as $puzzle){
  9.     foreach($puzzle->attributes() as $customization){
  10.         echo "$customization <br />";
  11.     }
  12. }
  13.  
  14. print_r($xml->xpath('/puzzle[@customization=$customization]'));
  15. /*
  16. foreach($xml->xpath('/puzzle[@customization=$customization]') as $puzzle2){
  17.  
  18.         print_r($puzzle2);
  19.    
  20. }
  21. */
  22. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement