PHP 8.1.28 Released!

XMLWriter::setIndentString

xmlwriter_set_indent_string

(PHP 5 >= 5.1.2, PHP 7, PHP 8, PECL xmlwriter >= 0.1.0)

XMLWriter::setIndentString -- xmlwriter_set_indent_stringSet string used for indenting

Descripción

Estilo orientado a objetos

public XMLWriter::setIndentString(string $indentation): bool

Estilo por procedimientos

xmlwriter_set_indent_string(XMLWriter $writer, string $indentation): bool

Establece el string el cual va a ser usado para sangrar cada elemento/atributo del resultado xml.

Parámetros

xmlwriter

Sólo para llamadas por procedimientos. El resource XMLWriter que está siendo modificado. Este recurso proviene de una llamada a xmlwriter_open_uri() o xmlwriter_open_memory().

indentation

El string de sangría.

Valores devueltos

Devuelve true en caso de éxito o false en caso de error.

Historial de cambios

Versión Descripción
8.0.0 writer expects an XMLWriter instance now; previously, a resource was expected.

Notas

Nota:

The indent is reset when an xmlwriter is opened.

Ver también

add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top