mirror of
https://github.com/php/doc-es.git
synced 2026-03-26 16:32:13 +01:00
git-svn-id: https://svn.php.net/repository/phpdoc/es/trunk@337928 c90b9560-bf6c-de11-be94-00142212c4b1
70 lines
1.8 KiB
XML
70 lines
1.8 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!-- $Revision$ -->
|
|
<!-- EN-Revision: 96c9d88bad9a7d7d44bfb7f26c226df7ee9ddf26 Maintainer: benjamin Status: ready -->
|
|
<!-- Reviewed: not -->
|
|
<refentry xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://docbook.org/ns/docbook"
|
|
xml:id="function.ord">
|
|
<refnamediv>
|
|
<refname>ord</refname>
|
|
<refpurpose>devuelve el valor ASCII de un caracter</refpurpose>
|
|
</refnamediv>
|
|
|
|
<refsect1 role="description"> &reftitle.description; <methodsynopsis>
|
|
<type>int</type>
|
|
<methodname>ord</methodname>
|
|
<methodparam>
|
|
<type>string</type>
|
|
<parameter>string</parameter>
|
|
</methodparam>
|
|
</methodsynopsis>
|
|
<para> Devuelve el valor ASCII del primer carácter de la <parameter>string</parameter>. </para>
|
|
<para> Esta funcion Complementa a <function>chr</function>. </para>
|
|
</refsect1>
|
|
|
|
<refsect1 role="parameters"> &reftitle.parameters; <para>
|
|
<variablelist>
|
|
<varlistentry>
|
|
<term>
|
|
<parameter>string</parameter>
|
|
</term>
|
|
<listitem>
|
|
<para> Un caracter. </para>
|
|
</listitem>
|
|
</varlistentry>
|
|
</variablelist>
|
|
</para>
|
|
</refsect1>
|
|
|
|
<refsect1 role="returnvalues"> &reftitle.returnvalues; <para> Devuelve el valor ASCII de un
|
|
entero. </para>
|
|
</refsect1>
|
|
|
|
<refsect1 role="examples"> &reftitle.examples; <para>
|
|
<example>
|
|
<title><function>ord</function> ejemplo</title>
|
|
<programlisting role="php">
|
|
<![CDATA[
|
|
<?php
|
|
$str = "\n";
|
|
if (ord($str) == 10) {
|
|
echo "El primer caracter de \$str es un salto de linea.\n";
|
|
}
|
|
?>
|
|
]]>
|
|
</programlisting>
|
|
</example>
|
|
</para>
|
|
</refsect1>
|
|
|
|
<refsect1 role="seealso"> &reftitle.seealso; <para>
|
|
<simplelist>
|
|
<member>
|
|
<function>chr</function>
|
|
</member>
|
|
<member>Un <link xlink:href="&url.asciitable;">ASCII-table</link></member>
|
|
</simplelist>
|
|
</para>
|
|
</refsect1>
|
|
|
|
</refentry>
|