Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $cctprofile = ("test.xml"); // Change this to your profile name .xml
- $xml = simplexml_load_file($cctprofile);
- // Get each puzzle customization
- foreach($xml->puzzle as $puzzle){
- foreach($puzzle->attributes() as $customization){
- echo "$customization <br />";
- }
- }
- print_r($xml->xpath('/puzzle[@customization=$customization]'));
- /*
- foreach($xml->xpath('/puzzle[@customization=$customization]') as $puzzle2){
- print_r($puzzle2);
- }
- */
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement