I want to make an if statement that checks if an object (col_81) contains “specific text” but i can’t use “=” because the col_81 will contain other text.
if it does find the “specific text” i then want to remove it and echo the remaining text. Any ideas?
@NogDogJan 25.2008 — #[url=http://www.php.net/str_replace]str_replace[/url]() if an exact string of text needs to be replaced, [url=http://www.php.net/preg_replace]preg_replace[/url]() if pattern-matching is required.