Advertisement
Guest User

Untitled

a guest
Jun 18th, 2019
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. $text = "This is my text.";
  2. $intext = "This is";
  3.  
  4. if (strpos($text, $intext) !== false) {
  5.  
  6. echo "OK";
  7.  
  8. }
  9.  
  10. $text = "This's my text.";
  11. $intext = "This's my";
  12.  
  13. if (strpos($text, $intext) !== false) {
  14.  
  15. echo "OK";
  16.  
  17. }else{
  18. echo "NO";
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement