<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
  <title></title>
</head>
<body text="#000000" bgcolor="#ffffff">
Hola Luciano,<br>
<br>
Los strings se pueden recorrer como si fueran arrays, por ej:<br>
<br>
$texto = 'hola';<br>
echo $texto[0]; //Imprime "h"<br>
echo $texto[1]; //Imprime "o"<br>
echo $texto[2]; //Imprime "l"<br>
echo $texto[3]; //Imprime "a"<br>
<br>
Saludos!<br>
<br>
On 04/09/10 09:47, Luciano Hillcoat wrote:
<blockquote cite="mid:97247cd517bde0e819221d2b0381a201@localhost"
 type="cite">
  <p>Hola, nescesito ayuda en el ejercicio 6, quiero cortar una
variable en muchos caracteres en un array.</p>
  <p>Ej:</p>
  <p>$variable = "Hola"</p>
  <p>y que la array quede:</p>
  <p>$array[1]="H";</p>
  <p>$array[2]="o";</p>
  <p>$array[3]="l";</p>
  <div>
  <p>$array[4]="a";</p>
  <p>Cosa que luego, recorrer el array y mostrar el código ascii del
caracter que pasa.</p>
  <p>¿Como lo hago?</p>
  <hr>
  <p><span style="color: rgb(0, 51, 0);">Luciano Hillcoat</span> ‹<a
 moz-do-not-send="true" href="mailto:lucman@lucman.com.ar">lucman@lucman.com.ar</a>›
&amp; ‹<a moz-do-not-send="true"
 href="mailto:luciano.hillcoat@gmail.com">luciano.hillcoat@gmail.com</a>›
  <br>
  <a moz-do-not-send="true" href="http://www.lucman.com.ar">Sitio web</a></p>
  </div>
  <pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
Php-avanzado mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Php-avanzado@pato2.fi.mdp.edu.ar">Php-avanzado@pato2.fi.mdp.edu.ar</a>
<a class="moz-txt-link-freetext" href="http://www3.fi.mdp.edu.ar/cgi-bin/mailman/listinfo/php-avanzado">http://www3.fi.mdp.edu.ar/cgi-bin/mailman/listinfo/php-avanzado</a></pre>
</blockquote>
<br>
</body>
</html>