For Programmers: Free Programming Magazines  


Home > Archive > PHP Documentation > July 2006 > cvs: phpdoc /en/reference/strings/functions strlen.xml









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author cvs: phpdoc /en/reference/strings/functions strlen.xml
Philip Olson

2006-07-31, 9:57 pm

philip Tue Aug 1 02:23:17 2006 UTC

Modified files:
/phpdoc/en/reference/strings/functions strlen.xml
Log:
Implemented the new doc style and some rewording where appropriate


http://cvs.php.net/viewvc.cgi/phpdo...7&diff_format=u
Index: phpdoc/en/reference/strings/functions/strlen.xml
diff -u phpdoc/en/reference/strings/functions/strlen.xml:1.6 phpdoc/en/reference/strings/functions/strlen.xml:1.7
--- phpdoc/en/reference/strings/functions/strlen.xml:1.6 Tue Aug 1 02:00:03 2006
+++ phpdoc/en/reference/strings/functions/strlen.xml Tue Aug 1 02:23:17 2006
@@ -1,13 +1,13 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.6 $ -->
+<!-- $Revision: 1.7 $ -->
<refentry id="function.strlen">
<refnamediv>
<refname>strlen</refname>
<refpurpose>Get string length</refpurpose>
</refnamediv>
-
- <refsect1>
- <title>Description</title>
+
+ <refsect1 role="description">
+ &reftitle.description;
<methodsynopsis>
<type>int</type><methodname>strlen</methodname>
<methodparam><type>string</type><parameter>string</parameter></methodparam>
@@ -15,6 +15,34 @@
<para>
Returns the length of the given <parameter>string</parameter>.
</para>
+ </refsect1>
+
+ <refsect1 role="parameters">
+ &reftitle.parameters;
+ <para>
+ <variablelist>
+ <varlistentry>
+ <term><parameter>string</parameter></term>
+ <listitem>
+ <para>
+ The <type>string</type> being measured for length.
+ </para>
+ </listitem>
+ </varlistentry>
+ </variablelist>
+ </para>
+ </refsect1>
+
+ <refsect1 role="returnvalues">
+ &reftitle.returnvalues;
+ <para>
+ The length of the <parameter>string</parameter> on success,
+ and <literal>0</literal> if the <parameter>string</parameter> is empty.
+ </para>
+ </refsect1>
+
+ <refsect1 role="examples">
+ &reftitle.examples;
<para>
<example>
<title>A <function>strlen</function> example</title>
@@ -31,8 +59,15 @@
</programlisting>
</example>
</para>
+ </refsect1>
+
+ <refsect1 role="seealso">
+ &reftitle.seealso;
<para>
- See also <function>count</function>, and <function>mb_strlen</function>.
+ <simplelist>
+ <member><function>count</function></member>
+ <member><function>mb_strlen</function></member>
+ </simplelist>
</para>
</refsect1>
</refentry>
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com