Login or Sign Up
Logging in...
Remember me
Log in
Or
Sign Up
Forgot password or user name?
Log in with
Search in titles only
Search in PHP only
Search
Advanced Search
Forums
BYTES
Product Launch
Updates
Developer Toolkit
Member List
Calendar
Today's Posts
Home
Forum
Topic
PHP
How to find whether a substring is present in the big string or Not
How to find whether a substring is present in the big string or Not
Collapse
X
Collapse
Posts
Latest Activity
Photos
Page
of
1
Filter
Time
All Time
Today
Last Week
Last Month
Show
All
Discussions only
Photos only
Videos only
Links only
Polls only
Events only
Filtered by:
Clear All
new posts
Previous
template
Next
gauravgmbhr
New Member
Join Date:
Feb 2007
Posts:
107
#1
How to find whether a substring is present in the big string or Not
Mar 12 '07, 11:37 AM
How to find whether a substring is present in the big string or Not
The function that finds the substring inside the string should return in true Or False
ronverdonk
Recognized Expert
Specialist
Join Date:
Jul 2006
Posts:
4259
#2
Mar 12 '07, 11:44 AM
You'd better brush up your PHP language skills!
See PHP documentation on the
strpos
function.
Ronald :cool:
Comment
Post
Cancel
gauravgmbhr
New Member
Join Date:
Feb 2007
Posts:
107
#3
Mar 12 '07, 11:49 AM
Originally posted by
ronverdonk
You'd better brush up your PHP language skills!
See PHP documentation on the
strpos
function.
Ronald :cool:
this function i know very well
but i was lookin for some direct function
and the function has to be a perl-compatible function
Comment
Post
Cancel
ronverdonk
Recognized Expert
Specialist
Join Date:
Jul 2006
Posts:
4259
#4
Mar 12 '07, 12:08 PM
Then use the preg_* functions, like
[php]
$pattern = '/abcdef/';
preg_match($pat tern, $text);
[/php]
Ronald :cool:
Comment
Post
Cancel
gauravgmbhr
New Member
Join Date:
Feb 2007
Posts:
107
#5
Mar 13 '07, 05:55 AM
Originally posted by
ronverdonk
Then use the preg_* functions, like
[php]
$pattern = '/abcdef/';
preg_match($pat tern, $text);
[/php]
Ronald :cool:
THANX VERY MUCH
Comment
Post
Cancel
ronverdonk
Recognized Expert
Specialist
Join Date:
Jul 2006
Posts:
4259
#6
Mar 13 '07, 09:51 AM
You are welcome.
Ronald :cool:
Comment
Post
Cancel
Previous
template
Next
Working...
OK
OK
Cancel
👍
👎
☕
Comment