1
0
mirror of https://github.com/php/doc-tr.git synced 2026-04-23 23:18:05 +02:00
Files
2022-11-17 16:44:37 +03:00

150 lines
3.4 KiB
XML
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<?xml version="1.0" encoding="utf-8"?>
<!-- EN-Revision: e095023e408c8cb6378ae16bb6870343a3946919 Maintainer: nilgun Status: ready -->
<refentry xmlns="http://docbook.org/ns/docbook" xml:id="function.nl2br">
<refnamediv>
<refname>nl2br</refname>
<refpurpose>Dizgedeki tüm satırsonlarının yerine HTML satır katlayıcıları
yerleştirilir</refpurpose>
</refnamediv>
<refsect1 role="description">
&reftitle.description;
<methodsynopsis>
<type>string</type><methodname>nl2br</methodname>
<methodparam><type>string</type><parameter>dizge</parameter></methodparam>
<methodparam choice="opt"><type>bool</type><parameter>xhtml</parameter><initializer>&true;</initializer></methodparam>
</methodsynopsis>
<para>
<parameter>dizge</parameter> içindeki bütün satırsonu karakterlerinin
(<literal>\r\n</literal>, <literal>\n\r</literal>, <literal>\n</literal> ve
<literal>\r</literal>) yerlerine <code>&lt;br /&gt;</code> veya
<code>&lt;br&gt;</code> yerleştirilerek elde edilen dizgeyi döndürür.
</para>
</refsect1>
<refsect1 role="parameters">
&reftitle.parameters;
<para>
<variablelist>
<varlistentry>
<term><parameter>dizge</parameter></term>
<listitem>
<para>
Girdi dizgesi.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term><parameter>xhtml</parameter></term>
<listitem>
<para>
XHTML uyumlu etiket kullanılıp kullanılmayacağını belirler.
</para>
</listitem>
</varlistentry>
</variablelist>
</para>
</refsect1>
<refsect1 role="returnvalues">
&reftitle.returnvalues;
<para>
Elde edilen dizge.
</para>
</refsect1>
<refsect1 role="examples">
&reftitle.examples;
<para>
<example>
<title>- <function>nl2br</function> örneği</title>
<programlisting role="php">
<![CDATA[
<?php
echo nl2br("foo isn't\n bar");
?>
]]>
</programlisting>
&example.outputs;
<screen>
<![CDATA[
foo isn't<br />
bar
]]>
</screen>
</example>
<example>
<title>- <parameter>xhtml</parameter> bağımsız değişkeni kullanımı</title>
<programlisting role="php">
<![CDATA[
<?php
echo nl2br("Hoş Geldiniz\r\nBu bir HTML belgedir", false);
?>
]]>
</programlisting>
&example.outputs;
<screen>
<![CDATA[
Hoş Geldiniz<br>
Bu bir HTML belgedir
]]>
</screen>
</example>
<example>
<title>- Çeşitli satırsonu ayraçları</title>
<programlisting role="php">
<![CDATA[
<?php
$string = "This\r\nis\n\ra\nstring\r";
echo nl2br($string);
?>
]]>
</programlisting>
&example.outputs;
<screen>
<![CDATA[
This<br />
is<br />
a<br />
string<br />
]]>
</screen>
</example>
</para>
</refsect1>
<refsect1 role="seealso">
&reftitle.seealso;
<para>
<simplelist>
<member><function>htmlspecialchars</function></member>
<member><function>htmlentities</function></member>
<member><function>wordwrap</function></member>
<member><function>str_replace</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
-->