What a beautiful day! Report Error. Your message has been sent to W3Schools. W3Schools is optimized for learning and training. Examples might be simplified to improve reading and learning. Tutorials, references, and examples are constantly reviewed to avoid errors, but we cannot warrant full correctness of all content. While using W3Schools, you agree to have read and accepted our terms of use , cookie and privacy policy.
Copyright by Refsnes Data. All Rights Reserved. This behavior is different from that of strstr. Prior to PHP 8. This behavior is deprecated as of PHP 7. Depending on the intended behavior, the needle should either be explicitly cast to string, or an explicit call to chr should be performed. This function returns the portion of string, or false if needle is not found. Example 1 strrchr example. Submit a Pull Request Report a Bug. Parameters haystack The string to search in needle If needle contains more than one character, only the first is used.
Return Values This function returns the portion of string, or false if needle is not found. Changelog Version Description 8.
0コメント