regon() public static method

Checks REGON National Business Registry Number in Poland
public static regon ( string $check ) : boolean
$check string Value to check
return boolean Success.
Example #1
0
 /**
  * Test the regon method of PlValidation
  *
  * @return void
  */
 public function testRegon()
 {
     $this->assertTrue(PlValidation::regon('590096454'));
     $this->assertFalse(PlValidation::regon('590096453'));
     $this->assertFalse(PlValidation::regon('591096454'));
 }