PHP code example of jsnlib / popcount
1. Go to this page and download the library: Download jsnlib/popcount 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/ */
jsnlib / popcount example snippets
session_start();
b\Popcount;
// $popcount->clean();
$popcount->reset_seconds = 6;
$ID = "100";
$count = 67;
echo "[ 指定重算的時間:{$popcount->reset_seconds}秒 ]<br>";
echo "目前參觀的是編號{$ID},參觀人氣{$count}:<br>";
echo "要執行+1嗎? " . $popcount->add("experience", $ID);
echo "<br><br><br>";
$popcount->reset_seconds = 2;
$ID = "101";
$count = 67;
echo "[ 指定重算的時間:{$popcount->reset_seconds}秒 ]<br>";
echo "目前參觀的是編號{$ID},參觀人氣{$count}:<br>";
echo "要執行+1嗎? " . $popcount->add("experience", $ID);
echo "<br>";