Skip to content
Snippets Groups Projects
Select Git revision
  • main
  • development
2 results

inputs.php

Blame
  • user avatar
    user authored
    2e01563c
    History
    inputs.php 397 B
    <?php 
    
    
    function checkValue(string $value)
    {
        return isset($value);
    }
    function isNumber(string $value)
    {
        if (checkValue($value)) {
            return is_numeric($value) && is_integer((int)$value);
        }
    
        return false;
    }
    function getValue(string $value) {
        if (!checkValue($value)) {
            return;
        }
        $sanitizedValue = htmlspecialchars($value);
        return $sanitizedValue;
    }
    
    ?>