[ Index ]

PHP Cross Reference of WordPress

title

Body

[close]

/wp-includes/Requests/Utility/ -> InputValidator.php (summary)

Input validation utilities.

File Size: 109 lines (3 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 6 functions

  is_string_or_stringable()
  is_numeric_array_key()
  is_stringable_object()
  has_array_access()
  is_iterable()
  is_curl_handle()

Functions
Functions that are not part of a class:

is_string_or_stringable($input)   X-Ref
Verify that a received input parameter is of type string or is "stringable".

param: mixed $input Input parameter to verify.
return: bool

is_numeric_array_key($input)   X-Ref
Verify whether a received input parameter is usable as an integer array key.

param: mixed $input Input parameter to verify.
return: bool

is_stringable_object($input)   X-Ref
Verify whether a received input parameter is "stringable".

param: mixed $input Input parameter to verify.
return: bool

has_array_access($input)   X-Ref
Verify whether a received input parameter is _accessible as if it were an array_.

param: mixed $input Input parameter to verify.
return: bool

is_iterable($input)   X-Ref
Verify whether a received input parameter is "iterable".

param: mixed $input Input parameter to verify.
return: bool

is_curl_handle($input)   X-Ref
Verify whether a received input parameter is a Curl handle.

The PHP Curl extension worked with resources prior to PHP 8.0 and with
an instance of the `CurlHandle` class since PHP 8.0.
{@link https://www.php.net/manual/en/migration80.incompatible.php#migration80.incompatible.resource2object}

param: mixed $input Input parameter to verify.
return: bool



Generated: Mon Dec 6 01:00:03 2021 Cross-referenced by PHPXref 0.7.1