Statement on glibc/iconv Vulnerability

DOMCharacterData::remove

(PHP 8)

DOMCharacterData::removeRemoves the character data

Açıklama

public DOMCharacterData::remove(): void

Removes the character data.

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 DOMCharacterData::remove() example

Removes the character data.

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

$cdata->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