mirror of
https://github.com/php/doc-tr.git
synced 2026-03-24 07:12:18 +01:00
175 lines
4.8 KiB
XML
175 lines
4.8 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
||
<!-- $Revision$ -->
|
||
<!-- EN-Revision: a3db55f0df6a17d473f65ce207ef3f778011cdfe Maintainer: nilgun Status: ready -->
|
||
<refentry xml:id="function.mb-encode-numericentity" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||
<refnamediv>
|
||
<refname>mb_encode_numericentity</refname>
|
||
<refpurpose>Karakter kodlarını HTML sayısal karakter gösterimlerine
|
||
dönüştürür</refpurpose>
|
||
</refnamediv>
|
||
|
||
<refsect1 role="description">
|
||
&reftitle.description;
|
||
<methodsynopsis>
|
||
<type>string</type><methodname>mb_encode_numericentity</methodname>
|
||
<methodparam><type>string</type><parameter>dizge</parameter></methodparam>
|
||
<methodparam><type>array</type><parameter>bölge</parameter></methodparam>
|
||
<methodparam choice="opt"><type class="union"><type>string</type><type>null</type></type><parameter>kodlama</parameter><initializer>&null;</initializer></methodparam>
|
||
<methodparam choice="opt"><type>bool</type><parameter>onaltılık</parameter><initializer>&false;</initializer></methodparam>
|
||
</methodsynopsis>
|
||
<para>
|
||
Belirtilen <parameter>dizge</parameter> dizgesindeki karakter kodlarını
|
||
HTML sayısal karakter gösterimlerine dönüştürür.
|
||
</para>
|
||
</refsect1>
|
||
|
||
<refsect1 role="parameters">
|
||
&reftitle.parameters;
|
||
<para>
|
||
<variablelist>
|
||
<varlistentry>
|
||
<term><parameter>dizge</parameter></term>
|
||
<listitem>
|
||
<para>
|
||
HTML için kodlanacak dizge.
|
||
</para>
|
||
</listitem>
|
||
</varlistentry>
|
||
<varlistentry>
|
||
<term><parameter>bölge</parameter></term>
|
||
<listitem>
|
||
<para>
|
||
Dönüşüm yapılacak kod bölgesini içeren dizi.
|
||
</para>
|
||
</listitem>
|
||
</varlistentry>
|
||
<varlistentry>
|
||
<term><parameter>kodlama</parameter></term>
|
||
<listitem>
|
||
&mbstring.encoding.parameter;
|
||
</listitem>
|
||
</varlistentry>
|
||
<varlistentry>
|
||
<term><parameter>onaltılık</parameter></term>
|
||
<listitem>
|
||
<para>
|
||
&true; ise sayısal gösterim onaltılık olur, değilse onluk olur.
|
||
</para>
|
||
</listitem>
|
||
</varlistentry>
|
||
</variablelist>
|
||
</para>
|
||
</refsect1>
|
||
|
||
<refsect1 role="returnvalues">
|
||
&reftitle.returnvalues;
|
||
<para>
|
||
Dönüştürülen dizge.
|
||
</para>
|
||
</refsect1>
|
||
|
||
<refsect1 role="changelog">
|
||
&reftitle.changelog;
|
||
<informaltable>
|
||
<tgroup cols="2">
|
||
<thead>
|
||
<row>
|
||
<entry>&Version;</entry>
|
||
<entry>&Description;</entry>
|
||
</row>
|
||
</thead>
|
||
<tbody>
|
||
&mbstring.changelog.encoding-nullable;
|
||
</tbody>
|
||
</tgroup>
|
||
</informaltable>
|
||
</refsect1>
|
||
|
||
<refsect1 role="examples">
|
||
&reftitle.examples;
|
||
<para>
|
||
<example>
|
||
<title>- <parameter>bölge</parameter> örneği</title>
|
||
<programlisting role="php">
|
||
<![CDATA[
|
||
<?php
|
||
$bölge = array (
|
||
int kodlama_başı1, int kodlama_sonu1, int göreli_konum1, int maske1,
|
||
int kodlama_başı2, int kodlama_sonu2, int göreli_konum2, int maske2,
|
||
........
|
||
int kodlama_başıN, int kodlama_sonuN, int göreli_konumN, int maskeN );
|
||
// kodlama_başıN ve int kodlama_sonuN için Evrenkodlu değer belirt,
|
||
// değere göreli_konumN ekleyip sonucu maskeN ile bitsel VE'le ve
|
||
// değeri sayısal gösterim dizgesine dönüştür.
|
||
?>
|
||
]]>
|
||
</programlisting>
|
||
</example>
|
||
</para>
|
||
</refsect1>
|
||
|
||
<refsect1 role="examples">
|
||
&reftitle.examples;
|
||
<para>
|
||
<example>
|
||
<title>- <function>mb_encode_numericentity</function> örneği</title>
|
||
<programlisting role="php">
|
||
<![CDATA[
|
||
<?php
|
||
/* ISO-8859-1'in sol tarafını HTML sayısal karakter gösterimine dönüştürelim */
|
||
$bölge = array(0x80, 0xff, 0, 0xff);
|
||
$dizge = mb_encode_numericentity($dizge, $bölge, "ISO-8859-1");
|
||
|
||
/* Kullanıcı tanımlı SJIS-win'i 95-104 aralığında sayısal gösterime
|
||
dönüştürelim */
|
||
$bölge = array(
|
||
0xe000, 0xe03e, 0x1040, 0xffff,
|
||
0xe03f, 0xe0bb, 0x1041, 0xffff,
|
||
0xe0bc, 0xe0fa, 0x1084, 0xffff,
|
||
0xe0fb, 0xe177, 0x1085, 0xffff,
|
||
0xe178, 0xe1b6, 0x10c8, 0xffff,
|
||
0xe1b7, 0xe233, 0x10c9, 0xffff,
|
||
0xe234, 0xe272, 0x110c, 0xffff,
|
||
0xe273, 0xe2ef, 0x110d, 0xffff,
|
||
0xe2f0, 0xe32e, 0x1150, 0xffff,
|
||
0xe32f, 0xe3ab, 0x1151, 0xffff );
|
||
$dizge = mb_encode_numericentity($dizge, $bölge, "sjis-win");
|
||
?>
|
||
]]>
|
||
</programlisting>
|
||
</example>
|
||
</para>
|
||
</refsect1>
|
||
|
||
<refsect1 role="seealso">
|
||
&reftitle.seealso;
|
||
<para>
|
||
<simplelist>
|
||
<member><function>mb_decode_numericentity</function></member>
|
||
</simplelist>
|
||
</para>
|
||
</refsect1>
|
||
|
||
</refentry>
|
||
|
||
<!-- Keep this comment at the end of the file
|
||
Local variables:
|
||
mode: sgml
|
||
sgml-omittag:t
|
||
sgml-shorttag:t
|
||
sgml-minimize-attributes:nil
|
||
sgml-always-quote-attributes:t
|
||
sgml-indent-step:1
|
||
sgml-indent-data:t
|
||
indent-tabs-mode:nil
|
||
sgml-parent-document:nil
|
||
sgml-default-dtd-file:"~/.phpdoc/manual.ced"
|
||
sgml-exposed-tags:nil
|
||
sgml-local-catalogs:nil
|
||
sgml-local-ecat-files:nil
|
||
End:
|
||
vim600: syn=xml fen fdm=syntax fdl=2 si
|
||
vim: et tw=78 syn=sgml
|
||
vi: ts=1 sw=1
|
||
-->
|