PHP 8.5.0 Alpha 2 available for testing

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_stringDefine la string a utilizar para la indentación

Descripción

Estilo orientado a objetos

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

Estilo procedimental

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

Define la string que se utilizará para indentar cada elemento/atributo de un documento XML.

Parámetros

writer

Únicamente para llamadas procedimentales. La instancia XMLWriter que es modificada. Este objeto proviene de una llamada a xmlwriter_open_uri() o xmlwriter_open_memory().

indentation

La string para la indentación.

Valores devueltos

Esta función retorna true en caso de éxito o false si ocurre un error.

Historial de cambios

Versión Descripción
8.0.0 writer ahora espera una instancia de XMLWriter anteriormente, se esperaba una resource.

Notas

Nota:

La indentación se reinicia cuando se abre un XMLWriter.

Ver también

add a note

User Contributed Notes

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