Respect/Validation — pull request #46 by allmeida (2011-10-18 22:22:00+00:00)
Title: Fixed Int Sanitize Bug and Add Int Filter function

The `int()->sanitize` had a bug \*I think\*;

```php

sanitize('5 bucks') // int(5)
v::int()->sanitize('bucks 5') // int(0)
```

Now we have:

```php

sanitize('5 bucks') // int(5)
v::int()->sanitize('bucks 5') // int(5)
```

Filtering samples:

```php

filter('5 bucks') // int(5)
v::int()->filter('4as5e8s9c5') // int(45895)
v::int()->filter('0sa') // int(0)
v::int()->filter('Teste') // NULL
v::int()->filter('1.5') // int(15)
```
Notes:

* Filter/Sanitize will remove all chars different of numbers.
* Filter only will return something valid, when the value given is numeric or string with digits.
* If you need round float number into a string, like `'1.2'`, you should use the float filter:

```php
filter('1.2') // float(1.2)
$intNumber = v::int()->filter($floatNumber) // int(1);
```

well, I'm in the right way?