note 128389 added to function.basename
| From: | clayrabbit2 at gmail dot com | Date: | Wed, 12 Apr 2023 18:07:47 +0000 |
| Subject: | note 128389 added to function.basename | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-220345@lists.php.net to get a copy of this message | ||
One line alternative for unicode filenames:
<?php
preg_replace('#.*?([^'.DIRECTORY_SEPARATOR.']*)'.DIRECTORY_SEPARATOR.'*$#',
'$1', $path);
----
Server IP: 45.112.84.4
Probable Submitter: 80.90.13.130 (proxied: 178.72.91.69)
----
Manual Page -- https://php.net/manual/en/function.basename.php
Edit -- https://main.php.net/note/edit/128389
Del: integrated -- https://main.php.net/note/delete/128389/integrated
Del: useless -- https://main.php.net/note/delete/128389/useless
Del: bad code -- https://main.php.net/note/delete/128389/bad+code
Del: spam -- https://main.php.net/note/delete/128389/spam
Del: non-english -- https://main.php.net/note/delete/128389/non-english
Del: in docs -- https://main.php.net/note/delete/128389/in+docs
Del: other reasons-- https://main.php.net/note/delete/128389
Reject -- https://main.php.net/note/reject/128389
Search -- https://main.php.net/manage/user-notes.php