PHP | SimpleXMLElement addAttribute() Function
Pre-requisite: Read XML Basics The SimpleXMLElement::addAttribute() function is an inbuilt function in PHP which add an attribute in a SimpleXML object. Syntax: void SimpleXMLElement::addAttribute($name, $value, $namespace) Parameter: This function accepts three parameters as mentioned above and des