php dom get all attributes of a node

前端 未结 2 795
长发绾君心
长发绾君心 2020-12-14 06:19

is there any easy way of getting all attributes of a node without checking if it has that attribute? short, here\'s an example of what i\'m trying to do: i have this short d

2条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-14 06:47

    Use this code, it will give you the specified attributes.

     
    
    
    
    
    
    

    This is for testing php dom get all attributes of a node

    Now when you click the conent of the p tag . It will show you align attirbute values.

提交回复
热议问题