url - Replace schema in symfony -
is there possibility in symfony2 can create http://some.url/ url some.url (without schema , slashes)?
the simplest solution str_replace(["http://", "https://", "/"], ['','', ''], 'http://some.url'); don't (
there builtin php function doc:
$domain = parse_url($url, php_url_host);
Comments
Post a Comment