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

Popular posts from this blog

iis - ASP.Net Core CreatedAtAction in HttpPost action returns 201 but entire request ends with 500 -

gcc - Neither ld wrap nor LD_PRELOAD working to intercept system call -

ssh - Vagrant Windows - ssh_exchange_identification: read: Connection reset by peer -