<?php $stringToReplace = 'file.d20140220-u162540.jpg'; $string = substr($stringToReplace, 'file.jpg', 4); echo $string;
You have javascript disabled. You will not be able to edit any code.