Bug #13533 Updated: new function

From: Date: Tue, 29 Jan 2002 02:29:06 +0000
Subject: Bug #13533 Updated: new function
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-78407@lists.php.net to get a copy of this message
ID: 13533 User updated by: e@arix.com Reported By: e@arix.com Old Status: Feedback Status: Open Bug Type: Feature/Change Request Operating System: Linux PHP Version: 4.0.6 New Comment: strset("This is a sample haystack", "ixbt") returns 3 because "i" was found in the haystack. strset("This is a sample haystack", "xbt") returns 0 because none of the characters in "xbt" are found in the haystack strset("This is a sample haystack", "xbts") returns 4 because it finds it at the end of "this" syntax: strset(haystack, needles) essentially strset is a function that iterates through the needles testing for the presence of each in the haystack. Previous Comments: ------------------------------------------------------------------------ [2002-01-28 21:12:07] yohgaki@php.net Could you explain more clearly with examples? ------------------------------------------------------------------------ [2001-10-03 17:20:09] e@arix.com would just like to suggest creating a new function (perhaps called strset) that takes a haystack as its first parameter and a string of needles i.e. a string each of whose characters will be looked for in the haystack. finding ANY of those characters the function should return the index. would be very useful to have this. - erick ------------------------------------------------------------------------ Edit this bug report at http://bugs.php.net/?id=13533&edit=1

« previous php.dev (#78407) next »