$value = ’10/12/2022′; $first_digit = substr($value, 0, 1); $new_value = ($first_digit == ‘0’) ? str_replace(‘0’, ‘972’, $value) : $value; return $new_value;