Posted By

crishnakh on 10/05/10


Tagged

php caracter borrar ultimo


Versions (?)

Borrar ultimo caracter


 / Published in: PHP
 

  1. <?
  2. $cad = "Hola";
  3. $cad = substr ($cad, 0, -1);
  4. echo $cad ; // esto muestra Hol
  5. ?>

Report this snippet  

You need to login to post a comment.