note 20017 added to function.trim

From: Date: Tue, 19 Mar 2002 14:30:54 +0000
Subject: note 20017 added to function.trim
Groups: php.notes 
Request: Send a blank email to php-notes+get-27952@lists.php.net to get a copy of this message
If you want to totally stop windows (dunno about other os's) peeps from adding spaces (say, you need to check there name against a special one to stop impersonations) use this: $nick = ereg_replace("[\r\n\t\v\  ]", "", trim($nick)); It has the alt code 0160 added to it -- http://www.php.net/manual/en/function.trim.php http://master.php.net/manage/user-notes.php?action=edit+20017 http://master.php.net/manage/user-notes.php?action=delete+20017 http://master.php.net/manage/user-notes.php?action=reject+20017

« previous php.notes (#27952) next »