mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
mmm, tss tsss
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@128473 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
5459be6d9a
commit
193bf30234
1 changed files with 10 additions and 14 deletions
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.5 $ -->
|
||||
<!-- $Revision: 1.6 $ -->
|
||||
<!-- splitted from ./en/functions/strings.xml, last change in rev 1.142 -->
|
||||
<refentry id="function.wordwrap">
|
||||
<refnamediv>
|
||||
|
@ -42,10 +42,9 @@
|
|||
</para>
|
||||
</note>
|
||||
</para>
|
||||
<para>
|
||||
<example>
|
||||
<title><function>wordwrap</function> example</title>
|
||||
<programlisting role="php">
|
||||
<example>
|
||||
<title><function>wordwrap</function> example</title>
|
||||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
$text = "The quick brown fox jumped over the lazy dog.";
|
||||
$newtext = wordwrap( $text, 20 );
|
||||
|
@ -66,18 +65,16 @@ lazy dog.
|
|||
]]>
|
||||
</screen>
|
||||
</example>
|
||||
<para>
|
||||
<example>
|
||||
<title><function>wordwrap</function> example</title>
|
||||
<programlisting role="php">
|
||||
<example>
|
||||
<title><function>wordwrap</function> example</title>
|
||||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
$text = "A very long woooooooooooord.";
|
||||
$newtext = wordwrap( $text, 8, "\n", 1);
|
||||
|
||||
echo "$newtext\n";
|
||||
]]>
|
||||
</programlisting>
|
||||
</para>
|
||||
</programlisting>
|
||||
<para>
|
||||
This example would display:
|
||||
</para>
|
||||
|
@ -91,9 +88,8 @@ wooooooo
|
|||
|
||||
ooooord.
|
||||
]]>
|
||||
</screen>
|
||||
</example>
|
||||
</para>
|
||||
</screen>
|
||||
</example>
|
||||
<para>
|
||||
See also <function>nl2br</function>.
|
||||
</para>
|
||||
|
|
Loading…
Reference in a new issue