What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Skype & Technology » Tech Talk » preg_match() help!!!

preg_match() help!!!
Author: Message:
segosa
Community's Choice
*****


Posts: 1407
Reputation: 92
Joined: Feb 2003
RE: preg_match() help!!!
code:
$comment = $_POST['comment'];
$check_for = array('/test/', '/hello/');

foreach ($check_for as $dt_sucks)
{
   if(preg_match($dt_sucks, $comment))
         echo "hello";
   else
         echo "nope";
}

The previous sentence is false. The following sentence is true.
08-23-2008 03:55 PM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
preg_match() help!!! - by Nathan on 08-23-2008 at 03:45 PM
RE: preg_match() help!!! - by segosa on 08-23-2008 at 03:55 PM
RE: preg_match() help!!! - by Nathan on 08-23-2008 at 03:59 PM
RE: preg_match() help!!! - by -dt- on 08-24-2008 at 12:30 AM
RE: RE: preg_match() help!!! - by segosa on 08-24-2008 at 03:28 PM
RE: preg_match() help!!! - by Nathan on 08-24-2008 at 12:39 AM
RE: preg_match() help!!! - by roflmao456 on 08-24-2008 at 01:12 AM
RE: preg_match() help!!! - by andrewdodd13 on 08-24-2008 at 09:08 AM


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On