PHP Velho Oeste 2024

XMLWriter::setIndentString

xmlwriter_set_indent_string

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

XMLWriter::setIndentString -- xmlwriter_set_indent_stringSet string used for indenting

Descrição

Estilo orientado à objeto

XMLWriter::setIndentString ( string $indentString ) : bool

Estilo procedural

xmlwriter_set_indent_string ( resource $xmlwriter , string $indentString ) : bool

Sets the string which will be used to indent each element/attribute of the resulting xml.

Parâmetros

xmlwriter

Apenas para chamadas de procedimentos. O recurso XMLWriter resource que esta sendo modificado. Este recurso vem de uma chamada a xmlwriter_open_uri() ou xmlwriter_open_memory().

indentString

The indentation string.

Valor Retornado

Retorna TRUE em caso de sucesso ou FALSE em caso de falha.

Notas

Nota:

The indent is reset when an xmlwriter is opened.

Nota: Este é um construtor de linguagem e não uma função, por isso não é possível chamá-lo através de funções variáveis

Aviso

Esta função (ainda) não é compatível com dados binários!

Nota: Nota importante sobre register_globals:

Desde o PHP 4.2.0, o valor padrão para a diretiva register_globals é off e foi completamente removida a partir do PHP 6.0.0. A comunidade do PHP desencoraja desenvolvedores a confiar nesta diretiva, e encoraja o uso de outros meios, como em superglobals.

Veja Também

add a note add a note

User Contributed Notes

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