Page 1 of 1

Preg replace digits inside string

Posted: Fri Dec 04, 2009 6:59 pm
by lovelf

Code: Select all

 
$foo=str_replace("Content-Length: 1234567890","",$foo);
 
1234567890 vary .... just a line that would erase those numbers sent right after content-length: .

Thanks world

Re: Preg replace digits inside string

Posted: Fri Dec 04, 2009 7:47 pm
by requinix

Code: Select all

$foo = substr($foo, 0, 16);