SproutCMS

This is the code documentation for the SproutCMS project

function positiveInt()

Checks if a value is a positive integer

Usage

void Validity::positiveInt ( string $val );

Example

$valid->check('region_id', 'Validity::positiveInt')

Arguments

  1. string $val
    Value to check

Exceptions thrown

Return value

  • void