PHP Help
PHP Help
Out of context: Reply #3
- Started
- Last post
- 7 Responses
- effour0
hmm. still no worky.
I guess the main question i have is...
This works:
$patterns = '/\width=".*?"/';
$replacements = 'width=""';
$newstring = preg_replace($patterns, $replacements, $string);This does not:
$patterns = '/\height=".*?"/';
$replacements = 'height=""';
$finalstring = preg_replace($patterns, $replacements, $newstring);They are the same code, but it only strips the width...why?