<?php $hostname = 'hostname.local/a/b/c'; var_dump( parse_url($hostname, PHP_URL_HOST) );
You have javascript disabled. You will not be able to edit any code.