79782655

Date: 2025-10-04 20:27:45
Score: 1
Natty:
Report link

Use split for the shorthand without additional module

$filename = (split '/', $getpath)[-1];

Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Ray Chakrit