ID: 13533
User updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
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] [EMAIL PROTECTED]

Could you explain more clearly with examples?

------------------------------------------------------------------------

[2001-10-03 17:20:09] [EMAIL PROTECTED]

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


-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to