<?php $str1 = "Example-001"; $parts = explode("-",$str1); echo sprintf($parts[0] . '-%03d', $parts[1]+1);
You have javascript disabled. You will not be able to edit any code.