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