cvs: phpdoc-sk /reference/array/functions array-intersect.xml array-key-exists.xml

[email protected] ("Joseph Drake")
Newsgroups php.doc.sk
Message-ID <cvsjoseph1041557065@cvsserver>
joseph		Thu Jan  2 20:24:25 2003 EDT

  Added files:                 
    /phpdoc-sk/reference/array/functions	array-intersect.xml 
                                        	array-key-exists.xml 
  Log:
  array functions
  

Index: phpdoc-sk/reference/array/functions/array-intersect.xml
+++ phpdoc-sk/reference/array/functions/array-intersect.xml
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- EN-Revision: 1.4 Maintainer: joseph -->
<!-- splitted from ./en/functions/array.xml, last change in rev 1.14 -->
  <refentry id="function.array-intersect">
   <refnamediv>
    <refname>array_intersect</refname>
    <refpurpose>Vypoèíta prienik polí</refpurpose>
   </refnamediv>
   <refsect1>
    <title>Popis</title>
     <methodsynopsis>
      <type>array</type><methodname>array_intersect</methodname>
      <methodparam><type>array</type><parameter>pole1</parameter></methodparam>
      <methodparam><type>array</type><parameter>pole2</parameter></methodparam>
      <methodparam choice="opt"><type>array</type><parameter> ...</parameter></methodparam>
     </methodsynopsis>
    <para>
     <function>array_intersect</function> vracia pole
     obsahujúce v¹etky hodnoty <parameter>poµa1</parameter>,
     ktoré sa vyskytujú vo v¹etkých argumentoch.
     Kµúèe sa zachovávajú.
    </para>
    <para>
     <example>
      <title><function>array_intersect</function> príklad</title>
      <programlisting role="php">
<![CDATA[
$pole1 = array ("a" => "zelena", "cervena", "modra");
$poley2 = array ("b" => "zelena", "zlta", "cervena");
$vysledok = array_intersect ($pole1, $pole2);
]]>
      </programlisting>
      <para>
       <varname>$result</varname> obsahuje
       <screen role="php">
<![CDATA[
Array
(
    [a] => zelena
    [0] => cervena
)
]]>
       </screen>
      </para>
     </example>
    </para>
    <note>
     <simpara>
      Dva elementy sa pova¾ujú za rovné vtedy a len vtedy keï
      <literal>(string) $elem1 === (string) $elem2</literal>. Slovami:
      keï je reprezentácia re»azca rovnaká.
      <!-- TODO: example of it... -->
     </simpara>
    </note>
    <warning>
     <simpara>
      Od PHP 4.0.4 to neplatí!
      <!-- TODO: when exactly was this broken?... -->
     </simpara>
    </warning>
    <para>
     Tie¾ <function>array_diff</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
-->

Index: phpdoc-sk/reference/array/functions/array-key-exists.xml
+++ phpdoc-sk/reference/array/functions/array-key-exists.xml
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- EN-Revision: 1.5 Maintainer: joseph Status: ready -->
<!-- splitted from ./en/functions/array.xml, last change in rev 1.119 -->
  <refentry id="function.array-key-exists">
   <refnamediv>
    <refname>array_key_exists</refname>
    <refpurpose>Kontroluje, èi daný kµúè alebo index existuje v poli</refpurpose>
   </refnamediv>
   <refsect1>
    <title>Popis</title>
     <methodsynopsis>
      <type>bool</type><methodname>array_key_exists</methodname>
      <methodparam><type>mixed</type><parameter>kluc</parameter></methodparam>
      <methodparam><type>array</type><parameter>hladaj</parameter></methodparam>
     </methodsynopsis>
    <para>
     <function>array_key_exists</function> vracia &true; ak je
     daný <parameter>kluc</parameter> nastavený v poli.
     <parameter>kluc</parameter> mô¾e by» akákoµvek hodnota
     pre index poµa.
    </para>
    <para>
     <example>
      <title><function>array_key_exists</function> príklad</title>
      <programlisting role="php">
<![CDATA[
$hladat_pole = array("prvy" => 1, "druhy" => 4);
if (array_key_exists("prvy", $search_array)) {
    echo "Element 'prvy' je v poli";
}
]]>
      </programlisting>
     </example>
    </para>
    <note>
     <simpara>
      V PHP verzií 4.0.6 sa táto funkcia nazýva <function>key_exists</function>.
     </simpara>
    </note>
    <para>
     Tie¾ pozri <function>isset</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
-->
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.