Hi! Could we please enable some services and cookies to improve your experience and our website?

PHPize Online / SQLize Online  /  SQLtest Online

A A A
Login    Share code      Blog   FAQ

Online Sandbox for SQL and PHP: Write, Run, Test, and Share SQL Queries and PHP Code

Copy Format Clear

Stuck with a problem? Got Error? Ask AI support!

Copy Clear
Copy Format Clear
<?php $url = 'http://link.ovk-term.ru:8081/hs/OnlineStore/file/933e03a2-647b-11ef-ab70-a4bf01751b0e'; // using preg_match preg_match('/(\/[^\/]+)$/', $url, $matches); echo $matches[1].PHP_EOL; // using parse_url echo parse_url($url, PHP_URL_PATH);
Copy Clear