<?php include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc'; $TOC = array(); $TOC_DEPRECATED = array(); $PARENTS = array(); include_once dirname(__FILE__) ."/toc/class.xmlwriter.inc"; $setup = array ( 'home' => array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'ja', ), 'this' => array ( 0 => 'xmlwriter.text.php', 1 => 'XMLWriter::text', ), 'up' => array ( 0 => 'class.xmlwriter.php', 1 => 'XMLWriter', ), 'prev' => array ( 0 => 'xmlwriter.startpi.php', 1 => 'XMLWriter::startPi', ), 'next' => array ( 0 => 'xmlwriter.tomemory.php', 1 => 'XMLWriter::toMemory', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'ja', 'path' => 'reference/xmlwriter/xmlwriter/text.xml', ), 'history' => array ( ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); contributors($setup); ?> <div id="xmlwriter.text" class="refentry"> <div class="refnamediv"> <h1 class="refname">XMLWriter::text</h1> <h1 class="refname">xmlwriter_text</h1> <p class="verinfo">(PHP 5 >= 5.1.2, PHP 7, PHP 8, PECL xmlwriter >= 0.1.0)</p><p class="refpurpose"><span class="refname">XMLWriter::text</span> -- <span class="refname">xmlwriter_text</span> — <span class="dc-title">テã‚ストを書ã込む</span></p> </div> <div class="refsect1 description" id="refsect1-xmlwriter.text-description"> <h3 class="title">説明</h3> <p class="para">オブジェクト指å‘åž‹</p> <div class="methodsynopsis dc-description"> <span class="modifier">public</span> <span class="methodname"><strong>XMLWriter::text</strong></span>(<span class="methodparam"><span class="type"><a href="language.types.string.php" class="type string">string</a></span> <code class="parameter">$content</code></span>): <span class="type"><a href="language.types.boolean.php" class="type bool">bool</a></span></div> <p class="para rdfs-comment">手続ãåž‹</p> <div class="methodsynopsis dc-description"><span class="methodname"><strong>xmlwriter_text</strong></span>(<span class="methodparam"><span class="type"><a href="class.xmlwriter.php" class="type XMLWriter">XMLWriter</a></span> <code class="parameter">$writer</code></span>, <span class="methodparam"><span class="type"><a href="language.types.string.php" class="type string">string</a></span> <code class="parameter">$content</code></span>): <span class="type"><a href="language.types.boolean.php" class="type bool">bool</a></span></div> <p class="para rdfs-comment"> テã‚ストを書ãè¾¼ã¿ã¾ã™ã€‚ </p> </div> <div class="refsect1 parameters" id="refsect1-xmlwriter.text-parameters"> <h3 class="title">パラメータ</h3> <p class="para"> <dl> <dt> <code class="parameter">writer</code> </dt> <dd> <p class="para"> 手続ãåž‹ã®ã‚³ãƒ¼ãƒ«ã§ã®ã¿ä½¿ç”¨ã—ã¾ã™ã€‚ 変更ã•れる <span class="classname"><a href="class.xmlwriter.php" class="classname">XMLWriter</a></span> ã®ã‚¤ãƒ³ã‚¹ã‚¿ãƒ³ã‚¹ã§ã™ã€‚ ã“ã®ã‚¤ãƒ³ã‚¹ã‚¿ãƒ³ã‚¹ã¯ã€<span class="function"><a href="xmlwriter.openuri.php" class="function">xmlwriter_open_uri()</a></span> ã‚ã‚‹ã„㯠<span class="function"><a href="xmlwriter.openmemory.php" class="function">xmlwriter_open_memory()</a></span> を呼ã³å‡ºã™ã“ã¨ã§å–å¾—ã—ãŸã‚‚ã®ã§ã™ã€‚ </p> </dd> <dt><code class="parameter">content</code></dt> <dd> <p class="para"> テã‚ストã®å†…容。 <code class="literal"><</code>, <code class="literal">></code>, <code class="literal">&</code>, <code class="literal">"</code> ã¯ã€å®Ÿä½“å‚ç…§ã¨ã—ã¦æ›¸ãè¾¼ã¿ã¾ã™ã€‚ (ã¤ã¾ã‚Šã€ <code class="literal">&lt;</code>, <code class="literal">&gt;</code>, <code class="literal">&amp;</code>, <code class="literal">&quot;</code>, ã‚’ãれãžã‚Œæ›¸ãè¾¼ã¿ã¾ã™)。 ãã‚Œä»¥å¤–ã®æ–‡å—ã¯ã€<code class="literal">'</code> ã‚’å«ã‚ã¦ãã®ã¾ã¾æ›¸ãè¾¼ã¿ã¾ã™ã€‚ XML ã§ç‰¹åˆ¥ãªæ–‡å—ã‚„ã€å®Ÿä½“å‚ç…§ã‚’ãã®ã¾ã¾æ›¸ã込むã«ã¯ã€ <span class="function"><a href="xmlwriter.writeraw.php" class="function">xmlwriter_write_raw()</a></span> を使ã‚ãªã‘れã°ãªã‚Šã¾ã›ã‚“。 </p> </dd> </dl> </p> </div> <div class="refsect1 returnvalues" id="refsect1-xmlwriter.text-returnvalues"> <h3 class="title">戻り値</h3> <p class="para"> æˆåŠŸã—ãŸå ´åˆã« <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong> ã‚’ã€å¤±æ•—ã—ãŸå ´åˆã« <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong> ã‚’è¿”ã—ã¾ã™ã€‚ </p> </div> <div class="refsect1 changelog" id="refsect1-xmlwriter.text-changelog"> <h3 class="title">変更履æ´</h3> <table class="doctable informaltable"> <thead> <tr> <th>ãƒãƒ¼ã‚¸ãƒ§ãƒ³</th> <th>説明</th> </tr> </thead> <tbody class="tbody"> <tr> <td>8.0.0</td> <td> 引数 <code class="parameter">writer</code> ã¯ã€<span class="classname"><a href="class.xmlwriter.php" class="classname">XMLWriter</a></span> ã®ã‚¤ãƒ³ã‚¹ã‚¿ãƒ³ã‚¹ã‚’期待ã™ã‚‹ã‚ˆã†ã«ãªã‚Šã¾ã—ãŸã€‚ ã“れよりå‰ã®ãƒãƒ¼ã‚¸ãƒ§ãƒ³ã§ã¯ã€ãƒªã‚½ãƒ¼ã‚¹ãŒæœŸå¾…ã•れã¦ã„ã¾ã—ãŸã€‚ </td> </tr> </tbody> </table> </div> </div><?php manual_footer($setup); ?>