Method: v::string

Core method to create a new validator

Info

Syntax

v::string($string, $options)

Parameters

Return (boolean)

Example


if(v::string('superteststring', array(
    'min_length' => 5,
    'max_length' => 9,
    'format' => 'a-z0-9'
))) echo 'The string is valid'