note 102757 deleted from function.ctype-alnum by danbrown

From: Date: Thu, 03 Mar 2011 21:58:18 +0000
Subject: note 102757 deleted from function.ctype-alnum by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-177548@lists.php.net to get a copy of this message
Note Submitter: roger at cornwellinternet dot co dot uk ---- I think your test <?php if(!ctype_alnum(str_replace($aValid), '', $sUser)) ?> has the brackets in the wrong place. the one after $aValid should be moved to the end. Adding a few spaces to aid legibility, should it not be: <?php if( !ctype_alnum( str_replace($aValid, '', $sUser) ) ) ?> Aside from that, a useful technique, thank you. Roger Cornwell

« previous php.notes (#177548) next »