Initial Code:
require_once 'datavalidator/validator.class.php';
$validator = new Validator();

$dataArray = array(
    'number_normal' => 5,
    'number_less_then_min' => 1,
    'number_null_can_be_null' => 0,
    'number_float_when_int_needed' => 7.1,
    'number_null_can_not_be_null' => 0
);
$validator->AddDataContainer($dataArray);

//int 5 normal
$validator->AddNumericInt('number_normal');

// int less then minimum
$validator->AddNumericInt('number_less_then_min')
->SetMin(16)
->SetMax(90);

// int 0 and can be null with min
$validator->AddNumericInt('number_null_can_be_null')
->IsRequired(1)
->SetMin(5);

//float when int is needed
$validator->AddNumericInt('number_float_when_int_needed')
->IsRequired(0)
->SetMin(6);

//int 0 when cannot be null
$validator->AddNumericInt('number_null_can_not_be_null')
->IsRequired(0);

//STRING
$dataArray = array(
    'string_normal' => 'a',
    'string_smaller_then_min' => 'be',
    'string_alphabetic_with_digits' => 'Henry8',
    'string_no_spaces_with_pointing' => 'Jane:|',
    'string_with_pointing_on_no_pointing_setting' => 'Come2me!',

);
 $validator->AddDataContainer($dataArray);

// Normal string
$validator->AddStringAlphabetic('string_normal')
->IsRequired(0);

// string smaller then minLen
$validator->AddStringAlphabetic('string_smaller_then_min')
->IsRequired(0)
->SetMinLen(4);

// string alphabetic but with digits
$validator->AddStringAlphabetic('string_alphabetic_with_digits')
->IsRequired(0)
->SetMinLen(4)
->SetMaxLen(12)
->SetPointingAllowedFlag(0);

// string alphabetic without spaces and with pointing on no-spaces setting
$validator->AddStringAlphabetic('string_no_spaces_with_pointing')
->IsRequired(0)
->SetMinLen(4)
->SetMaxLen(12)
->SetSpacesAllowedFlag(0)
->SetPointingAllowedFlag(1);

// string alphanumeric without spaces and with pointing on no spaces + no pointing setting
$validator->AddStringAlphanumeric('string_with_pointing_on_no_pointing_setting')
->IsRequired(0)
->SetMinLen(4)
->SetMaxLen(20)
->SetSpacesAllowedFlag(0)
->SetPointingAllowedFlag(0);

//EMAIL
$data = array(
    'email_normal' => 'myemail@google.com',
    'email_with_wrong_symbol' => 'my!email@google.com',
);

$validator->AddDataContainer($data);

// normal email

$validator->AddEmail('email_normal');

// wrong symbols
$validator->AddEmail('email_with_wrong_symbol');

//URL
$data = array(
    'url_normal' => 'www.google.com',
    'url_with_properties' => 'https://accounts.google
    .com/ServiceLogin?service=mail&passive=true&rm=false&continue=https://mail.google.com/mail/&ss=1&scc=1<mpl=default<mplcache=2',
    'url_with_wrong_symbol' => 'www.g!ogle.com',
);

$validator->AddDataContainer($data);
// normal
$validator->AddUrl('url_normal');

// url with properties
$validator->AddUrl('url_with_properties');

// contains wrong symbol
$validator->AddUrl('url_with_wrong_symbol');
$validator->Validate();

if($validator->GetHasErrorStatus()){
    $errors = $validator->GetErrorArray();
    foreach ($errors as $error){
        echo "'{$error->GetFieldName()}' - ".$error->ToString().'
'; } }


Output:
'number_less_then_min' - Value of field number_less_then_min cannot be less then 16
'number_float_when_int_needed' - Wrong subtype of field: number_float_when_int_needed. Required: int
'number_null_can_not_be_null' - Field number_null_can_not_be_null cannot be null
'string_smaller_then_min' - Length of field string_smaller_then_min should be more then 4
'string_alphabetic_with_digits' - Field string_alphabetic_with_digits contains wrong symbols: only letters are allowed
'string_with_pointing_on_no_pointing_setting' - Field string_with_pointing_on_no_pointing_setting contains wrong symbols: only letters, digits are allowed
'email_with_wrong_symbol' - Email is not valid
'url_with_wrong_symbol' - URL is not valid