...

View Full Version : Resolved removing words



cosmicsea
01-17-2010, 02:32 PM
Hi im am using this code
<?php print($link_data['display_name']); ?>
right here, and what it does is it prints out titles for my links. Anyway what im trying to do is remove a single word from showing in the text when it is generated. so for example lets say I have the text "Server side development" showing from using that code above and I do not want "development" to show at all, just show "Server side". How can I do that? Can anybody help me? Thanks.

sir pannels
01-17-2010, 02:34 PM
Hi,



$text = str_replace("development", "", $link_data['display_name']);
print $text;

cosmicsea
01-17-2010, 02:40 PM
Hi,



$text = str_replace("development", "", $link_data['display_name']);
print $text;

Nice, That worked great. Thanks alot.
I tried a str_replace before I posted this and it didn't work, I obviously didn't do it right so thanks for the help. :thumbsup:

sir pannels
01-17-2010, 02:41 PM
Your welcome :)



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum