Highest power of two that divides a given number | PHP program to find highest power of 2 that divides n . ; Driver Code
< ? php function highestPowerOf2 ( $ n ) { return ( $ n & ( ~ ( $ n - 1 ) ) ) ; } $ n = 48 ; echo highestPowerOf2 ( $ n ) ; ? >