Return to Snippet

Revision: 67073
at August 6, 2014 20:31 by dmkim


Initial Code
$s = '/dirname/subdir/filename.txt';

$dirname = strrev(strstr(strrev($s),'/'));

Initial URL

                                

Initial Description
Extract directory from path

Initial Title
Extract directory from path

Initial Tags

                                

Initial Language
PHP