Date: 05/31/98
- Next message: rasmus: "[PHP-DEV] CVS update: php3/functions"
- Previous message: rasmus: "[PHP-DEV] CVS update: php3"
- Next in thread: rasmus: "[PHP-DEV] CVS update: php3/doc/functions"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sunday May 31, 1998 @ 17:16
Author: rasmus
Update of /repository/php3/doc/functions
In directory asf:/tmp/cvs-serv29521/doc/functions
Modified Files:
strings.sgml
Log Message:
Take Jim's advice and make trim() strip whitespace from both ends and
create an ltrim() function that just strips at the start of the string.
Also add rtrim() alias to chop() for completeness sake.
Index: php3/doc/functions/strings.sgml
diff -c php3/doc/functions/strings.sgml:1.25 php3/doc/functions/strings.sgml:1.26
*** php3/doc/functions/strings.sgml:1.25 Sun May 31 09:23:02 1998
--- php3/doc/functions/strings.sgml Sun May 31 17:16:56 1998
***************
*** 1092,1100 ****
</refsect1>
</refentry>
<refentry id="function.trim">
<refnamediv>
! <refname>trim</refname> <refpurpose>Strip whitespace from the beginning of a string.</refpurpose>
</refnamediv>
<refsect1>
<title>Description</title>
--- 1092,1119 ----
</refsect1>
</refentry>
+ <refentry id="function.ltrim">
+ <refnamediv>
+ <refname>ltrim</refname> <refpurpose>Strip whitespace from the beginning of a string.</refpurpose>
+ </refnamediv>
+ <refsect1>
+ <title>Description</title>
+ <funcsynopsis>
+ <funcdef>string <function>ltrim</function></funcdef>
+ <paramdef>string <parameter>str</parameter></paramdef>
+ </funcsynopsis>
+
+ <para>
+ This function strips whitespace from the start of a string and returns the stripped string.
+ <para>
+ See also <function>chop</function> and <function>trim</function>.
+
+ </refsect1>
+ </refentry>
+
<refentry id="function.trim">
<refnamediv>
! <refname>trim</refname> <refpurpose>Strip whitespace from the beginning and end of a string.</refpurpose>
</refnamediv>
<refsect1>
<title>Description</title>
***************
*** 1104,1112 ****
</funcsynopsis>
<para>
! This function strips whitespace from the start of a string and returns the stripped string.
<para>
! See also <function>chop</function>.
</refsect1>
</refentry>
--- 1123,1131 ----
</funcsynopsis>
<para>
! This function strips whitespace from the start and the end of a string and returns the stripped string.
<para>
! See also <function>chop</function> and <function>ltrim</function>.
</refsect1>
</refentry>
- Next message: rasmus: "[PHP-DEV] CVS update: php3/functions"
- Previous message: rasmus: "[PHP-DEV] CVS update: php3"
- Next in thread: rasmus: "[PHP-DEV] CVS update: php3/doc/functions"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

