An efficient data validator for PHP