cvs: phpdoc-es /reference/strings/functions ucfirst.xml
| From: | Javier Eguiluz | Date: | Thu, 30 Jun 2005 15:42:17 +0000 |
| Subject: | cvs: phpdoc-es /reference/strings/functions ucfirst.xml | ||
| Groups: | php.doc.es | ||
| Request: | Send a blank email to doc-es+get-974@lists.php.net to get a copy of this message | ||
javi Thu Jun 30 11:42:17 2005 EDT
Modified files:
/phpdoc-es/reference/strings/functions ucfirst.xml
Log:
- Añadido EN-Revision
- Pequeñas correcciones
http://cvs.php.net/diff.php/phpdoc-es/reference/strings/functions/ucfirst.xml?r1=1.2&r2=1.3&ty=u
Index: phpdoc-es/reference/strings/functions/ucfirst.xml
diff -u phpdoc-es/reference/strings/functions/ucfirst.xml:1.2
phpdoc-es/reference/strings/functions/ucfirst.xml:1.3
--- phpdoc-es/reference/strings/functions/ucfirst.xml:1.2 Sat Aug 17 09:04:36 2002
+++ phpdoc-es/reference/strings/functions/ucfirst.xml Thu Jun 30 11:42:17 2005
@@ -1,37 +1,45 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- splitted from ./es/functions/strings.xml, last change in rev 1.7 -->
-<!-- last change to 'ucfirst' in en/ tree in rev 1.2 -->
+<!-- $Revision: 1.3 $ -->
+<!-- EN-Revision: 1.3 Maintainer: javi Status: ready -->
+<!-- splitted from ./en/functions/strings.xml, last change in rev 1.2 -->
<refentry id="function.ucfirst">
<refnamediv>
<refname>ucfirst</refname>
- <refpurpose>Pasar a mayúsculas el primer caracter de una
cadena</refpurpose>
+ <refpurpose>Pasar a mayúsculas el primer carácter de una
cadena</refpurpose>
</refnamediv>
<refsect1>
<title>Descripción</title>
<methodsynopsis>
<type>string</type><methodname>ucfirst</methodname>
-
<methodparam><type>string</type><parameter>cad</parameter></methodparam>
+
<methodparam><type>string</type><parameter>cadena</parameter></methodparam>
</methodsynopsis>
<para>
- Pone en mayúsculas el primer carácter de
<parameter>cad</parameter>
+ Pone en mayúsculas el primer carácter de
<parameter>cadena</parameter>
si es alfabético.
</para>
<para>
- Nótese que 'alfabético' está determinado por la
localidad actual.
- Por ejemplo, en la localidad por defecto "C", los caracteres como
- la a con diéresis (ä) no serán convertidos.
+ Nótese que 'alfabético' está determinado por la
localización
+ actual (el "locale" del sistema). Por ejemplo, en la configuración de
localización
+ por defecto "C", los caracteres como la a con diéresis (ä) no
serán convertidos.
<example>
<title>Ejemplo de <function>ucfirst</function></title>
- <programlisting role="php">
-$texto = 'susanita tiene un ratón, un ratón chiquitín.';
-$texto = ucfirst ($texto); // $texto vale ahora: Susanita tiene un
- // ratón, un ratón chiquitín.
+ <programlisting role="php">
+<![CDATA[
+<?php
+$cadena = 'en un lugar de la mancha';
+$cadena = ucfirst($cadena); // En un lugar de la mancha
+
+$cadena = 'EN UN LUGAR DE LA MANCHA';
+$cadena = ucfirst($cadena); // EN UN LUGAR DE LA MANCHA
+$cadena = ucfirst(strtolower($cadena)); // En un lugar de la mancha
+?>
+]]>
</programlisting>
</example>
</para>
<para>
- Vea también <function>strtoupper</function> y
- <function>strtolower</function>
+ Vea también <function>strtolower</function>,
<function>strtoupper</function>
+ y <function>ucwords</function>.
</para>
</refsect1>
</refentry>