Current location: Hot Scripts Forums » Programming Languages » PHP » Plz help me..String problem


Plz help me..String problem

Reply
  #1 (permalink)  
Old 01-07-05, 03:12 AM
jaishalg jaishalg is offline
Newbie Coder
 
Join Date: May 2004
Posts: 46
Thanks: 0
Thanked 0 Times in 0 Posts
Plz help me..String problem

Hey all i have one problem

i have one string
e.g
"jaishal is a good guy and monica is a good girl and piyush is a intelligent guy"


now i want to discard the same words from the string and it will appear just one time....
so that the
the string will be

"jaishal is a good guy and monica girl piyush intelligent"


some one plz help me...........
Reply With Quote
  #2 (permalink)  
Old 01-07-05, 04:10 AM
bogomil bogomil is offline
Newbie Coder
 
Join Date: Jan 2005
Location: Sofia, Bulgaria
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Hello
You can transform your string with an array, using explode()
after that you can check with if_exists() any word from this array


Regards
Bogomil
__________________
../more beer
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Dynamic ListBox Problem ... Plz Help me... jaishalg PHP 1 09-14-04 05:23 AM
Declared Functions skipper23 PHP 4 12-17-03 10:06 AM
index page not showing up skipper23 PHP 3 12-15-03 01:10 PM
Tab Problem!!! menwa Everything Java 0 12-06-03 05:53 AM
ASP SQL query string problem CollinAmes ASP 2 10-24-03 11:09 AM


All times are GMT -5. The time now is 05:24 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.