note 78891 added to function.preg-match-all

From: Date: Wed, 31 Oct 2007 21:22:48 +0000
Subject: note 78891 added to function.preg-match-all
Groups: php.notes 
Request: Send a blank email to php-notes+get-131884@lists.php.net to get a copy of this message
I use the following to clean unwanted characters and to have only allowed ones in the string: <? preg_match_all ("/[a-zA-Z0-9]*/", $string_in, $string_out_array); $string_out = ""; for ($i=0; $i < sizeof ($string_out_array[0]); $i++) { $string_out .= $string_out_array[0][$i]; } ?> ---- Server IP: 195.54.192.44 Probable Submitter: 83.167.112.8 ---- Manual Page -- http://www.php.net/manual/en/function.preg-match-all.php Edit -- https://master.php.net/note/edit/78891 Del: integrated -- https://master.php.net/note/delete/78891/integrated Del: useless -- https://master.php.net/note/delete/78891/useless Del: bad code -- https://master.php.net/note/delete/78891/bad+code Del: spam -- https://master.php.net/note/delete/78891/spam Del: non-english -- https://master.php.net/note/delete/78891/non-english Del: in docs -- https://master.php.net/note/delete/78891/in+docs Del: other reasons-- https://master.php.net/note/delete/78891 Reject -- https://master.php.net/note/reject/78891 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#131884) next »