PHP addAttribute()函数讲解 PHPaddAttribute()函数实例给根元素和body元素添加一个属性:<?php$note=<<<XML<note> addattribute()函数