added documentation for rtrim.

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@29408 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Brian Moon 2000-07-31 14:09:34 +00:00
parent b8e4c0d1dd
commit 84c36115cf

View file

@ -1337,6 +1337,33 @@ echo '<A HREF="http://x.com/department_list_script/',
</refsect1>
</refentry>
<refentry id="function.rtrim">
<refnamediv>
<refname>rtrim</refname>
<refpurpose>Remove trailing whitespace.</refpurpose>
</refnamediv>
<refsect1>
<title>Description</title>
<funcsynopsis>
<funcdef>string <function>rtrim</function></funcdef>
<paramdef>string <parameter>str</parameter></paramdef>
</funcsynopsis>
<para>
Returns the argument string without trailing whitespace,
including newlines. This is an alias for <function>chop</function>.
<example>
<title><function>rtrim</function> example</title>
<programlisting role="php">
$trimmed = rtrim ($line);
</programlisting>
</example>
</para>
<para>
See also <function>trim</function>, <function>ltrim</function>.
</para>
</refsect1>
</refentry>
<refentry id="function.setlocale">
<refnamediv>
<refname>setlocale</refname>