Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Search keyword from array in variable
Old 01-18-2010, 05:25 PM Search keyword from array in variable
Novice Talker

Posts: 10
Name: Eduards
Trades: 0
Hi i need help to match keywords in variable. i check is there both keywords in text.

PHP Code:
<?
$keywords 
= array(appledog);

$text ="this is text where i need match apple and dog";

i need check if there is a $keywods in  $text,

?>
result can be yes or no

what functions i need to use?

thnx
phpcoder848 is offline
Reply With Quote
View Public Profile Visit phpcoder848's homepage!
 
 
Register now for full access!
Old 01-18-2010, 05:35 PM Re: Search keyword from array in variable
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,385
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
preg-match
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Reply     « Reply to Search keyword from array in variable
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.16682 seconds with 12 queries