1
0
mirror of https://github.com/php/doc-uk.git synced 2026-03-24 15:12:10 +01:00
Files
Костя Третяк 0518524a90 Module uk: Commit contribution iSensetivity
git-svn-id: https://svn.php.net/repository/phpdoc/uk/trunk@335713 c90b9560-bf6c-de11-be94-00142212c4b1
2015-01-11 09:30:11 +00:00

130 lines
3.7 KiB
XML
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<!-- EN-Revision: 8b5940cadeb4f1c8492f4a7f70743a2be807cf39 Maintainer: iSensetivity Status: ready -->
<!-- Reviewed: no -->
<refentry xmlns="http://docbook.org/ns/docbook" xml:id="function.implode">
<refnamediv>
<refname>implode</refname>
<refpurpose>Формує з елементів масиву рядок</refpurpose>
</refnamediv>
<refsect1 role="description">
&reftitle.description;
<methodsynopsis>
<type>string</type><methodname>implode</methodname>
<methodparam><type>string</type><parameter>glue</parameter></methodparam>
<methodparam><type>array</type><parameter>pieces</parameter></methodparam>
</methodsynopsis>
<methodsynopsis>
<type>string</type><methodname>implode</methodname>
<methodparam><type>array</type><parameter>pieces</parameter></methodparam>
</methodsynopsis>
<para>
За допомогою роздільника <parameter>glue</parameter> формує з елементів масиву рядок.
</para>
<note>
<para>
З історичних причин <function>implode</function> може приймати
параметри у будь-якому порядку. Проте для узгодженості з функцією
<function>explode</function>, слід використовувати документований
порядок аргументів.
</para>
</note>
</refsect1>
<refsect1 role="parameters">
&reftitle.parameters;
<para>
<variablelist>
<varlistentry>
<term><parameter>glue</parameter></term>
<listitem>
<para>
Початково - порожній рядок.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term><parameter>pieces</parameter></term>
<listitem>
<para>
Масив рядків для об'єднання.
</para>
</listitem>
</varlistentry>
</variablelist>
</para>
</refsect1>
<refsect1 role="returnvalues">
&reftitle.returnvalues;
<para>
Повертає рядок, що містить всі елементи масива, розділені через
<parameter>glue</parameter>, причому порядок елементів зберігається.
</para>
</refsect1>
<refsect1 role="examples">
&reftitle.examples;
<para>
<example>
<title>Використання <function>implode</function></title>
<programlisting role="php">
<![CDATA[
<?php
$array = array('Прізвище', 'email', 'номер телефону');
$comma_separated = implode(",", $array);
echo $comma_separated; // Прізвище,email,номер телефону
// Порожній рядок при використанні порожнього масиву:
var_dump(implode('hello', array())); // string(0) ""
?>
]]>
</programlisting>
</example>
</para>
</refsect1>
<refsect1 role="notes">
&reftitle.notes;
&note.bin-safe;
</refsect1>
<refsect1 role="seealso">
&reftitle.seealso;
<para>
<simplelist>
<member><function>explode</function></member>
<member><function>preg_split</function></member>
<member><function>http_build_query</function></member>
</simplelist>
</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:"~/.phpdoc/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
-->