Statement on glibc/iconv Vulnerability

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_stringDéfinit la chaîne à utiliser pour l'indentation

Description

Style orienté objet

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

Style procédural

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

Définit la chaîne qui sera utilisée pour indenter chaque élément/attribut d'un document XML.

Liste de paramètres

writer

Uniquement pour les appels procéduraux. L'instance XMLWriter qui est modifiée. Cet objet provient d'un appel à xmlwriter_open_uri() ou xmlwriter_open_memory().

indentation

La chaîne pour l'indentation.

Valeurs de retour

Cette fonction retourne true en cas de succès ou false si une erreur survient.

Historique

Version Description
8.0.0 writer attend une instance de XMLWriter désormais; auparavant, une resource était attendu.

Notes

Note:

L'indentation est réinitialisé quand un XMLWriter est ouvert.

Voir aussi

add a note

User Contributed Notes

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