Driver code
$ a = "9555" ; $ b = "555" ; $ count = count_carry ( $ a , $ b ) ; if ( $ count == 0 ) echo "0 STRNEWLINE " ; else if ( $ count == 1 ) echo "1 STRNEWLINE " ; else echo $ count , " STRNEWLINE " ; ? >