mirror of
https://github.com/macintoshplus/doc-fr.git
synced 2026-03-27 02:12:19 +01:00
git-svn-id: https://svn.php.net/repository/phpdoc/fr/trunk@78204 c90b9560-bf6c-de11-be94-00142212c4b1
67 lines
1.8 KiB
XML
67 lines
1.8 KiB
XML
<?xml version="1.0" encoding="iso-8859-1"?>
|
|
<!-- splitted from ./fr/functions/array.xml, last change in rev 1.42 -->
|
|
<!-- last change to 'array-fill' in en/ tree in rev 1.2 -->
|
|
<refentry id="function.array-fill">
|
|
<refnamediv>
|
|
<refname>array_fill</refname>
|
|
<refpurpose>Remplis un tableau avec une même valeur</refpurpose>
|
|
</refnamediv>
|
|
<refsect1>
|
|
<title>Description</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> crée un tableau avec
|
|
<parameter>num</parameter> entrées de la valeur
|
|
<parameter>value</parameter>. Les index commecent à la valeur
|
|
<parameter>start_index</parameter>.
|
|
</para>
|
|
<para>
|
|
<example>
|
|
<title>Exemple avec <function>array_fill</function></title>
|
|
<programlisting role="php">
|
|
<?gt;
|
|
$a = array_fill(5, 6, 'banane');
|
|
|
|
/*
|
|
$a est le tableau suivant
|
|
|
|
$a[5] = "banane";
|
|
$a[6] = "banane";
|
|
$a[7] = "banane";
|
|
$a[8] = "banane";
|
|
$a[9] = "banane";
|
|
$a[10] = "banane";
|
|
*/
|
|
?>
|
|
</programlisting>
|
|
</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
|
|
-->
|