mirror of
https://github.com/php/doc-pt_br.git
synced 2026-04-24 08:38:17 +02:00
22ffb29765
* Updates to outdated pages in reference/strings/* and correction to calendar constants * Update sscanf.xml * Update debug.xml only hash, `pt_br` was corrected before `en` --------- Co-authored-by: LEONARDO LARA RODRIGUES <leonardolara@github.com>
113 lines
2.7 KiB
XML
113 lines
2.7 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!-- EN-Revision: e095023e408c8cb6378ae16bb6870343a3946919 Maintainer: leonardolara Status: ready --><!-- CREDITS: fernandoc,leonardolara -->
|
|
<refentry xml:id="function.str-repeat" xmlns="http://docbook.org/ns/docbook">
|
|
<refnamediv>
|
|
<refname>str_repeat</refname>
|
|
<refpurpose>Repete uma string</refpurpose>
|
|
</refnamediv>
|
|
|
|
<refsect1 role="description">
|
|
&reftitle.description;
|
|
<methodsynopsis>
|
|
<type>string</type><methodname>str_repeat</methodname>
|
|
<methodparam><type>string</type><parameter>string</parameter></methodparam>
|
|
<methodparam><type>int</type><parameter>times</parameter></methodparam>
|
|
</methodsynopsis>
|
|
<para>
|
|
Retorna a <parameter>string</parameter> repetida
|
|
pelo número de vezes definido em <parameter>times</parameter>.
|
|
</para>
|
|
</refsect1>
|
|
|
|
<refsect1 role="parameters">
|
|
&reftitle.parameters;
|
|
<para>
|
|
<variablelist>
|
|
<varlistentry>
|
|
<term><parameter>string</parameter></term>
|
|
<listitem>
|
|
<para>
|
|
A string a ser repetida.
|
|
</para>
|
|
</listitem>
|
|
</varlistentry>
|
|
<varlistentry>
|
|
<term><parameter>times</parameter></term>
|
|
<listitem>
|
|
<para>
|
|
Número de vezes que a <parameter>string</parameter> será
|
|
repetida.
|
|
</para>
|
|
<para>
|
|
<parameter>times</parameter> deve ser maior ou igual a 0.
|
|
Se o parâmetro <parameter>times</parameter> for 0, a função
|
|
irá retornar uma string vazia.
|
|
</para>
|
|
</listitem>
|
|
</varlistentry>
|
|
</variablelist>
|
|
</para>
|
|
</refsect1>
|
|
|
|
<refsect1 role="returnvalues">
|
|
&reftitle.returnvalues;
|
|
<para>
|
|
Retorna a string repetida.
|
|
</para>
|
|
</refsect1>
|
|
|
|
<refsect1 role="examples">
|
|
&reftitle.examples;
|
|
<para>
|
|
<example>
|
|
<title>Exemplo de <function>str_repeat</function></title>
|
|
<programlisting role="php">
|
|
<![CDATA[
|
|
<?php
|
|
echo str_repeat("-=", 10);
|
|
?>
|
|
]]>
|
|
</programlisting>
|
|
&example.outputs;
|
|
<screen>
|
|
<![CDATA[
|
|
-=-=-=-=-=-=-=-=-=-=
|
|
]]>
|
|
</screen>
|
|
</example>
|
|
</para>
|
|
</refsect1>
|
|
|
|
<refsect1 role="seealso">
|
|
&reftitle.seealso;
|
|
<para>
|
|
<simplelist>
|
|
<member><link linkend="control-structures.for">for</link></member>
|
|
<member><function>str_pad</function></member>
|
|
<member><function>substr_count</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
|
|
-->
|