0

I have a line like this: C:\fakepath\Хэнчетт, Листуон. Vue.js в действии 2019.pdf

How can I write this part of the string to a variable? Хэнчетт, Листуон. Vue.js в действии 2019.pdf

Sergey karpov
  • 135
  • 2
  • 6
  • Use `basename()` to get the filename from a path or URL. – Barmar Oct 27 '21 at 17:13
  • [`pathinfo()`](https://www.php.net/manual/en/function.pathinfo.php) Can be found in the PHP manual. Splits a path into its constituent parts – RiggsFolly Oct 27 '21 at 17:15
  • On which operating system is the PHP code running? And that part (component) of a file-system path is called basename as others have commented and it is the last path component. – hakre Oct 27 '21 at 17:18

0 Answers0