note 128388 added to function.basename
| From: | clayrabbit2 at gmail dot com | Date: | Wed, 12 Apr 2023 18:00:57 +0000 |
| Subject: | note 128388 added to function.basename | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-220344@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/128388
Del: integrated -- https://main.php.net/note/delete/128388/integrated
Del: useless -- https://main.php.net/note/delete/128388/useless
Del: bad code -- https://main.php.net/note/delete/128388/bad+code
Del: spam -- https://main.php.net/note/delete/128388/spam
Del: non-english -- https://main.php.net/note/delete/128388/non-english
Del: in docs -- https://main.php.net/note/delete/128388/in+docs
Del: other reasons-- https://main.php.net/note/delete/128388
Reject -- https://main.php.net/note/reject/128388
Search -- https://main.php.net/manage/user-notes.php