Increment a number without using ++ or + | function that increment the value . ; Invert bits and apply negative sign ; Driver code
< ? php function increment ( $ i ) { $ i = - ( ~ $ i ) ; return $ i ; } $ n = 3 ; echo increment ( $ n ) ; ? >