1
0
mirror of https://github.com/php/doc-pl.git synced 2026-04-27 08:48:05 +02:00
Files
archived-doc-pl/reference/array/functions/array-shift.xml
T
Hartmut Holzgraefe a8c9a462d9 banana-split
git-svn-id: https://svn.php.net/repository/phpdoc/pl/trunk@78217 c90b9560-bf6c-de11-be94-00142212c4b1
2002-04-15 01:39:52 +00:00

70 lines
2.1 KiB
XML

<?xml version="1.0" encoding="iso-8859-2"?>
<!-- splitted from ./pl/functions/array.xml, last change in rev 1.1 -->
<!-- last change to 'array-shift' in en/ tree in rev 1.2 -->
<!-- EN-Revision: 1.1 Maintainer: leszek Status: ready -->
<!-- OLD-Revision: 1.130/EN.1.2 -->
<refentry id="function.array-shift">
<refnamediv>
<refname>array_shift</refname>
<refpurpose>
Usuñ element z pocz±tku tablicy
</refpurpose>
</refnamediv>
<refsect1>
<title>Opis</title>
<methodsynopsis>
<type>mixed</type><methodname>array_shift</methodname>
<methodparam><type>array</type><parameter>tablica</parameter></methodparam>
</methodsynopsis>
<para>
<function>array_shift</function> usuwa pierwsz± warto¶æ parametru
<parameter>tablica</parameter> i zwraca go skracaj±c t± tablicê o jeden
element przesuwaj±c wszystkie pozosta³e elementy w dó³. Je¶li
<parameter>tablica</parameter> jest pusta (lub nie jest tablic±),
zwracana jest warto¶æ &null;.
</para>
<para>
<example>
<title>Przyk³ad u¿ycia <function>array_shift</function></title>
<programlisting role="php">
<![CDATA[
$argumenty = array ("-v", "-f");
$opcja = array_shift ($argument);
]]>
</programlisting>
</example>
</para>
<para>
Po wykonaniu powy¿szego kodu zmienna <varname>$args</varname> bêdzie
zawiera³a jeden element "-f" a <varname>$opcja</varname> bêdzie zawiera³a
string "-v".
</para>
<para>
Patrz tak¿e <function>array_unshift</function>,
<function>array_push</function> i
<function>array_pop</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
-->