1
0
mirror of https://github.com/php/doc-ro.git synced 2026-03-24 15:32:07 +01:00
Files
archived-doc-ro/reference/array/functions/array-diff.xml
Hannes Magnusson 9207936024 Upgrade to DocBook5:
- All id attributes are now xml:id
 - Add docbook namespace to all root elements
 - Replace <ulink /> with <link xlink:href />
 - Minor markup fixes here and there
 - Bump EN-Revision where appropriate


git-svn-id: https://svn.php.net/repository/phpdoc/ro/trunk@238336 c90b9560-bf6c-de11-be94-00142212c4b1
2007-06-23 13:31:02 +00:00

80 lines
2.5 KiB
XML

<?xml version="1.0" encoding="iso-8859-2"?>
<!-- $Revision: 1.4 $ -->
<!-- splitted from ./en/functions/array.xml, last change in rev 1.14 -->
<refentry xml:id="function.array-diff" xmlns="http://docbook.org/ns/docbook">
<refnamediv>
<refname>array_diff</refname>
<refpurpose>Calculeazã diferenþa tablourilor</refpurpose>
</refnamediv>
<refsect1>
<title>Descriere</title>
<methodsynopsis>
<type>array</type><methodname>array_diff</methodname>
<methodparam><type>array</type><parameter>array1</parameter></methodparam>
<methodparam><type>array</type><parameter>array2</parameter></methodparam>
<methodparam choice="opt"><type>array</type><parameter> ...</parameter></methodparam>
</methodsynopsis>
<para>
<function>array_diff</function> returneazã un tablou
ce conþine toate valorile din <parameter>array1</parameter>
care nu sunt prezente în celelalte argumente.
Indecºii sunt pãstraþi.
</para>
<para>
<example>
<title>Exemplu de utilizare <function>array_diff</function></title>
<programlisting role="php">
<![CDATA[
$array1 = array ("a" => "green", "red", "blue", "red");
$array2 = array ("b" => "green", "yellow", "red");
$result = array_diff ($array1, $array2);
]]>
</programlisting>
</example>
</para>
<para>
Variabila <varname>$result</varname> va conþine
<literal>array ("blue");</literal>. Mai multe apariþii ale aceleaºi valori în
$array1 sunt tratate în acelaºi fel.
</para>
<note>
<simpara>
Douã elemente sunt considerate egale dacã ºi numai dacã
<literal>(string) $elem1 === (string) $elem2</literal>. Cu alte cuvinte:
atunci când reprezentãrile ca ºiruri a celor douã valori sunt identice.
<!-- TODO: example of it... -->
</simpara>
</note>
<warning>
<simpara>
Aceastã funcþie nu a funcþionat în PHP 4.0.4!
<!-- TODO: when exactly was this broken?... -->
</simpara>
</warning>
<para>
Vezi de asemenea ºi <function>array_intersect</function>.
</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
-->