mirror of
https://github.com/php/doc-es.git
synced 2026-03-25 16:02:13 +01:00
EN-Revision: x Maintainer: reven Status: ready git-svn-id: https://svn.php.net/repository/phpdoc/es/trunk@125840 c90b9560-bf6c-de11-be94-00142212c4b1
74 lines
2.0 KiB
XML
74 lines
2.0 KiB
XML
<?xml version="1.0" encoding="iso-8859-1"?>
|
|
<!-- $Revision: 1.2 $ -->
|
|
<!-- EN-Revision: 1.5 Maintainer: reven 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>Llena una matriz con valores</refpurpose>
|
|
</refnamediv>
|
|
<refsect1>
|
|
<title>Descripción</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> introduce en una matriz tantas entradas
|
|
como especifique el parámetro <parameter>num</parameter>,
|
|
numerandolas a partir de <parameter>start_index</parameter>, y les asigna
|
|
el valor del parámetro <parameter>value</parameter>.
|
|
</para>
|
|
<para>
|
|
<example>
|
|
<title>Ejemplo de <function>array_fill</function></title>
|
|
<programlisting role="php">
|
|
<![CDATA[
|
|
$a = array_fill(5, 6, 'banana');
|
|
print_r($a);
|
|
]]>
|
|
</programlisting>
|
|
<para>
|
|
<varname>$a</varname> contendrá ahora:
|
|
<screen>
|
|
<![CDATA[
|
|
Array
|
|
(
|
|
[5] => banana
|
|
[6] => banana
|
|
[7] => banana
|
|
[8] => banana
|
|
[9] => banana
|
|
[10] => banana
|
|
)
|
|
]]>
|
|
</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
|
|
-->
|