PHPize Online / SQLize Online  /  SQLtest Online

A A A
Share      Blog   Popular
Copy Format Clear
Copy Clear
Copy Format Clear
<?php $domain = "yandex.ru"; $result = []; if (empty($domain)) return $result; $result = parse_url($domain); if ($result['scheme']) { $result['name'] = $result['host']; unset($result['host']); } else { $result['scheme'] = 'http'; $result['name'] = $result['path']; } var_dump($result);
Show:  
Copy Clear