How to generate XML file dynamically using PHP?

前端 未结 7 2267
失恋的感觉
失恋的感觉 2020-11-22 00:32

I have to generate a xml file dynamically at runtime. Please help me in generating the below XML file dynamically using PHP.



        
7条回答
  •  粉色の甜心
    2020-11-22 00:42

    An easily broken way to do this is :

    ";
    
    echo '';
    
    // echo some dynamically generated content here
    /*
    
        song_path
        track_number - track_title
    
    */
    
    echo '';
    
    ?>
    

    save it as .php

提交回复
热议问题