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-10-06 13:45 UTC

This package is auto-updated.

Last update: 2024-11-06 14:08:18 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) {
    // ...
}