holyearth Posted December 11, 2006 Share Posted December 11, 2006 Let's say that $information = $broughtinand that$broughtin = 'Cat jumps very high'If I print $information I want it to remove the word "very"So it should print:Cat jumps highHow can I tell it to remove a certain word (in this case "very")?Thanks in advance! Quote Link to comment Share on other sites More sharing options...
utexas_pjm Posted December 11, 2006 Share Posted December 11, 2006 [code]$cleanString = str_replace('very', '', $string); [/code] Quote Link to comment Share on other sites More sharing options...
holyearth Posted December 11, 2006 Author Share Posted December 11, 2006 Thanks utexasI appreciate your help.This board rocks! Quote Link to comment Share on other sites More sharing options...
craygo Posted December 11, 2006 Share Posted December 11, 2006 Use str_replace[code]$text = "Cat jumps very high";$new = str_replace("very", "", $text);echo $new;[/code]Ray Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.