summaryrefslogtreecommitdiff
path: root/ext/filter/filter.stub.php
blob: 31a7f2c3e6166769944050ad818e627eb51cf3a7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<?php

function filter_has_var(int $type, string $variable_name): bool {}

/**
 * @param mixed $options
 * @return mixed
 */
function filter_input(int $type, string $variable_name, int $filter = FILTER_DEFAULT, $options = NULL) {}

/**
 * @param mixed $variable
 * @param mixed $options
 * @return mixed
 */
function filter_var($variable, int $filter = FILTER_DEFAULT, $options = NULL) {}

/**
 * @param mixed $options
 * @return mixed
 */
function filter_input_array(int $type, $options = NULL, bool $add_empty = true) {}

/**
 * @param mixed $options
 * @return mixed
 */
function filter_var_array(array $data, $options = NULL, bool $add_empty = true) {}

function filter_list(): array {}

function filter_id(string $filtername): int|false {}