PHP - Moved: Replace/remove If Starts With
This topic has been moved to PHP Regex.
http://www.phpfreaks.com/forums/index.php?topic=306153.0 Similar TutorialsThis topic has been moved to MySQL Help. http://www.phpfreaks.com/forums/index.php?topic=325939.0 This topic has been moved to PHP Regex. http://www.phpfreaks.com/forums/index.php?topic=351288.0 This topic has been moved to PHP Regex. http://www.phpfreaks.com/forums/index.php?topic=328966.0 This topic has been moved to PHP Regex. http://www.phpfreaks.com/forums/index.php?topic=314913.0 This topic has been moved to PHP Regex. http://www.phpfreaks.com/forums/index.php?topic=321641.0 This topic has been moved to Ajax Help. http://www.phpfreaks.com/forums/index.php?topic=343073.0 This topic has been moved to PHP Regex. http://www.phpfreaks.com/forums/index.php?topic=319445.0 This topic has been moved to mod_rewrite. http://www.phpfreaks.com/forums/index.php?topic=325974.0 This topic has been moved to PHP Regex. http://www.phpfreaks.com/forums/index.php?topic=328353.0 This topic has been moved to PHP Regex. http://www.phpfreaks.com/forums/index.php?topic=316055.0 This topic has been moved to PHP Regex. http://www.phpfreaks.com/forums/index.php?topic=326002.0 This topic has been moved to mod_rewrite. http://www.phpfreaks.com/forums/index.php?topic=307587.0 This topic has been moved to Editor Help (Dreamweaver, Zend, etc). http://www.phpfreaks.com/forums/index.php?topic=349934.0 This topic has been moved to PHP Regex. http://www.phpfreaks.com/forums/index.php?topic=322184.0 This topic has been moved to MySQL Help. http://www.phpfreaks.com/forums/index.php?topic=317444.0 This topic has been moved to PHP Regex. http://www.phpfreaks.com/forums/index.php?topic=356719.0 This topic has been moved to PHP Regex. http://www.phpfreaks.com/forums/index.php?topic=347065.0 This topic has been moved to mod_rewrite. http://www.phpfreaks.com/forums/index.php?topic=359558.0 This topic has been moved to MySQL Help. http://www.phpfreaks.com/forums/index.php?topic=349563.0 I'm working on a register script which has an array of strings that a username can not start with, but the script I'm using checks to see if the items in the array are anywhere in the username. Here's my code. $blockedWordsInUsername = array('mod', 'm0d', 'admin', 'adm1n', '4dm1n'); foreach($blockedWordsInUsername as $username) { if(strstr($_POST['username'], $username) == true && !$error) { $error = '<p style="text-align: center;">Sorry, that username is no longer available.</p>'; } } What I'm trying to do is make it so your name can't start with the items in the array. |