Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $text = "This is my text.";
- $intext = "This is";
- if (strpos($text, $intext) !== false) {
- echo "OK";
- }
- $text = "This's my text.";
- $intext = "This's my";
- if (strpos($text, $intext) !== false) {
- echo "OK";
- }else{
- echo "NO";
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement