PHP » PYTHON |
login |
register |
about
|
pos = haystack.upper().find(needle.upper(), offset) # The offset is optional if pos < 0: # not found return None else: return haystack[pos:] DescriptionReturns all of haystack from the first occurrence of needle to the end. Parameters
needle and haystack are examined in a case-insensitive manner. Return ValuesReturns the matched substring. If needle is not found, returns FALSE. Changelog
Examples
Example #1 stristr() example
<?php
Example #2 Testing if a string is found or not
<?php
Example #3 Using a non "string" needle
<?php
Notes
See Also
|
more
Recently updated
more
Most requested
more
Last requests
|