Here is the asp code:
on error resume next
nFee = Cint(Mid(sRate,2,1))
nMonth = Cint(Mid(sRate,3,1))
nRate = Cint(Mid(sRate,4,1))
nState = Cint(Mid(sRate,5,1))
nInt = Cint(Mid(sRate,6,1))
if err.number > 0 then
nFee = 0
nMonth = 1
nRate = 1
nState = 1
nInt = 1
end if
on error goto 0
Does anyone know any similar error handling function in php that can work on the code above?