SproutCMS

This is the code documentation for the SproutCMS project

function binary()

Checks that a value is binary; either a '1' or a '0'.

Usage

void Validity::binary ( string $val );

Example

$valid->check('active', 'Validity::binary')

Arguments

  1. string $val

Exceptions thrown

Return value

  • void