1
0
mirror of https://github.com/php/doc-tr.git synced 2026-03-25 15:52:11 +01:00
Files
archived-doc-tr/reference/array/functions/array-diff.xml
Nilgün Belma Bugüner 24e8e0bc42 add new translations
git-svn-id: https://svn.php.net/repository/phpdoc/tr/trunk@278699 c90b9560-bf6c-de11-be94-00142212c4b1
2009-04-14 14:57:38 +00:00

177 lines
4.2 KiB
XML
Raw 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"?>
<!-- $Revision: 1.1 $ -->
<!-- EN-Revision: 1.17 Maintainer: nilgun Status: ready -->
<refentry xml:id="function.array-diff" xmlns="http://docbook.org/ns/docbook">
<refnamediv>
<refname>array_diff</refname>
<refpurpose>Dizilerin farkını hesaplar</refpurpose>
</refnamediv>
<refsect1 role="description">
&reftitle.description;
<methodsynopsis>
<type>array</type><methodname>array_diff</methodname>
<methodparam><type>array</type><parameter>dizi1</parameter></methodparam>
<methodparam><type>array</type><parameter>dizi2</parameter></methodparam>
<methodparam choice="opt"><type>array</type><parameter> ...</parameter></methodparam>
</methodsynopsis>
<para>
<parameter>dizi1</parameter> ile <parameter>dizi2</parameter>'yi
karşılaştırır ve farkı döndürür.
</para>
</refsect1>
<refsect1 role="parameters">
&reftitle.parameters;
<para>
<variablelist>
<varlistentry>
<term><parameter>dizi1</parameter></term>
<listitem>
<para>
Karşılaştırılacak dizi.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term><parameter>dizi2</parameter></term>
<listitem>
<para>
Karşılaştırılacak diğer dizi.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term><parameter>...</parameter></term>
<listitem>
<para>
Karşılaştırılacak diğer diziler.
</para>
</listitem>
</varlistentry>
</variablelist>
</para>
</refsect1>
<refsect1 role="returnvalues">
&reftitle.returnvalues;
<para>
Diğer tüm değiştirgelerde mevcut olmayan <parameter>dizi1</parameter>
girdilerinden oluşan bir dizi döner.
</para>
</refsect1>
<refsect1 role="changelog">
&reftitle.changelog;
<para>
<informaltable>
<tgroup cols="2">
<thead>
<row>
<entry>&Version;</entry>
<entry>&Description;</entry>
</row>
</thead>
<tbody>
<row>
<entry>4.0.4</entry>
<entry>
<warning>
<simpara>
PHP 4.0.4'te bu işlev hatalıydı!
<!-- TODO: when exactly was this broken?... -->
</simpara>
</warning>
</entry>
</row>
</tbody>
</tgroup>
</informaltable>
</para>
</refsect1>
<refsect1 role="examples">
&reftitle.examples;
<para>
<example>
<title>- <function>array_diff</function> örneği</title>
<programlisting role="php">
<![CDATA[
<?php
$dizi1 = array("a" => "green", "red", "blue", "red");
$dizi2 = array("b" => "green", "yellow", "red");
$result = array_diff($dizi1, $dizi2);
print_r($result);
?>
]]>
</programlisting>
<para>
$dizi1 içinde aynı değerde birden fazla eleman varsa hepsi tek bir girdi
kabul edilir ve çıktı şöyle olur:
</para>
<screen>
<![CDATA[
Array
(
[1] => blue
)
]]>
</screen>
</example>
</para>
</refsect1>
<refsect1 role="notes">
&reftitle.notes;
<note>
<para>
İki elemanın eşit olması için sadece ve sadece
<literal>(string) $elem1 === (string) $elem2</literal> olmalıdır. Başka
bir deyişle, dizgesel gösterimler aynı olmalıdır.
<!-- TODO: example of it... -->
</para>
</note>
<note>
<para>
Bu işlev n boyutlu bir dizinin sadece bir boyutunu karşılaştırır. Daha
derinliğine karşılaştırmalar yapmak için
<literal>array_diff($dizi1[0], $dizi2[0]);</literal> sözdizimini
kullanabilirsiniz.
</para>
</note>
</refsect1>
<refsect1 role="seealso">
&reftitle.seealso;
<para>
<simplelist>
<member><function>array_diff_assoc</function></member>
<member><function>array_intersect</function></member>
<member><function>array_intersect_assoc</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:"../../../../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
-->