I have this code that shows all the directories in the previous page.
$dirs = array_filter(glob('../*'), 'is_dir');
foreach ($dirs as $nav) {
echo "<li><a href='$nav'>".$nav."</a></li>";
}
The output is like this:
- ../Gėlės
- ../dddd
- ../images
Is there a function or a way that could be used removing ../
prefix from the output string ?
Thank you.