cvs: phpdoc-es /reference/strings/functions strcasecmp.xml
| From: | Javier Eguiluz | Date: | Wed, 29 Jun 2005 21:17:54 +0000 |
| Subject: | cvs: phpdoc-es /reference/strings/functions strcasecmp.xml | ||
| Groups: | php.doc.es | ||
| Request: | Send a blank email to doc-es+get-945@lists.php.net to get a copy of this message | ||
javi Wed Jun 29 17:17:54 2005 EDT
Modified files:
/phpdoc-es/reference/strings/functions strcasecmp.xml
Log:
- Pequeñas correcciones
http://cvs.php.net/diff.php/phpdoc-es/reference/strings/functions/strcasecmp.xml?r1=1.2&r2=1.3&ty=u
Index: phpdoc-es/reference/strings/functions/strcasecmp.xml
diff -u phpdoc-es/reference/strings/functions/strcasecmp.xml:1.2
phpdoc-es/reference/strings/functions/strcasecmp.xml:1.3
--- phpdoc-es/reference/strings/functions/strcasecmp.xml:1.2 Sat Aug 17 09:04:36 2002
+++ phpdoc-es/reference/strings/functions/strcasecmp.xml Wed Jun 29 17:17:54 2005
@@ -1,11 +1,12 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- splitted from ./es/functions/strings.xml, last change in rev 1.7 -->
-<!-- last change to 'strcasecmp' 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.strcasecmp">
<refnamediv>
<refname>strcasecmp</refname>
<refpurpose>
- Comparación de cadenas insensible a mayúsculas y minúsculas
+ Comparación de cadenas insensible a mayúsculas y minúsculas
y segura en modo binario
</refpurpose>
</refnamediv>
@@ -13,28 +14,32 @@
<title>Descripción</title>
<methodsynopsis>
<type>int</type><methodname>strcasecmp</methodname>
-
<methodparam><type>string</type><parameter>cad1</parameter></methodparam>
-
<methodparam><type>string</type><parameter>cad2</parameter></methodparam>
+
<methodparam><type>string</type><parameter>cadena1</parameter></methodparam>
+
<methodparam><type>string</type><parameter>cadena2</parameter></methodparam>
</methodsynopsis>
<para>
- Devuelve < 0 si <parameter>cad1</parameter> es menor que
- <parameter>cad2</parameter>; > 0 si <parameter>cad1</parameter>
- es mayor que <parameter>cad2</parameter>, y 0 si son iguales.
+ Devuelve < 0 si <parameter>cadena1</parameter> es menor que
+ <parameter>cadena2</parameter>; > 0 si
<parameter>cadena1</parameter>
+ es mayor que <parameter>cadena2</parameter> y 0 si son iguales.
<example>
<title>Ejemplo de <function>strcasecmp</function></title>
<programlisting role="php">
-$var1 = "Hello";
-$var2 = "hello";
-if (!strcasecmp ($var1, $var2)) {
+<![CDATA[
+<?php
+$var1 = "Hola";
+$var2 = "hola";
+if (strcasecmp($var1, $var2) == 0) {
echo '$var1 es igual a $var2 en una comparación sin tener en cuenta '
.'mayúsculas o minúsculas';
}
+?>
+]]>
</programlisting>
</example>
</para>
<simpara>
Vea también <function>ereg</function>,
<function>strcmp</function>,
- <function>substr</function>, <function>stristr</function>, y
+ <function>substr</function>, <function>stristr</function>,
<function>strncasecmp</function> y
<function>strstr</function>.
</simpara>
</refsect1>