File: src/TournamentGenerator/functions.php

Recommend this page to a friend!
  Classes of Tomáš Vojík  >  PHP Tournament Bracket Generator  >  src/TournamentGenerator/functions.php  >  Download  
File: src/TournamentGenerator/functions.php
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: PHP Tournament Bracket Generator
Organize the matches of teams in a tournament
Author: By
Last change:
Date: 11 months ago
Size: 139 bytes
 

Contents

Class file image Download
<?php

namespace TournamentGenerator;

// IF NUMBER IS POWER OF 2
function isPowerOf2(int $x) {
    return (
$x !== 0) && ($x&($x-1)) === 0;
}


For more information send a message to info at phpclasses dot org.