PHP code example of tayron / integer-object
1. Go to this page and download the library: Download tayron/integer-object 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/ */
tayron / integer-object example snippets
use Tayron\IntegerObject;
try{
$numA = new IntegerObject('100');
$numB = new IntegerObject(1);
var_dump($numA);
var_dump($numB);
var_dump($numA->isEquals($numB));
$numA = new IntegerObject('1');
var_dump($numA->isEquals($numB));
var_dump($numA->length());
var_dump($numB->length());
}catch(\Exception $e){
echo $e->getMessage();
}