PHP - split a string of HTML attributes into an indexed array

后端 未结 6 860
后悔当初
后悔当初 2020-12-11 16:20

I\'ve got a string with HTML attributes:

$attribs = \' id= \"header \" class = \"foo   bar\" style =\"background-color:#fff; color: red; \"\';
6条回答
提交回复
热议问题