<?php function dirname2($path) { $i = strrpos($path,'/'); return substr($path,0,$i); } echo(dirname2('/a/b/c/d'));
You have javascript disabled. You will not be able to edit any code.