Statement on glibc/iconv Vulnerability

DOMElement::remove

(PHP 8)

DOMElement::removeRemoves the element

Açıklama

public DOMElement::remove(): void

Removes the element.

Bağımsız Değişkenler

Bu işlevin bağımsız değişkeni yoktur.

Dönen Değerler

Hiçbir değer dönmez.

Örnekler

Örnek 1 DOMElement::remove() example

Removes the element.

<?php
$doc
= new DOMDocument;
$doc->loadXML("<container><hello/><world/></container>");
$hello = $doc->documentElement->firstChild;

$hello->remove();

echo
$doc->saveXML();
?>

Yukarıdaki örneğin çıktısı:

<?xml version="1.0"?>
<container><world/></container>

Ayrıca Bakınız

add a note

User Contributed Notes

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