PHP » PYTHON |
login |
register |
about
|
pos = haystack.find(needle, offset) # The offset is optional if pos < 0: # not found return None else: return haystack[pos:] strstr(PHP 4, PHP 5) strstr — Find first occurrence of a string DescriptionReturns part of haystack string from the first occurrence of needle to the end of haystack .
Parameters
Return ValuesReturns the portion of string, or FALSE if needle is not found. Changelog
Examples
Example #1 strstr() example
<?php
See Also
|
more
Recently updated
more
Most requested
more
Last requests
|