<?php $string = "opening-ceremony-600x450.d20140220-u162540.jpg'"; $removeTimestamp = strlen($string); $string = substr_replace($stringToReplace, ".jpg", 0, $removeTimestamp); echo $string;
You have javascript disabled. You will not be able to edit any code.