1
0
mirror of https://github.com/php/doc-pl.git synced 2026-03-25 23:52:07 +01:00
Files
archived-doc-pl/reference/array/functions/array-values.xml
Leszek Krupinski 03d0f70798 Standarized 'see also' translation
git-svn-id: https://svn.php.net/repository/phpdoc/pl/trunk@82551 c90b9560-bf6c-de11-be94-00142212c4b1
2002-05-17 13:50:52 +00:00

91 lines
2.1 KiB
XML

<?xml version="1.0" encoding="iso-8859-2"?>
<!-- EN-Revision: 1.4 Maintainer: leszek Status: ready -->
<!-- $Revision: 1.4 $ -->
<refentry id="function.array-values">
<refnamediv>
<refname>array_values</refname>
<refpurpose>Zwraca wszystkie warto¶ci z tablicy</refpurpose>
</refnamediv>
<refsect1>
<title>Opis</title>
<methodsynopsis>
<type>array</type><methodname>array_values</methodname>
<methodparam><type>array</type><parameter>wej¶cie</parameter></methodparam>
</methodsynopsis>
<para>
<function>array_values</function> zwraca wszystkie warto¶ci z tablicy
<parameter>wej¶cie</parameter>.
</para>
<para>
<example>
<title>Przyk³ad u¿ycia <function>array_values</function></title>
<programlisting role="php">
<![CDATA[
$tablica = array ("rozmiar" => "XL", "kolor" => "z³oty");
print_r(array_values ($tablica));
]]>
</programlisting>
<para>
Powy¿szy przyk³ad wy¶wietli:
<screen>
<![CDATA[
+Array
(
[0] => XL
[1] => z³oty
)
]]>
</screen>
</para>
</example>
</para>
<note>
<para>
Ta funkcja zosta³a dodana w PHP 4. Poni¿ej znajduje siê implementacja
tej funkcji dla osób u¿ywaj±cych PHP 3.
<example>
<title>
Implementacja funkcji <function>array_values</function> dla
u¿ytkowników PHP 3
</title>
<programlisting role="php">
<![CDATA[
function array_values ($arr) {
$t = array();
while (list($k, $v) = each ($arr)) {
$t[] = $v;
}
return $t;
}
]]>
</programlisting>
</example>
</para>
</note>
<para>
Patrz tak¿e: <function>array_keys</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
-->