Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $num = 1; // it always is either 0 or 1
- if ( $num == 1 ){
- $num = 0
- } else {
- $num = 1;
- }
- function toggleNumber( $num ) {
- return $num ^= 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement