cvs: phpdoc-sk /reference/array/functions array-count-values.xml array-diff.xml array-fill.xml

[email protected] ("Joseph Drake")
Newsgroups php.doc.sk
Message-ID <cvsjoseph1033164802@cvsserver>
joseph		Fri Sep 27 18:13:22 2002 EDT

  Added files:                 
    /phpdoc-sk/reference/array/functions	array-count-values.xml 
                                        	array-diff.xml array-fill.xml 
  Log:
  some array functions
  
  

Index: phpdoc-sk/reference/array/functions/array-count-values.xml
+++ phpdoc-sk/reference/array/functions/array-count-values.xml
<?xml version="1.0" encoding="iso-8859-2"?>
<!-- EN-Revision: 1.4 Maintainer: joseph Status: ready -->
<!-- splitted from ./en/functions/array.xml, last change in rev 1.2 -->
  <refentry id="function.array-count-values">
   <refnamediv>
    <refname>array_count_values</refname>
    <refpurpose>Spoèíta v¹etky hodnoty poµa</refpurpose>
   </refnamediv>
   <refsect1>
    <title>Popis</title>
     <methodsynopsis>
      <type>array</type><methodname>array_count_values</methodname>
      <methodparam><type>array</type><parameter>vstup</parameter></methodparam>
     </methodsynopsis>
    <para>
     <function>array_count_values</function> vracia pole pomocou
     hodnôt poµa <parameter>vstup</parameter> ako kµúèe a ich
     poèetnos» v <parameter>stupe</parameter> ako hodnôt.
    </para>
    <para>
     <example>
      <title><function>array_count_values</function> príklad</title>
      <programlisting role="php">
<![CDATA[
$pole = array (1, "ahoj", 1, "svet", "ahoj");
print_r(array_count_values ($pole));
]]>
      </programlisting>
      <para>
       Výpis vy¹¹ie uvedeného programu bude:
       <screen>
<![CDATA[
Array
(
    [1] => 2
    [ahoj] => 2
    [svet] => 1
)
]]>
       </screen>
      </para>
     </example>
    </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-diff.xml
+++ phpdoc-sk/reference/array/functions/array-diff.xml
<?xml version="1.0" encoding="iso-8859-2"?>
<!-- EN-Revision: 1.5 Maintainer: joseph Status: ready -->
<!-- splitted from ./en/functions/array.xml, last change in rev 1.14 -->
  <refentry id="function.array-diff">
   <refnamediv>
    <refname>array_diff</refname>
    <refpurpose>Vypoèíta rozdiel polí</refpurpose>
   </refnamediv>
   <refsect1>
    <title>Popis</title>
     <methodsynopsis>
      <type>array</type><methodname>array_diff</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_diff</function> vracia pole
     obsahujúce v¹etky hodnoty poµa <parameter>pole1</parameter>,
     ktoré sa nenachádzajú v ¾iadnom z ïal¹ích argumentov.
     V¹imnite si, ¾e kµúèe sa uchovávajú.
    </para>
    <para>
     <example>
      <title><function>array_diff</function> príklad</title>
      <programlisting role="php">
<![CDATA[
$pole1 = array ("a" => "zelená", "èervená", "modrá", "èervená");
$pole2 = array ("b" => "zelená", "¾ltá", "èervená");
$vysledok = array_diff ($pole1, $pole2);
]]>
      </programlisting>
     </example>
    </para>
    <para>
     Podµa tohto bude <varname>$vysledok</varname> ma»
     <literal>array ("modrá");</literal>. Zlo¾ité prípady v
     $pole1 sa spracovávajú rovnako.
    </para>
    <note>
     <simpara>
      Dva elementy sa rovnajú vtedy a len vtedy ak
      <literal>(string) $elem1 === (string) $elem2</literal>. Slovne:
      keï je reprezentácia re»azca rovnaká.
      <!-- TODO: example of it... -->
     </simpara>
    </note>
    <note>
     <simpara>
      V¹imnite si prosím, ¾e táto funkcia kontroluje len jednu dimenziu
      n-dimenzionálneho poµa. Samozrejme mô¾ete kontrolova» i hlb¹ie
      dimenziu pomocou <literal>array_diff($pole1[0], $pole2[0]);</literal>.
     </simpara>
    </note>
    <warning>
     <simpara>
      Toto bolo prelomené v PHP 4.0.4!
      <!-- TODO: when exactly was this broken?... -->
     </simpara>
    </warning>
    <para>
     Tie¾ pozri <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
-->

Index: phpdoc-sk/reference/array/functions/array-fill.xml
+++ phpdoc-sk/reference/array/functions/array-fill.xml
<?xml version="1.0" encoding="iso-8859-2"?>
<!-- EN-Revision: 1.4 Maintainer: joseph Status: ready -->
<!-- splitted from ./en/functions/array.xml, last change in rev 1.2 -->
  <refentry id="function.array-fill">
   <refnamediv>
    <refname>array_fill</refname>
    <refpurpose>Vyplní pole hodnotami</refpurpose>
   </refnamediv>
   <refsect1>
    <title>Popis</title>
     <methodsynopsis>
      <type>array</type><methodname>array_fill</methodname>
      <methodparam><type>int</type><parameter>start_index</parameter></methodparam>
      <methodparam><type>int</type><parameter>num</parameter></methodparam>
      <methodparam><type>mixed</type><parameter>value</parameter></methodparam>
     </methodsynopsis>
    <para>
     <function>array_fill</function> vyplní pole s
     <parameter>num</parameter> polo¾kami hodnoty parametra
     <parameter>value</parameter>, kµúèe poèínajúc od
     <parameter>start_index</parameter> parametra.
    </para>
    <para>
     <example>
      <title><function>array_fill</function> príklad</title>
      <programlisting role="php">
<![CDATA[
$a = array_fill(5, 6, 'banán');
]]>
      </programlisting>
      <para>
       Teraz pomocou <function>print_r</function> zistíme polo¾ky $a:
       <screen>
<![CDATA[
Array
(
    [5]  => banán
    [6]  => banán
    [7]  => banán
    [8]  => banán
    [9]  => banán
    [10] => banán
)
]]>
       </screen>
      </para>
     </example>
    </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.