substr($var, rindex($var, '/', length($var) - 2)) = '';