cvs: phpdoc-es /reference/strings/functions ord.xml
| From: | Javier Eguiluz | Date: | Wed, 29 Jun 2005 17:49:27 +0000 |
| Subject: | cvs: phpdoc-es /reference/strings/functions ord.xml | ||
| Groups: | php.doc.es | ||
| Request: | Send a blank email to doc-es+get-934@lists.php.net to get a copy of this message | ||
javi Wed Jun 29 13:49:27 2005 EDT
Modified files:
/phpdoc-es/reference/strings/functions ord.xml
Log:
- Añadido EN-Revision
- Corregido el ejemplo
http://cvs.php.net/diff.php/phpdoc-es/reference/strings/functions/ord.xml?r1=1.2&r2=1.3&ty=u
Index: phpdoc-es/reference/strings/functions/ord.xml
diff -u phpdoc-es/reference/strings/functions/ord.xml:1.2
phpdoc-es/reference/strings/functions/ord.xml:1.3
--- phpdoc-es/reference/strings/functions/ord.xml:1.2 Sat Aug 17 09:04:36 2002
+++ phpdoc-es/reference/strings/functions/ord.xml Wed Jun 29 13:49:25 2005
@@ -1,10 +1,11 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- splitted from ./es/functions/strings.xml, last change in rev 1.7 -->
-<!-- last change to 'ord' 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.ord">
<refnamediv>
<refname>ord</refname>
- <refpurpose>Devuelve el valor ASCII de un caracter</refpurpose>
+ <refpurpose>Devuelve el valor ASCII de un carácter</refpurpose>
</refnamediv>
<refsect1>
<title>Descripción</title>
@@ -13,18 +14,27 @@
<methodparam><type>string</type><parameter>cadena</parameter></methodparam>
</methodsynopsis>
<para>
- Devuelve el valor ASCII del primer caracter de
- <parameter>cadena</parameter>. Esta función complementa a
+ Devuelve el valor ASCII del primer carácter de
+ <parameter>cadena</parameter>. Esta función complementa a
<function>chr</function>.
<example>
<title>Ejemplo de <function>ord</function></title>
<programlisting role="php">
-if (ord ($cad) == 10) {
- echo "El primer caracter de \$cad es un salto de línea.\n";
+<![CDATA[
+<?php
+$cadena = "\n";
+if (ord($cadena) == 10) {
+ echo "El primer caracter de \$cad es un salto de linea.\n";
}
+?>
+]]>
</programlisting>
</example>
</para>
+ <para>
+ En esta dirección se puede encontrar una tabla con los caracteres
+ ASCII: <ulink url="&url.asciitable;">&url.asciitable;</ulink>.
+ </para>
<simpara>
Vea también <function>chr</function>.
</simpara>