I have a variable like
$dir = "dir1/dir2/dir3"etc..etc..
I want to extract dir1 from this string, which is the root directory name. How can I do this using PHP?
I have a variable like
$dir = "dir1/dir2/dir3"etc..etc..
I want to extract dir1 from this string, which is the root directory name. How can I do this using PHP?