Ver Mensaje Individual
  #4 (permalink)  
Antiguo 05/06/2006, 16:54
Avatar de GatorV
GatorV
$this->role('moderador');
 
Fecha de Ingreso: mayo-2006
Ubicación: /home/ams/
Mensajes: 38.567
Antigüedad: 17 años, 11 meses
Puntos: 2135
Pues si solo es un campo de texto lo puedes hacer por campo p.e.

Código PHP:
$input $_POST['campo'];
$abbr = array( "inp""inper" );
$completo = array ('Instituto Nacional de Pediatría''Instituto Nacional de Perinatología');
$i 0;
foreach( 
$abbr as $institucion ) {
    if( 
strpos$input$institucion ) !== false )
           
$input str_replace$instiucion$completo[$i], $input );
    
    
$i++;