cvs: phpdoc-es /reference/strings/functions strlen.xml
| From: | Javier Eguiluz | Date: | Thu, 30 Jun 2005 07:18:47 +0000 |
| Subject: | cvs: phpdoc-es /reference/strings/functions strlen.xml | ||
| Groups: | php.doc.es | ||
| Request: | Send a blank email to doc-es+get-953@lists.php.net to get a copy of this message | ||
javi Thu Jun 30 03:18:47 2005 EDT
Modified files:
/phpdoc-es/reference/strings/functions strlen.xml
Log:
- Añadido EN-Revision
- Añadido ejemplo del final
http://cvs.php.net/diff.php/phpdoc-es/reference/strings/functions/strlen.xml?r1=1.2&r2=1.3&ty=u
Index: phpdoc-es/reference/strings/functions/strlen.xml
diff -u phpdoc-es/reference/strings/functions/strlen.xml:1.2
phpdoc-es/reference/strings/functions/strlen.xml:1.3
--- phpdoc-es/reference/strings/functions/strlen.xml:1.2 Sat Aug 17 09:04:36 2002
+++ phpdoc-es/reference/strings/functions/strlen.xml Thu Jun 30 03:18:46 2005
@@ -1,6 +1,7 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- splitted from ./es/functions/strings.xml, last change in rev 1.7 -->
-<!-- last change to 'strlen' in en/ tree in rev 1.2 -->
+<!-- $Revision: 1.3 $ -->
+<!-- EN-Revision: 1.5 Maintainer: javi Status: ready -->
+<!-- splitted from ./en/functions/strings.xml, last change in rev 1.2 -->
<refentry id="function.strlen">
<refnamediv>
<refname>strlen</refname>
@@ -10,10 +11,29 @@
<title>Descripción</title>
<methodsynopsis>
<type>int</type><methodname>strlen</methodname>
-
<methodparam><type>string</type><parameter>cad</parameter></methodparam>
+
<methodparam><type>string</type><parameter>cadena</parameter></methodparam>
</methodsynopsis>
<para>
- Devuelve la longitud de la <parameter>cadena</parameter>.
+ Devuelve la longitud de la <parameter>cadena</parameter> indicada.
+ </para>
+ <para>
+ <example>
+ <title>Ejemplo de <function>strlen</function></title>
+ <programlisting role="php">
+<![CDATA[
+<?php
+$cadena = 'abcdef';
+echo strlen($cadena); // 6
+
+$cadena = ' ab cd ';
+echo strlen($cadena); // 7
+?>
+]]>
+ </programlisting>
+ </example>
+ </para>
+ <para>
+ Vea también <function>count</function> y
<function>mb_strlen</function>.
</para>
</refsect1>
</refentry>