PHP code example of blackcattools / yii2-base
1. Go to this page and download the library: Download blackcattools/yii2-base library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
blackcattools / yii2-base example snippets
use blackcattools\base\Bit;
$value = 10; //bits 1 and 3 active
Bit::test(1,$value); //return true
Bit::test(0,$value); //return false
Bit::test(3,$value); //return true
Bit::test(9,$value); //return false