Results of 1 - 1 of about 1 for subelem (0.001 sec.)
- XMLWriter::writeAttribute — 属性全体を書き込む | PHP 8.3 9414
- XMLWriter::writeAttribute xmlwriter_write_attribute (PHP 5 >= 5.1.2, PHP 7, PHP 8, PECL xmlwriter >= 0.1.0) XMLWriter::writeAttribute -- xmlwriter_write_attribute — 属性全体を書き込む 説明 オブジェクト指向型 public function XMLWriter::write
... ml -> openMemory (); $xml -> startElement ( 'element' ); $xml -> writeAttribute ( 'attr1' , '0' ); $xml -> writeElement ( 'subelem' , '0' ); var_dump ( $xml -> writeAttribute ( 'attr2' , '0' )); $xml -> endElement (); echo $xml -> flush (); ?> 上の例の出 ... 力は以下となります。 bool(false) <element attr1="0"><subelem>0</subelem></element> 参考 XMLWriter::writeAttributeNs() - 名前空間つき属性全体を書き込む XMLWriter::startAttribute() - 属 ...
-
https://man.mtool.work/php/8.3/xmlwriter.writeattribute.html
PREV
1
NEXT