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:
Nathan
Veteran Member
*****

Avatar
Yeah, "large dimensions" ;)

Posts: 2984
Reputation: 76
– / Male / Flag
Joined: Apr 2005
O.P. preg_match() help!!!
Hello there,

I can't figure out for the life of me, to get preg_match() to work with arrays for example (this is not my real code, just something im exampling with off the top of my head)

code:

$comment = $_POST['comment'];
$check_for = array('/test/', '/hello/');

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


This post was edited on 08-23-2008 at 03:46 PM by Nathan.
Touch Innovation - touch friendly programs/applications for the windows mobile!


08-23-2008 03:45 PM
Profile E-Mail PM Web 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