Ver Mensaje Individual
  #2 (permalink)  
Antiguo 03/09/2007, 11:30
Avatar de GatorV
GatorV
$this->role('moderador');
 
Fecha de Ingreso: mayo-2006
Ubicación: /home/ams/
Mensajes: 38.567
Antigüedad: 20 años, 4 meses
Puntos: 2135
Re: Expresión Regular

Porque no usas str_replace?

Código PHP:
$width = 100;
$height = 50;
$texto = "width=\"xxx\" height=\"yyy\"";
$var = str_replace( "xxx", $width, $texto );
$var = str_replace( "yyy", $height, $var );

echo 
$var; 
Saludos.