note 107742 added to function.chr

From: Date: Thu, 01 Mar 2012 09:47:55 +0000
Subject: note 107742 added to function.chr
Groups: php.notes 
Request: Send a blank email to php-notes+get-186443@lists.php.net to get a copy of this message
to remove the ASCII control characters (except "line feed" and "tab") : $tab_chr = array() ; for($control = 0; $control < 32; $control++) { if ($control != 9 && $control != 10) { $tab_chr[]= chr($control) ; } } $tab_chr[]= chr(127) ; $string = str_replace($tab_chr, '', $string); ---- Server IP: 195.221.21.36 Probable Submitter: 212.155.199.228 ---- Manual Page -- http://www.php.net/manual/en/function.chr.php Edit -- https://master.php.net/note/edit/107742 Del: integrated -- https://master.php.net/note/delete/107742/integrated Del: useless -- https://master.php.net/note/delete/107742/useless Del: bad code -- https://master.php.net/note/delete/107742/bad+code Del: spam -- https://master.php.net/note/delete/107742/spam Del: non-english -- https://master.php.net/note/delete/107742/non-english Del: in docs -- https://master.php.net/note/delete/107742/in+docs Del: other reasons-- https://master.php.net/note/delete/107742 Reject -- https://master.php.net/note/reject/107742 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#186443) next »