kuvardin/data-filter

There is no license information available for the latest version (dev-master) of this package.

Simple PHP data filter

dev-master 2024-11-30 13:17 UTC

This package is auto-updated.

Last update: 2024-11-30 13:17:48 UTC


README

Usage

<?php
require 'vendor/autoload';

$zero_to_null = true;
$user_id = Kuvardin\DataFilter::getInt($_POST['id'] ?? null, $zero_to_null);
if ($user_id !== null) {
    // ...
}