<?php $s = 'http://some/really/long/profile/edit/'; if (substr($s, -5) == 'edit/') { $s = substr($s, 0, -5); } echo $s;
You have javascript disabled. You will not be able to edit any code.