Count set bits in an integer | Driver code
< ? php $ t = log10 ( 4 ) ; $ x = log ( 15 , 2 ) ; $ tt = ceil ( $ t ) ; $ xx = ceil ( $ x ) ; echo ( $ tt ) , " STRNEWLINE " ; echo ( $ xx ) , " STRNEWLINE " ; ? >