PHP code example of ndamiens / hamac
1. Go to this page and download the library: Download ndamiens/hamac 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/ */
ndamiens / hamac example snippets
Hamac::mac2bin("ae:cb:c7:16:e1:56");
# 192190241759574
Hamac::mac2bin("ae cb-c7 16:E1:56");
# 192190241759574
Hamac::isInRange(
Hamac::mac2bin("ae:cb:c7:16:e1:56"),
Hamac::mac2bin("ae:cb:c7:16:e1:00"),
Hamac::mac2bin("ae:cb:c7:16:e1:ff")
);
# true