Toggle navigation
Dashboard
Dashboard Tracker
Add / Edit My Forums
System Announcements
Discussion
Active Thread Feed
Top Threads Today
Top Threads This Week
Top Threads Library
Go!
View All
View All
Login
Logout
Home
Forums Index
Server Side
/
PHP Server Side Scripting
12:05 pm Aug 9, 2026
This page requires javascript.
Forum Moderators:
coopster
Message Too Old, No Replies
A simple string filter query
arunrajiah
Msg#:4468729
4:55 pm on Jun 23, 2012
(gmt 0)
I have a string "i am a good boy".
If i found a word "good" in the above string i need to display it.
How can i do that?
Thanks in advance
arunrajiah
Msg#:4468760
8:10 pm on Jun 23, 2012
(gmt 0)
Can anyone please help me on this?
incrediBILL
Msg#:4468763
8:16 pm on Jun 23, 2012
(gmt 0)
You would use a case insensitive string search function to locate the word "good"
g1smd
Msg#:4468768
9:36 pm on Jun 23, 2012
(gmt 0)
Several PHP commands come to mind:
stristr()
preg_match()
arunrajiah
Msg#:4468786
10:50 pm on Jun 23, 2012
(gmt 0)
Thanks g1smd
Join The Conversation
Register
For Free! -
Become a
Pro Member
!
See forum categories
-
Enter the Forum
Moderators and Top Contributors
Moderator List
| Top Contributors:
This Week
,
This Month
,
Jul
,
Jun
,
Archive
,
Top 100 All Time
,
Top Voted Members
Hot Threads This Week
August 2026 Google Search Observations
AdSense Earnings and Observations - August 2026
July 2026 Google Search Observations
EU AI Transparency Rules Now in Effect
Do you still build external links in 2026?
Booking Feels Google AI Effects - Plans SEO decline
AdSense Earnings and Observations - July 2026
How has AI changed your work?
Home
Forums Index
Server Side
/
PHP Server Side Scripting
12:05 pm Aug 9, 2026