<?php $str = '/x/y/z/s.f'; echo dirname($str);
You have javascript disabled. You will not be able to edit any code.