note 32991 added to function.ereg

From: Date: Fri, 13 Jun 2003 08:25:40 +0000
Subject: note 32991 added to function.ereg
Groups: php.notes 
Request: Send a blank email to php-notes+get-50266@lists.php.net to get a copy of this message
I hope this helps someone, i used it to do a 'LIKE' match using 2 variables: $var1 = "hello"; $var2 = "hello there"; if (ereg($var1, $var2)) { echo "Like Match"; } else { echo "not a Like Match"; } // The Like match above echos 'Like Match' because 'hello' is contained in 'hello there' ---- Manual Page -- http://www.php.net/manual/en/function.ereg.php Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+32991 Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+32991&report=yes Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+32991&report=yes

« previous php.notes (#50266) next »