note 72685 deleted from function.strstr by thiago

From: Date: Tue, 28 Oct 2008 13:40:33 +0000
Subject: note 72685 deleted from function.strstr by thiago
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-145862@lists.php.net to get a copy of this message
Note Submitter: eamon at gizzle dot co dot uk ---- 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.

« previous php.notes (#145862) next »