함수 is url()

Jmnote (토론 | 기여)님의 2015년 7월 1일 (수) 11:20 판 (새 문서: ;is_url() ==PHP== 분류: PHP <source lang='PHP'> function is_url($url) { return preg_match("/\b(?:(?:https?|ftp):\/\/|www\.)[-a-z0-9+&@#\/%?=~_|!:,.;]*[-a-z0-9+&@#\/%=~_|]/i",$u...)
(차이) ← 이전 판 | 최신판 (차이) | 다음 판 → (차이)
is_url()

1 PHP

function is_url($url) { return preg_match("/\b(?:(?:https?|ftp):\/\/|www\.)[-a-z0-9+&@#\/%?=~_|!:,.;]*[-a-z0-9+&@#\/%=~_|]/i",$url);
}

2 같이 보기

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}