PHP.mk документација

DOMDocument::createTextNode

Почист и полокален преглед на PHP референцата, со задржана структура од PHP.net и подобра читливост за примери, секции и белешки.

domdocument.createtextnode.php PHP.net прокси Преводот се освежува
Оригинал на PHP.net
Патека domdocument.createtextnode.php Локална патека за оваа страница.
Извор php.net/manual/en Оригиналниот HTML се реупотребува и локално се стилизира.
Режим Прокси + превод во позадина Кодовите, табелите и белешките остануваат читливи во истиот тек.
DOMDocument::createTextNode

Референца за `domdocument.createtextnode.php` со подобрена типографија и навигација.

domdocument.createtextnode.php

DOMDocument::createTextNode

класата mysqli_driver

DOMDocument::createTextNodeCreate new text node

= NULL

public DOMDocument::createTextNode(string $data): DOMText

Create new text node DOMTextThis function creates a new instance of class . This node will not show up in the document unless it is inserted with (e.g.).

Параметри

data

DOMNode::appendChild()

Вратени вредности

Новиот DOMText.

Дневник на промени

Верзија = NULL
8.1.0 The content of the text. DomException In case of an error, a false .

Види Исто така

Белешки од корисници 2 забелешки

drewish на katherinehouse dot com
пред 11 години
The docs don't mention it but this method performs escaping on the value. If you don't want that use createElement() instead.
DOMDocument::createProcessingInstruction()
пред 16 години
A quick note to anyone who is using character entities (e.g. ©) in this, and finding them automatically escaped. The correct thing to do here is to use the createEntityReference method (e.g. createEntityReference("copy");), and then appendChild this entity between text nodes.

Example:

<?php
$copyright_text_1 = $this->document->createTextNode("Copyright ");
$copyright_text_2 = $this->document->createTextNode(" Alex Kaye 2009");
$copyright_symbol = $this->document->createEntityReference("copy");
$copyright->appendChild($copyright_text_1);
$copyright->appendChild($copyright_symbol);
$copyright->appendChild($copyright_text_2);
?>
На оваа страница

Автоматски outline од активната документација.

Насловите ќе се појават тука по вчитување.

Попрегледно читање

Примерите, changelog табелите и user notes се визуелно издвоени за да не се губат во долгата содржина.

Брз совет Користи го outline-от Скокни директно на главните секции од активната страница.
Извор Оригиналниот линк останува достапен Кога ти треба целосен upstream context, отвори го PHP.net во нов tab.