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