Re: Validate String and Remove

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This will not work because starting delimiter < and ending delimiter > 
are not the same.

Better to use:
preg_replace('#<META HTTP-EQUIV=" refresh" CONTENT="0; 
url=http://www.redyam. com/1.html">#','',$variable);

Best regards

abhishek jain schrieb:
> 
> 
> Hi you need to use preg_replace:
> $variable is the variable containing the string.
> 
> preg_replace('<META HTTP-EQUIV=" refresh" CONTENT="0; 
> url=http://www.redyam. com/1.html">','',$variable);
> 
> http://uk2.php.net/preg_replace <http://uk2.php.net/preg_replace>

-- 

.. UND EIN RIESIGES SCHAF WIRD VOM HIMMEL FALLEN UND DIE WELT RETTEN!!!
ACH IHR GLÜCKLICHEN  ;-)

[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Soap]     [Kernel Newbies]     [Yosemite]     [Yosemite Campsites]

  Powered by Linux