Validate url

Uses filter_var() function to validate given URL. Read more.

php
fork add to bundle source
function check_url($url) { return filter_var($url, FILTER_VALIDATE_URL) ? true : false; }

usage

load_function('check_url'); check_url('https://example.com'); // (true) check_url('http_s://example_com/(not-ok)'); // (false)
← how to use this in app?
create log ...inout