[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

Search

title

Body

[close]

/wp-includes/Requests/src/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".

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

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

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

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

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

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

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

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

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

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}

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



Generated : Sun Dec 22 08:20:01 2024 Cross-referenced by PHPXref