(PHP 5 >= 5.1.2, PHP 7, PECL xmlwriter >= 0.1.0)
XMLWriter::setIndentString -- xmlwriter_set_indent_string — Set string used for indenting
Stil obiect-orientat
$indentation
) : boolStil procedural
$writer
, string $indentation
) : boolSets the string which will be used to indent each element/attribute of the resulting xml.
xmlwriter
Numai pentru apelurile procedurale. Resursa XMLWriter care este modificată. Această resursă se obține în urma apelării xmlwriter_open_uri() sau xmlwriter_open_memory ().
indentationThe indentation string.
Întoarce valoarea true în cazul
succesului sau false în cazul eșecului.
| Versiune | Descriere |
|---|---|
| 8.0.0 |
writer expects an XMLWriter
instance now; previously, a resource was expected.
|
Notă:
The indent is reset when an xmlwriter is opened.