PHP » PYTHON |
login |
register |
about
|
try: pos = next(i for i,x in enumerate(haystack) if x in char_list) return haystack[pos:] except: return None strpbrk(PHP 5) strpbrk — Search a string for any of a set of characters Description
string strpbrk
( string $haystack
, string $char_list
)
strpbrk() searches the haystack string for a char_list . Parameters
Return ValuesReturns a string starting from the character found, or FALSE if it is not found. Examples
Example #1 strpbrk() example
<?php
|
more
Recently updated
more
Most requested
more
Last requests
|