"함수 is url()"의 두 판 사이의 차이

(새 문서: ;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...)
 
1번째 줄: 1번째 줄:
[[분류: Validation]]
[[분류: URL]]
;is_url()
;is_url()



2015년 7월 1일 (수) 11:21 판

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 }}