note 92200 added to function.preg-replace

From: Date: Tue, 14 Jul 2009 11:40:43 +0000
Subject: note 92200 added to function.preg-replace
Groups: php.notes 
Request: Send a blank email to php-notes+get-158261@lists.php.net to get a copy of this message
This works fine for windows, linux and mac, encoding cp1251 function valid_filename($str) return preg_replace ('/[^0-9a-zа-яіїё\`\~\!\@\#\$\%\^\*\(\)\; \,\.\'\/\_\-]/i', ' ',$str); } can be used html without htmlspetialchars() ---- Server IP: 88.81.245.102 (proxied: 91.196.196.205 1.0 localhost.ua.elro.com:3128 (squid/2.5.STABLE14)) Probable Submitter: 77.123.176.109 ---- Manual Page -- http://www.php.net/manual/en/function.preg-replace.php Edit -- https://master.php.net/note/edit/92200 Del: integrated -- https://master.php.net/note/delete/92200/integrated Del: useless -- https://master.php.net/note/delete/92200/useless Del: bad code -- https://master.php.net/note/delete/92200/bad+code Del: spam -- https://master.php.net/note/delete/92200/spam Del: non-english -- https://master.php.net/note/delete/92200/non-english Del: in docs -- https://master.php.net/note/delete/92200/in+docs Del: other reasons-- https://master.php.net/note/delete/92200 Reject -- https://master.php.net/note/reject/92200 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#158261) next »