method isUrl documentation in bbn\Str
Checks if the argument is a valid URL string.
Example
X::dump(\bbn\Str::isUrl("http://bbn.so"));
// (string) "https://bbn.so"
X::dump(\bbn\Str::isUrl("bbn.so"));
// (bool) false
function($st)
{
return (bool)filter_var($st, FILTER_VALIDATE_URL);
}
Checks if the argument is a valid URL string. BBN is a suite of PHP and JS libraries and VueJS components - all open-source! bbn.io, build applications, the quick way
This website uses cookies to ensure you get the best experience on our website.
© 2011-2025
BBN Solutions