note 72685 added to function.strstr

From: Date: Mon, 29 Jan 2007 21:21:50 +0000
Subject: note 72685 added to function.strstr
Groups: php.notes 
Request: Send a blank email to php-notes+get-122333@lists.php.net to get a copy of this message
After some interesting projects that required the use of requiring only the chars of any given string i thought i'll just put it up. Simple code. <?php function strchrs($str) { $n = strlen($str); $w = ""; for($i = 0; $i < $n; $i ++) { if(!is_numeric($str[$i])) $w .= $str[$i]; } return $w; } ?> Hey I'm building a new DB & Datasource abstraction layer, the framework's been built does anyone wannt help out. I need someone with a SYBASE database, and I'm also working on some new ways of dealing with XML contact me as I don't have much time to complete it. It's actually 3x faster than MDB2, and because it doesn't require PEAR its easier to install. Only OOP developers plz. ---- Server IP: 83.138.144.80 Probable Submitter: 80.229.95.154 ---- Manual Page -- http://www.php.net/manual/en/function.strstr.php Edit -- https://master.php.net/note/edit/72685 Del: integrated -- https://master.php.net/note/delete/72685/integrated Del: useless -- https://master.php.net/note/delete/72685/useless Del: bad code -- https://master.php.net/note/delete/72685/bad+code Del: spam -- https://master.php.net/note/delete/72685/spam Del: non-english -- https://master.php.net/note/delete/72685/non-english Del: in docs -- https://master.php.net/note/delete/72685/in+docs Del: other reasons-- https://master.php.net/note/delete/72685 Reject -- https://master.php.net/note/reject/72685 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#122333) next »