PHPize Online / SQLize Online  /  SQLtest Online

A A A
Share      Blog   Popular
Copy Format Clear
Copy Clear
Copy Format Clear
<?php $url = 'https://www.domain.ru/test-url'; // using preg_match preg_match('(?:^https?:\/\/)(.*)$', $url, $matches); echo $matches[1].PHP_EOL; // using parse_url echo parse_url($url, PHP_URL_PATH);
Show:  
Copy Clear