<?php $str = '//home/foo:/bin/sh'; $i = count($str); $pos = strrpos($str, '/'); echo substr($str, 0, $i - $pos);
You have javascript disabled. You will not be able to edit any code.