note 70753 added to function.str-replace

From: Date: Thu, 26 Oct 2006 15:21:15 +0000
Subject: note 70753 added to function.str-replace
Groups: php.notes 
Request: Send a blank email to php-notes+get-119138@lists.php.net to get a copy of this message
IF You Can Shorter below, Test it Before and Publish IT I tested on my PHP 5.x <?PHP $username="I9a2m3in8Be72t7*^w*&^ee^n%$$#%$)_+|)*13565686868sadsd/\=-"; //or $username=replacement($_POST['username']); echo $username; function replacement($string){ $replace=array(''); $rejected=array("\\",";;","}}",":",",","[","]","{","}",">", "$","<","/","//","~","`","!","@","#","%","^", "&","*",")","(","-","_","+","=","|","0","1","2","3","4","5", "6","7","8","9"); return str_replace($rejected,$replace, $string); } ?> OutPut: Iam in Between ---- Server IP: 216.194.113.175 Probable Submitter: 207.226.41.22 ---- Manual Page -- http://www.php.net/manual/en/function.str-replace.php Edit -- https://master.php.net/note/edit/70753 Del: integrated -- https://master.php.net/note/delete/70753/integrated Del: useless -- https://master.php.net/note/delete/70753/useless Del: bad code -- https://master.php.net/note/delete/70753/bad+code Del: spam -- https://master.php.net/note/delete/70753/spam Del: non-english -- https://master.php.net/note/delete/70753/non-english Del: in docs -- https://master.php.net/note/delete/70753/in+docs Del: other reasons-- https://master.php.net/note/delete/70753 Reject -- https://master.php.net/note/reject/70753 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#119138) next »