<?php $p='dir/dir2/dir3/'; $p = trim($p, '/'); echo $p;
You have javascript disabled. You will not be able to edit any code.