Advertisement
Guest User

Untitled

a guest
Jun 17th, 2019
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.18 KB | None | 0 0
  1. $string = "Anet";
  2.  
  3. if (!preg_match ("/http|https|www|.ru|.com|.net|.info|.org/i", $string)) {
  4.  
  5. echo "Нет ссылки";
  6.  
  7. } else {
  8.  
  9. echo "Есть ссылка";
  10.  
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement