Binary representation of a given number | Function to convert decimal to binary number ; Driver code
< ? php function bin ( $ n ) { if ( $ n > 1 ) bin ( $ n >> 1 ) ; echo ( $ n & 1 ) ; } bin ( 131 ) ; echo " STRNEWLINE " ; bin ( 3 ) ;