| |
|
|
| |
-
PHP - Elementos estructurales - Función chr( )
-
Esta función toma un valor numérico ASCII como argumento y devuelve el carácter correspondiente.
La función ord( ), por su parte, devuelve el valor numérico ASCII de un carácter.
Ejemplo:
<html>
<head>
<title>función chr( )</title>
</head>
<body bgcolor="#eceaf3">
<font face = "verdana" size='+1'>
<pre>
<?php
echo chr(65), "<br/>";
echo ord("G"), "<br/>";
?>
</pre>
</font>
</body>
</html>
 |
|
Ultima actualisación: Tue, 24 ▪ May ▪ 2011
|
|
|
|