note 109879 added to language.functions

From: Date: Thu, 30 Aug 2012 13:56:33 +0000
Subject: note 109879 added to language.functions
Groups: php.notes 
Request: Send a blank email to php-notes+get-190274@lists.php.net to get a copy of this message
<?php // Contains Bad // Parameters textToCheck // textToCheck is the name which will be searched // for bad characters // Returns true or false. // True Means Bad Character is found // False Means Bad Character Is Not Found function containsbad ($textToCheck) { foreach (array( "..", "\\", "/", "...", "'", "*", ";", ' ', "(", ")", "_", "-" ) as $value) { $check = strpos($textToCheck, $value); if ($check !== false) { return true; } } return false; } ?> ---- Server IP: 69.147.83.197 Probable Submitter: 109.170.137.202 (proxied: 193.195.25.90) ---- Manual Page -- http://www.php.net/manual/en/language.functions.php Edit -- https://master.php.net/note/edit/109879 Del: integrated -- https://master.php.net/note/delete/109879/integrated Del: useless -- https://master.php.net/note/delete/109879/useless Del: bad code -- https://master.php.net/note/delete/109879/bad+code Del: spam -- https://master.php.net/note/delete/109879/spam Del: non-english -- https://master.php.net/note/delete/109879/non-english Del: in docs -- https://master.php.net/note/delete/109879/in+docs Del: other reasons-- https://master.php.net/note/delete/109879 Reject -- https://master.php.net/note/reject/109879 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#190274) next »