PHP Classes
elePHPant
Icontem

File: Example

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Martin Lacroix  >  Calculus  >  Example  >  Download  
File: Example
Role: Example script
Content type: text/plain
Description: How to use
Class: Calculus
Calculate the count of numbers with unique digits
Author: By
Last change:
Date: 4 years ago
Size: 477 bytes
 

Contents

Class file image Download
<?php
$a
= Calculus::nbOfNumbersWithUniqueDigits(465, 999); # Expected 388
$b = Calculus::nbOfNumbersWithUniqueDigits(100, 770); # Expected 488
$c = Calculus::nbOfNumbersWithUniqueDigits(699, 705); # Expected 5
$d = Calculus::nbOfNumbersWithUniqueDigits(245600, 322800); # Expected 13140
$e = Calculus::nbOfNumbersWithUniqueDigits(0, 100, FALSE); # Expected 91
$f = Calculus::nbOfNumbersWithUniqueDigits(0, 100, TRUE); # Expected 72
?>