Posted By

nicolaspar on 07/12/06


Tagged


Versions (?)

Php solo letras


 / Published in: PHP
 

  1. function soloLetras( $str ){
  2. #Funcion levantar(): http://snipplr.com/view/367/levantar-parmetro-beta-01/
  3. return eregi_replace("[^A-Z]","", levantar( $str ) );
  4. }
  5.  
  6. // NEW VERSION
  7. function soloLetras( $str ){
  8. return preg_replace('|[^ a-zA-Z]|',"", levantar( $str ) );
  9. }

Report this snippet  

You need to login to post a comment.