cvs: phpdoc-pt_BR /reference/strings/functions wordwrap.xml
| From: | Fernando Correa da Concei��o | Date: | Fri, 18 Apr 2003 23:26:03 +0000 |
| Subject: | cvs: phpdoc-pt_BR /reference/strings/functions wordwrap.xml | ||
| Groups: | php.doc.pt-br | ||
| Request: | Send a blank email to doc-pt-br+get-786@lists.php.net to get a copy of this message | ||
fernandoc Fri Apr 18 19:26:03 2003 EDT
Added files:
/phpdoc-pt_BR/reference/strings/functions wordwrap.xml
Log:
New Translation
Index: phpdoc-pt_BR/reference/strings/functions/wordwrap.xml
+++ phpdoc-pt_BR/reference/strings/functions/wordwrap.xml
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- EN-Revision: 1.4 Maintainer: fernandoc Status: ready -->
<!-- splitted from ./en/functions/strings.xml, last change in rev 1.142 -->
<refentry id="function.wordwrap">
<refnamediv>
<refname>wordwrap</refname>
<refpurpose>
Quebra uma string em linhas usando um caractere de quebra de linha.
</refpurpose>
</refnamediv>
<refsect1>
<title>Descrição</title>
<methodsynopsis>
<type>string</type><methodname>wordwrap</methodname>
<methodparam><type>string</type><parameter>str</parameter></methodparam>
<methodparam
choice="opt"><type>int</type><parameter>width</parameter></methodparam>
<methodparam
choice="opt"><type>string</type><parameter>break</parameter></methodparam>
<methodparam
choice="opt"><type>boolean</type><parameter>cut</parameter></methodparam>
</methodsynopsis>
<para>
Retorna uma string com o parâmetro <parameter>str</parameter> com quebras de linha
na coluna especificada pelo parâmetro(opcional)
<parameter>width</parameter>. A linha é quebrada
usando o parâmetro(opcional) <parameter>break</parameter>.
</para>
<para>
<function>wordwrap</function> irá automaticamente quebrar na coluna 75
e quebrar usando '\n' (newline) se os parâmetros
<parameter>width</parameter>
ou <parameter>break</parameter> não forem dados.
</para>
<para>
Se <parameter>cut</parameter> for estabelecido como 1, a string é sempre
quebrada na largura especificada. Então se você tem uma palavra
que é mais larga do que a largura indicada, ela é quebrada.
(Veja o segundo exemplo).
<note>
<para>
O parâmetro(opcional) <parameter>cut</parameter> foi adicionado no PHP 4.0.3
</para>
</note>
</para>
<para>
<example>
<title>Exemplo <function>wordwrap</function></title>
<programlisting role="php">
<![CDATA[
$text = "The quick brown fox jumped over the lazy dog.";
$newtext = wordwrap( $text, 20 );
echo "$newtext\n";
]]>
</programlisting>
</example>
</para>
<para>
Este exemplo irá mostrar:
</para>
<para>
<informalexample>
<screen>
<![CDATA[
The quick brown fox
jumped over the
lazy dog.
]]>
</screen>
</informalexample>
</para>
<para>
<example>
<title>Exemplo <function>wordwrap</function></title>
<programlisting role="php">
<![CDATA[
$text = "A very long woooooooooooord.";
$newtext = wordwrap( $text, 8, "\n", 1);
echo "$newtext\n";
]]>
</programlisting>
</example>
</para>
<para>
Este exemplo irá mostrar:
</para>
<para>
<informalexample>
<screen>
<![CDATA[
A very
long
wooooooo
ooooord.
]]>
</screen>
</informalexample>
</para>
<para>
Veja também <function>nl2br</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
-->