PHPize Online / SQLize Online  /  SQLtest Online

A A A
Share      Blog   Popular
Copy Format Clear
Copy Clear
Copy Format Clear
<?php $path = 'D:\domains\99ballov/frontend/web//images/user/76/support/Screenshot_20211020-143428_WhatsApp_1637057308.jpg'; // using preg_match preg_match('/\/([^\/]+)$/', $path, $matches); echo $matches[1].PHP_EOL; // using basename echo basename($path).PHP_EOL;
Show:  
Copy Clear