how to set id of an element using PHP dom?

mikegoldenrod

New Member
I want to set id of an element. I'm using php dom. I could not understand how following will work.\[code\]DOMElement::setIdAttribute ( string $name , bool $isId )\[/code\]The only description I found for this in manual is -Declares the attribute name to be of type ID. How can I do this ?
 
Back
Top