code
stringlengths 31
1.39M
| docstring
stringlengths 23
16.8k
| func_name
stringlengths 1
126
| language
stringclasses 1
value | repo
stringlengths 7
63
| path
stringlengths 7
166
| url
stringlengths 50
220
| license
stringclasses 7
values |
---|---|---|---|---|---|---|---|
#[Pure]
function intval(mixed $value, int $base = 10) : int
{
}
|
Get the integer value of a variable
@link https://php.net/manual/en/function.intval.php
@param mixed $value <p>
The scalar value being converted to an integer
</p>
@param int $base [optional] <p>
The base for the conversion
</p>
@return int The integer value of var on success, or 0 on
failure. Empty arrays and objects return 0, non-empty arrays and
objects return 1.
</p>
<p>
The maximum value depends on the system. 32 bit systems have a
maximum signed integer range of -2147483648 to 2147483647. So for example
on such a system, intval('1000000000000') will return
2147483647. The maximum signed integer value for 64 bit systems is
9223372036854775807.
</p>
<p>
Strings will most likely return 0 although this depends on the
leftmost characters of the string. The common rules of
integer casting
apply.
|
intval
|
php
|
deptrac/deptrac
|
vendor/jetbrains/phpstorm-stubs/standard/standard_5.php
|
https://github.com/deptrac/deptrac/blob/master/vendor/jetbrains/phpstorm-stubs/standard/standard_5.php
|
MIT
|
#[Pure]
function strval(mixed $value) : string
{
}
|
Get string value of a variable
@link https://php.net/manual/en/function.strval.php
@param mixed $value <p>
The variable that is being converted to a string.
</p>
<p>
$var may be any scalar type or an object that implements the __toString() method.
You cannot use strval() on arrays or objects that do not implement the __toString() method.
</p>
@return string The string value of var.
|
strval
|
php
|
deptrac/deptrac
|
vendor/jetbrains/phpstorm-stubs/standard/standard_5.php
|
https://github.com/deptrac/deptrac/blob/master/vendor/jetbrains/phpstorm-stubs/standard/standard_5.php
|
MIT
|
#[Pure]
#[ExpectedValues(["boolean", "integer", "double", "string", "array", "object", "resource", "NULL", "unknown type", "resource (closed)"])]
function gettype(mixed $value) : string
{
}
|
Get the type of a variable
@link https://php.net/manual/en/function.gettype.php
@param mixed $value <p>
The variable being type checked.
</p>
@return string Possibles values for the returned string are:
"boolean"
"integer"
"double" (for historical reasons "double" is
returned in case of a float, and not simply
"float")
"string"
"array"
"object"
"resource"
"NULL"
"unknown type"
"resource (closed)" since 7.2.0
|
gettype
|
php
|
deptrac/deptrac
|
vendor/jetbrains/phpstorm-stubs/standard/standard_5.php
|
https://github.com/deptrac/deptrac/blob/master/vendor/jetbrains/phpstorm-stubs/standard/standard_5.php
|
MIT
|
#[Pure]
function is_null(mixed $value) : bool
{
}
|
Finds whether a variable is null.
@link https://php.net/manual/en/function.is-null.php
@param mixed $value <p>
The variable being evaluated.
</p>
@return bool true if var is null, false
otherwise.
|
is_null
|
php
|
deptrac/deptrac
|
vendor/jetbrains/phpstorm-stubs/standard/standard_5.php
|
https://github.com/deptrac/deptrac/blob/master/vendor/jetbrains/phpstorm-stubs/standard/standard_5.php
|
MIT
|
#[Pure]
function is_resource(mixed $value) : bool
{
}
|
Finds whether a variable is a resource
@link https://php.net/manual/en/function.is-resource.php
@param mixed $value <p>
The variable being evaluated.
</p>
@return bool true if var is a resource,
false otherwise.
|
is_resource
|
php
|
deptrac/deptrac
|
vendor/jetbrains/phpstorm-stubs/standard/standard_5.php
|
https://github.com/deptrac/deptrac/blob/master/vendor/jetbrains/phpstorm-stubs/standard/standard_5.php
|
MIT
|
#[Pure]
function is_bool(mixed $value) : bool
{
}
|
Finds out whether a variable is a boolean
@link https://php.net/manual/en/function.is-bool.php
@param mixed $value <p>
The variable being evaluated.
</p>
@return bool true if var is a boolean,
false otherwise.
|
is_bool
|
php
|
deptrac/deptrac
|
vendor/jetbrains/phpstorm-stubs/standard/standard_5.php
|
https://github.com/deptrac/deptrac/blob/master/vendor/jetbrains/phpstorm-stubs/standard/standard_5.php
|
MIT
|
#[Pure]
function is_long(mixed $value) : bool
{
}
|
Alias:
{@see is_int}
@link https://php.net/manual/en/function.is-long.php
@param mixed $value <p>
The variable being evaluated.
</p>
@return bool true if var is an integer,
false otherwise.
|
is_long
|
php
|
deptrac/deptrac
|
vendor/jetbrains/phpstorm-stubs/standard/standard_5.php
|
https://github.com/deptrac/deptrac/blob/master/vendor/jetbrains/phpstorm-stubs/standard/standard_5.php
|
MIT
|
#[Pure]
function is_float(mixed $value) : bool
{
}
|
Finds whether the type of a variable is float
@link https://php.net/manual/en/function.is-float.php
@param mixed $value <p>
The variable being evaluated.
</p>
@return bool true if var is a float,
false otherwise.
|
is_float
|
php
|
deptrac/deptrac
|
vendor/jetbrains/phpstorm-stubs/standard/standard_5.php
|
https://github.com/deptrac/deptrac/blob/master/vendor/jetbrains/phpstorm-stubs/standard/standard_5.php
|
MIT
|
#[Pure]
function is_int(mixed $value) : bool
{
}
|
Find whether the type of a variable is integer
@link https://php.net/manual/en/function.is-int.php
@param mixed $value <p>
The variable being evaluated.
</p>
@return bool true if var is an integer,
false otherwise.
|
is_int
|
php
|
deptrac/deptrac
|
vendor/jetbrains/phpstorm-stubs/standard/standard_5.php
|
https://github.com/deptrac/deptrac/blob/master/vendor/jetbrains/phpstorm-stubs/standard/standard_5.php
|
MIT
|
#[Pure]
function is_integer(mixed $value) : bool
{
}
|
Alias:
{@see is_int}
@link https://php.net/manual/en/function.is-integer.php
@param mixed $value <p>
The variable being evaluated.
</p>
@return bool true if var is an integer,
false otherwise.
|
is_integer
|
php
|
deptrac/deptrac
|
vendor/jetbrains/phpstorm-stubs/standard/standard_5.php
|
https://github.com/deptrac/deptrac/blob/master/vendor/jetbrains/phpstorm-stubs/standard/standard_5.php
|
MIT
|
#[Pure]
function is_double(mixed $value) : bool
{
}
|
Alias:
{@see is_float}
@link https://php.net/manual/en/function.is-double.php
@param mixed $value <p>
The variable being evaluated.
</p>
@return bool true if var is a float,
false otherwise.
|
is_double
|
php
|
deptrac/deptrac
|
vendor/jetbrains/phpstorm-stubs/standard/standard_5.php
|
https://github.com/deptrac/deptrac/blob/master/vendor/jetbrains/phpstorm-stubs/standard/standard_5.php
|
MIT
|
#[Pure]
#[Deprecated(since: '7.4')]
function is_real(mixed $var) : bool
{
}
|
Alias:
{@see is_float}
@link https://php.net/manual/en/function.is-real.php
@param mixed $var <p>
The variable being evaluated.
</p>
@return bool true if var is a float,
false otherwise.
|
is_real
|
php
|
deptrac/deptrac
|
vendor/jetbrains/phpstorm-stubs/standard/standard_5.php
|
https://github.com/deptrac/deptrac/blob/master/vendor/jetbrains/phpstorm-stubs/standard/standard_5.php
|
MIT
|
#[Pure]
function is_numeric(mixed $value) : bool
{
}
|
Finds whether a variable is a number or a numeric string
@link https://php.net/manual/en/function.is-numeric.php
@param mixed $value <p>
The variable being evaluated.
</p>
@return bool true if var is a number or a numeric
string, false otherwise.
|
is_numeric
|
php
|
deptrac/deptrac
|
vendor/jetbrains/phpstorm-stubs/standard/standard_5.php
|
https://github.com/deptrac/deptrac/blob/master/vendor/jetbrains/phpstorm-stubs/standard/standard_5.php
|
MIT
|
#[Pure]
function is_string(mixed $value) : bool
{
}
|
Find whether the type of a variable is string
@link https://php.net/manual/en/function.is-string.php
@param mixed $value <p>
The variable being evaluated.
</p>
@return bool true if var is of type string,
false otherwise.
|
is_string
|
php
|
deptrac/deptrac
|
vendor/jetbrains/phpstorm-stubs/standard/standard_5.php
|
https://github.com/deptrac/deptrac/blob/master/vendor/jetbrains/phpstorm-stubs/standard/standard_5.php
|
MIT
|
#[Pure]
function is_array(mixed $value) : bool
{
}
|
Finds whether a variable is an array
@link https://php.net/manual/en/function.is-array.php
@param mixed $value <p>
The variable being evaluated.
</p>
@return bool true if var is an array,
false otherwise.
|
is_array
|
php
|
deptrac/deptrac
|
vendor/jetbrains/phpstorm-stubs/standard/standard_5.php
|
https://github.com/deptrac/deptrac/blob/master/vendor/jetbrains/phpstorm-stubs/standard/standard_5.php
|
MIT
|
#[Pure]
function is_object(mixed $value) : bool
{
}
|
Finds whether a variable is an object
@link https://php.net/manual/en/function.is-object.php
@param mixed $value <p>
The variable being evaluated.
</p>
@return bool true if var is an object, false otherwise.<br/>
Since 7.2.0 returns true for unserialized objects without a class definition (class of <b>__PHP_Incomplete_Class</b>).
|
is_object
|
php
|
deptrac/deptrac
|
vendor/jetbrains/phpstorm-stubs/standard/standard_5.php
|
https://github.com/deptrac/deptrac/blob/master/vendor/jetbrains/phpstorm-stubs/standard/standard_5.php
|
MIT
|
#[Pure]
function is_scalar(mixed $value) : bool
{
}
|
Finds whether a variable is a scalar
@link https://php.net/manual/en/function.is-scalar.php
@param mixed $value <p>
The variable being evaluated.
</p>
@return bool true if var is a scalar false
otherwise.
|
is_scalar
|
php
|
deptrac/deptrac
|
vendor/jetbrains/phpstorm-stubs/standard/standard_5.php
|
https://github.com/deptrac/deptrac/blob/master/vendor/jetbrains/phpstorm-stubs/standard/standard_5.php
|
MIT
|
#[Pure]
function is_countable(mixed $value) : bool
{
}
|
Verify that the contents of a variable is a countable value
@link https://secure.php.net/is_countable
@param mixed $value The value to check
@return bool <b>TRUE</b> if $var is countable, <b>FALSE</b> otherwise.
@since 7.3
|
is_countable
|
php
|
deptrac/deptrac
|
vendor/jetbrains/phpstorm-stubs/standard/standard_5.php
|
https://github.com/deptrac/deptrac/blob/master/vendor/jetbrains/phpstorm-stubs/standard/standard_5.php
|
MIT
|
#[Pure(\true)]
function feof($stream) : bool
{
}
|
Tests for end-of-file on a file pointer
@link https://php.net/manual/en/function.feof.php
@param resource $stream The file pointer must be valid, and must point to a file successfully opened by fopen() or fsockopen() (and not yet closed by fclose()).
@return bool true if the file pointer is at EOF or an error occurs
(including socket timeout); otherwise returns false.
|
feof
|
php
|
deptrac/deptrac
|
vendor/jetbrains/phpstorm-stubs/standard/standard_5.php
|
https://github.com/deptrac/deptrac/blob/master/vendor/jetbrains/phpstorm-stubs/standard/standard_5.php
|
MIT
|
#[Deprecated(since: '7.3')]
function fgetss($handle, ?int $length = null, $allowable_tags = null) : false|string
{
}
|
Gets line from file pointer and strip HTML tags
@link https://php.net/manual/en/function.fgetss.php
@param resource $handle The file pointer must be valid, and must point to a file successfully opened by fopen() or fsockopen() (and not yet closed by fclose()).
@param null|int $length [optional] <p>
Length of the data to be retrieved.
</p>
@param string $allowable_tags [optional] <p>
You can use the optional third parameter to specify tags which should
not be stripped.
</p>
@return string|false a string of up to length - 1 bytes read from
the file pointed to by handle, with all HTML and PHP
code stripped.
</p>
<p>
If an error occurs, returns false.
@removed 8.0
|
fgetss
|
php
|
deptrac/deptrac
|
vendor/jetbrains/phpstorm-stubs/standard/standard_5.php
|
https://github.com/deptrac/deptrac/blob/master/vendor/jetbrains/phpstorm-stubs/standard/standard_5.php
|
MIT
|
#[LanguageLevelTypeAware(["8.0" => "int"], default: "int|false")]
function fpassthru($stream)
{
}
|
Output all remaining data on a file pointer
@link https://php.net/manual/en/function.fpassthru.php
@param resource $stream The file pointer must be valid, and must point to a file successfully opened by fopen() or fsockopen() (and not yet closed by fclose()).
@return int|false If an error occurs, fpassthru returns
false. Otherwise, fpassthru returns
the number of characters read from handle
and passed through to the output.
|
fpassthru
|
php
|
deptrac/deptrac
|
vendor/jetbrains/phpstorm-stubs/standard/standard_5.php
|
https://github.com/deptrac/deptrac/blob/master/vendor/jetbrains/phpstorm-stubs/standard/standard_5.php
|
MIT
|
#[Pure(\true)]
function fstat($stream) : array|false
{
}
|
Gets information about a file using an open file pointer
@link https://php.net/manual/en/function.fstat.php
@param resource $stream &fs.file.pointer;
@return array|false an array with the statistics of the file; the format of the array
is described in detail on the stat manual page.
|
fstat
|
php
|
deptrac/deptrac
|
vendor/jetbrains/phpstorm-stubs/standard/standard_5.php
|
https://github.com/deptrac/deptrac/blob/master/vendor/jetbrains/phpstorm-stubs/standard/standard_5.php
|
MIT
|
#[Pure(\true)]
function ftell($stream) : int|false
{
}
|
Returns the current position of the file read/write pointer
@link https://php.net/manual/en/function.ftell.php
@param resource $stream <p>
The file pointer must be valid, and must point to a file successfully
opened by fopen or popen.
ftell gives undefined results for append-only streams
(opened with "a" flag).
</p>
@return int|false the position of the file pointer referenced by
handle as an integer; i.e., its offset into the file stream.
</p>
<p>
If an error occurs, returns false.
|
ftell
|
php
|
deptrac/deptrac
|
vendor/jetbrains/phpstorm-stubs/standard/standard_5.php
|
https://github.com/deptrac/deptrac/blob/master/vendor/jetbrains/phpstorm-stubs/standard/standard_5.php
|
MIT
|
#[Pure(\true)]
function file_get_contents(string $filename, bool $use_include_path = \false, $context, int $offset = 0, ?int $length) : string|false
{
}
|
Reads entire file into a string
@link https://php.net/manual/en/function.file-get-contents.php
@param string $filename <p>
Name of the file to read.
</p>
@param bool $use_include_path [optional] <p>
Note: As of PHP 5 the FILE_USE_INCLUDE_PATH constant can be
used to trigger include path search.
</p>
@param resource $context [optional] <p>
A valid context resource created with
stream_context_create. If you don't need to use a
custom context, you can skip this parameter by null.
</p>
@param int $offset [optional] <p>
The offset where the reading starts.
</p>
@param int|null $length [optional] <p>
Maximum length of data read. The default is to read until end
of file is reached.
</p>
@return string|false The function returns the read data or false on failure.
|
file_get_contents
|
php
|
deptrac/deptrac
|
vendor/jetbrains/phpstorm-stubs/standard/standard_5.php
|
https://github.com/deptrac/deptrac/blob/master/vendor/jetbrains/phpstorm-stubs/standard/standard_5.php
|
MIT
|
#[ArrayShape(["notification" => "string", "options" => "array"])]
function stream_context_get_params($context) : array
{
}
|
Retrieves parameters from a context
@link https://php.net/manual/en/function.stream-context-get-params.php
@param resource $context <p>
A stream resource or a
context resource
</p>
@return array an associate array containing all context options and parameters.
|
stream_context_get_params
|
php
|
deptrac/deptrac
|
vendor/jetbrains/phpstorm-stubs/standard/standard_6.php
|
https://github.com/deptrac/deptrac/blob/master/vendor/jetbrains/phpstorm-stubs/standard/standard_6.php
|
MIT
|
#[Pure(\true)]
function get_meta_tags(string $filename, bool $use_include_path = \false) : array|false
{
}
|
Extracts all meta tag content attributes from a file and returns an array
@link https://php.net/manual/en/function.get-meta-tags.php
@param string $filename <p>
The path to the HTML file, as a string. This can be a local file or an
URL.
</p>
<p>
What get_meta_tags parses
</p>
<pre>
<meta name="author" content="name">
<meta name="keywords" content="php documentation">
<meta name="DESCRIPTION" content="a php manual">
<meta name="geo.position" content="49.33;-86.59">
</head> <!-- parsing stops here -->
</pre>
<p>
(pay attention to line endings - PHP uses a native function to
parse the input, so a Mac file won't work on Unix).
</p>
@param bool $use_include_path [optional] <p>
Setting use_include_path to true will result
in PHP trying to open the file along the standard include path as per
the include_path directive.
This is used for local files, not URLs.
</p>
@return array|false an array with all the parsed meta tags.
<p>
The value of the name property becomes the key, the value of the content
property becomes the value of the returned array, so you can easily use
standard array functions to traverse it or access single values.
Special characters in the value of the name property are substituted with
'_', the rest is converted to lower case. If two meta tags have the same
name, only the last one is returned.
</p>
|
get_meta_tags
|
php
|
deptrac/deptrac
|
vendor/jetbrains/phpstorm-stubs/standard/standard_6.php
|
https://github.com/deptrac/deptrac/blob/master/vendor/jetbrains/phpstorm-stubs/standard/standard_6.php
|
MIT
|
#[Deprecated(replacement: "stream_set_blocking(%parametersList%)", since: 5.3)]
function set_socket_blocking($socket, bool $mode) : bool
{
}
|
Alias:
{@see stream_set_blocking}
<p>Sets blocking or non-blocking mode on a stream.
This function works for any stream that supports non-blocking mode (currently, regular files and socket streams)
</p>
@link https://php.net/manual/en/function.set-socket-blocking.php
@param resource $socket
@param bool $mode If mode is FALSE, the given stream will be switched to non-blocking mode, and if TRUE, it will be switched to blocking mode.
This affects calls like fgets() and fread() that read from the stream.
In non-blocking mode an fgets() call will always return right away while in blocking mode it will wait for data to become available on the stream.
@return bool Returns TRUE on success or FALSE on failure.
@removed 7.0
@see stream_set_blocking()
|
set_socket_blocking
|
php
|
deptrac/deptrac
|
vendor/jetbrains/phpstorm-stubs/standard/standard_6.php
|
https://github.com/deptrac/deptrac/blob/master/vendor/jetbrains/phpstorm-stubs/standard/standard_6.php
|
MIT
|
#[ArrayShape(["timed_out" => "bool", "blocked" => "bool", "eof" => "bool", "unread_bytes" => "int", "stream_type" => "string", "wrapper_type" => "string", "wrapper_data" => "mixed", "mode" => "string", "seekable" => "bool", "uri" => "string", "crypto" => "array", "mediatype" => "string"])]
function stream_get_meta_data($stream) : array
{
}
|
Retrieves header/meta data from streams/file pointers
@link https://php.net/manual/en/function.stream-get-meta-data.php
@param resource $stream <p>
The stream can be any stream created by fopen,
fsockopen and pfsockopen.
</p>
@return array The result array contains the following items:
<p>
timed_out (bool) - true if the stream
timed out while waiting for data on the last call to
fread or fgets.
</p>
<p>
blocked (bool) - true if the stream is
in blocking IO mode. See stream_set_blocking.
</p>
<p>
eof (bool) - true if the stream has reached
end-of-file. Note that for socket streams this member can be true
even when unread_bytes is non-zero. To
determine if there is more data to be read, use
feof instead of reading this item.
</p>
<p>
unread_bytes (int) - the number of bytes
currently contained in the PHP's own internal buffer.
</p>
You shouldn't use this value in a script.
<p>
stream_type (string) - a label describing
the underlying implementation of the stream.
</p>
<p>
wrapper_type (string) - a label describing
the protocol wrapper implementation layered over the stream.
See for more information about wrappers.
</p>
<p>
wrapper_data (mixed) - wrapper specific
data attached to this stream. See for
more information about wrappers and their wrapper data.
</p>
<p>
filters (array) - and array containing
the names of any filters that have been stacked onto this stream.
Documentation on filters can be found in the
Filters appendix.
</p>
<p>
mode (string) - the type of access required for
this stream (see Table 1 of the fopen() reference)
</p>
<p>
seekable (bool) - whether the current stream can
be seeked.
</p>
<p>
uri (string) - the URI/filename associated with this
stream.
</p>
|
stream_get_meta_data
|
php
|
deptrac/deptrac
|
vendor/jetbrains/phpstorm-stubs/standard/standard_6.php
|
https://github.com/deptrac/deptrac/blob/master/vendor/jetbrains/phpstorm-stubs/standard/standard_6.php
|
MIT
|
#[Pure(\true)]
function stream_get_wrappers() : array
{
}
|
Retrieve list of registered streams
@link https://php.net/manual/en/function.stream-get-wrappers.php
@return list<string> an indexed array containing the name of all stream wrappers
available on the running system.
|
stream_get_wrappers
|
php
|
deptrac/deptrac
|
vendor/jetbrains/phpstorm-stubs/standard/standard_6.php
|
https://github.com/deptrac/deptrac/blob/master/vendor/jetbrains/phpstorm-stubs/standard/standard_6.php
|
MIT
|
#[Pure(\true)]
function stream_get_transports() : array
{
}
|
Retrieve list of registered socket transports
@link https://php.net/manual/en/function.stream-get-transports.php
@return list<string> an indexed array of socket transports names.
|
stream_get_transports
|
php
|
deptrac/deptrac
|
vendor/jetbrains/phpstorm-stubs/standard/standard_6.php
|
https://github.com/deptrac/deptrac/blob/master/vendor/jetbrains/phpstorm-stubs/standard/standard_6.php
|
MIT
|
#[Pure]
function stream_is_local($stream) : bool
{
}
|
Checks if a stream is a local stream
@link https://php.net/manual/en/function.stream-is-local.php
@param mixed $stream <p>
The stream resource or URL to check.
</p>
@return bool true on success or false on failure.
@since 5.2.4
|
stream_is_local
|
php
|
deptrac/deptrac
|
vendor/jetbrains/phpstorm-stubs/standard/standard_6.php
|
https://github.com/deptrac/deptrac/blob/master/vendor/jetbrains/phpstorm-stubs/standard/standard_6.php
|
MIT
|
#[Pure(\true)]
function get_headers(string $url, #[LanguageLevelTypeAware(['8.0' => 'bool'], default: 'int')] $associative = \false, #[PhpStormStubsElementAvailable(from: '7.1')] $context = null) : array|false
{
}
|
Fetches all the headers sent by the server in response to an HTTP request
@link https://php.net/manual/en/function.get-headers.php
@param string $url <p>
The target URL.
</p>
@param bool $associative [optional] <p>
If the optional format parameter is set to true,
get_headers parses the response and sets the
array's keys.
</p>
@param resource $context [optional]
@return array|false an indexed or associative array with the headers, or false on
failure.
|
get_headers
|
php
|
deptrac/deptrac
|
vendor/jetbrains/phpstorm-stubs/standard/standard_6.php
|
https://github.com/deptrac/deptrac/blob/master/vendor/jetbrains/phpstorm-stubs/standard/standard_6.php
|
MIT
|
#[Pure(\true)]
function realpath(string $path) : string|false
{
}
|
Returns canonicalized absolute pathname
@link https://php.net/manual/en/function.realpath.php
@param string $path <p>
The path being checked.
</p>
@return string|false the canonicalized absolute pathname on success. The resulting path
will have no symbolic link, '/./' or '/../' components.
<p>
realpath returns false on failure, e.g. if
the file does not exist.
</p>
|
realpath
|
php
|
deptrac/deptrac
|
vendor/jetbrains/phpstorm-stubs/standard/standard_6.php
|
https://github.com/deptrac/deptrac/blob/master/vendor/jetbrains/phpstorm-stubs/standard/standard_6.php
|
MIT
|
#[Pure(\true)]
function fnmatch(string $pattern, string $filename, int $flags = 0) : bool
{
}
|
Match filename against a pattern
@link https://php.net/manual/en/function.fnmatch.php
@param string $pattern <p>
The shell wildcard pattern.
</p>
@param string $filename <p>
The tested string. This function is especially useful for filenames,
but may also be used on regular strings.
</p>
<p>
The average user may be used to shell patterns or at least in their
simplest form to '?' and '*'
wildcards so using fnmatch instead of
preg_match for
frontend search expression input may be way more convenient for
non-programming users.
</p>
@param int $flags <p>
The value of flags can be any combination of
the following flags, joined with the
binary OR (|) operator.
<table>
A list of possible flags for fnmatch
<tr valign="top">
<td>Flag</td>
<td>Description</td>
</tr>
<tr valign="top">
<td>FNM_NOESCAPE</td>
<td>
Disable backslash escaping.
</td>
</tr>
<tr valign="top">
<td>FNM_PATHNAME</td>
<td>
Slash in string only matches slash in the given pattern.
</td>
</tr>
<tr valign="top">
<td>FNM_PERIOD</td>
<td>
Leading period in string must be exactly matched by period in the given pattern.
</td>
</tr>
<tr valign="top">
<td>FNM_CASEFOLD</td>
<td>
Caseless match. Part of the GNU extension.
</td>
</tr>
</table>
</p>
@return bool true if there is a match, false otherwise.
|
fnmatch
|
php
|
deptrac/deptrac
|
vendor/jetbrains/phpstorm-stubs/standard/standard_6.php
|
https://github.com/deptrac/deptrac/blob/master/vendor/jetbrains/phpstorm-stubs/standard/standard_6.php
|
MIT
|
#[Pure]
#[LanguageLevelTypeAware(["8.0" => "string"], default: "string|false")]
function pack(string $format, #[PhpStormStubsElementAvailable(from: '5.3', to: '7.3')] $values, mixed ...$values)
{
}
|
Pack data into binary string
@link https://php.net/manual/en/function.pack.php
@param string $format <p>
The format string consists of format codes
followed by an optional repeater argument. The repeater argument can
be either an integer value or * for repeating to
the end of the input data. For a, A, h, H the repeat count specifies
how many characters of one data argument are taken, for @ it is the
absolute position where to put the next data, for everything else the
repeat count specifies how many data arguments are consumed and packed
into the resulting binary string.
</p>
<p>
Currently implemented formats are:
<table>
pack format characters
<tr valign="top">
<td>Code</td>
<td>Description</td>
</tr>
<tr valign="top">
<td>a</td>
<td>NUL-padded string</td>
</tr>
<tr valign="top">
<td>A</td>
<td>SPACE-padded string</td></tr>
<tr valign="top">
<td>h</td>
<td>Hex string, low nibble first</td></tr>
<tr valign="top">
<td>H</td>
<td>Hex string, high nibble first</td></tr>
<tr valign="top"><td>c</td><td>signed char</td></tr>
<tr valign="top">
<td>C</td>
<td>unsigned char</td></tr>
<tr valign="top">
<td>s</td>
<td>signed short (always 16 bit, machine byte order)</td>
</tr>
<tr valign="top">
<td>S</td>
<td>unsigned short (always 16 bit, machine byte order)</td>
</tr>
<tr valign="top">
<td>n</td>
<td>unsigned short (always 16 bit, big endian byte order)</td>
</tr>
<tr valign="top">
<td>v</td>
<td>unsigned short (always 16 bit, little endian byte order)</td>
</tr>
<tr valign="top">
<td>i</td>
<td>signed integer (machine dependent size and byte order)</td>
</tr>
<tr valign="top">
<td>I</td>
<td>unsigned integer (machine dependent size and byte order)</td>
</tr>
<tr valign="top">
<td>l</td>
<td>signed long (always 32 bit, machine byte order)</td>
</tr>
<tr valign="top">
<td>L</td>
<td>unsigned long (always 32 bit, machine byte order)</td>
</tr>
<tr valign="top">
<td>N</td>
<td>unsigned long (always 32 bit, big endian byte order)</td>
</tr>
<tr valign="top">
<td>V</td>
<td>unsigned long (always 32 bit, little endian byte order)</td>
</tr>
<tr valign="top">
<td>f</td>
<td>float (machine dependent size and representation, both little and big endian)</td>
</tr>
<tr valign="top">
<td>d</td>
<td>double (machine dependent size and representation, both little and big endian)</td>
</tr>
<tr valign="top">
<td>x</td>
<td>NUL byte</td>
</tr>
<tr valign="top">
<td>X</td>
<td>Back up one byte</td>
</tr>
<tr valign="top">
<td>@</td>
<td>NUL-fill to absolute position</td>
</tr>
</table>
</p>
@param mixed ...$values <p>
</p>
@return string|false a binary string containing data or false if the format string contains errors
|
pack
|
php
|
deptrac/deptrac
|
vendor/jetbrains/phpstorm-stubs/standard/standard_7.php
|
https://github.com/deptrac/deptrac/blob/master/vendor/jetbrains/phpstorm-stubs/standard/standard_7.php
|
MIT
|
#[Pure]
function unpack(string $format, string $string, #[PhpStormStubsElementAvailable(from: '7.1')] int $offset = 0) : array|false
{
}
|
Unpack data from binary string
@link https://php.net/manual/en/function.unpack.php
@param string $format <p>
See pack for an explanation of the format codes.
</p>
@param string $string <p>
The packed data.
</p>
@param int $offset [optional]
@return array|false an associative array containing unpacked elements of binary
string or false if the format string contains errors
|
unpack
|
php
|
deptrac/deptrac
|
vendor/jetbrains/phpstorm-stubs/standard/standard_7.php
|
https://github.com/deptrac/deptrac/blob/master/vendor/jetbrains/phpstorm-stubs/standard/standard_7.php
|
MIT
|
#[Pure(\true)]
function get_browser(?string $user_agent, bool $return_array = \false) : object|array|false
{
}
|
Tells what the user's browser is capable of
@link https://php.net/manual/en/function.get-browser.php
@param string|null $user_agent [optional] <p>
The User Agent to be analyzed. By default, the value of HTTP
User-Agent header is used; however, you can alter this (i.e., look up
another browser's info) by passing this parameter.
</p>
<p>
You can bypass this parameter with a null value.
</p>
@param bool $return_array [optional] <p>
If set to true, this function will return an array
instead of an object.
</p>
@return array|object|false Returns false if browscap.ini can't be loaded or the user agent can't be found, otherwise the information is returned in an object or an array which will contain
various data elements representing, for instance, the browser's major and
minor version numbers and ID string; true/false values for features
such as frames, JavaScript, and cookies; and so forth.
</p>
<p>
The cookies value simply means that the browser
itself is capable of accepting cookies and does not mean the user has
enabled the browser to accept cookies or not. The only way to test if
cookies are accepted is to set one with setcookie,
reload, and check for the value.
|
get_browser
|
php
|
deptrac/deptrac
|
vendor/jetbrains/phpstorm-stubs/standard/standard_7.php
|
https://github.com/deptrac/deptrac/blob/master/vendor/jetbrains/phpstorm-stubs/standard/standard_7.php
|
MIT
|
#[Pure(\true)]
function getcwd() : string|false
{
}
|
Gets the current working directory
@link https://php.net/manual/en/function.getcwd.php
@return string|false <p>
the current working directory on success, or false on
failure. <br>
<br>
On some Unix variants, getcwd will return
false if any one of the parent directories does not have the
readable or search mode set, even if the current directory
does. See chmod for more information on
modes and permissions.
</p>
|
getcwd
|
php
|
deptrac/deptrac
|
vendor/jetbrains/phpstorm-stubs/standard/standard_7.php
|
https://github.com/deptrac/deptrac/blob/master/vendor/jetbrains/phpstorm-stubs/standard/standard_7.php
|
MIT
|
#[Pure(\true)]
function glob(string $pattern, int $flags = 0) : array|false
{
}
|
Find pathnames matching a pattern
@link https://php.net/manual/en/function.glob.php
@param string $pattern <p>
The pattern. No tilde expansion or parameter substitution is done.
</p>
@param int $flags <p>
Valid flags:
GLOB_MARK - Adds a slash to each directory returned
GLOB_NOSORT - Return files as they appear in the directory (no sorting). When this flag is not used, the pathnames are sorted alphabetically
GLOB_NOCHECK - Return the search pattern if no files matching it were found
GLOB_NOESCAPE - Backslashes do not quote metacharacters
GLOB_BRACE - Expands {a,b,c} to match 'a', 'b', or 'c'
GLOB_ONLYDIR - Return only directory entries which match the pattern
GLOB_ERR - Stop on read errors (like unreadable directories), by default errors are ignored.
@return array|false an array containing the matched files/directories, an empty array
if no file matched or false on error.
</p>
<p>
On some systems it is impossible to distinguish between empty match and an
error.</p>
|
glob
|
php
|
deptrac/deptrac
|
vendor/jetbrains/phpstorm-stubs/standard/standard_7.php
|
https://github.com/deptrac/deptrac/blob/master/vendor/jetbrains/phpstorm-stubs/standard/standard_7.php
|
MIT
|
#[Pure(\true)]
function fileatime(string $filename) : int|false
{
}
|
Gets last access time of file
@link https://php.net/manual/en/function.fileatime.php
@param string $filename <p>
Path to the file.
</p>
@return int|false the time the file was last accessed, or false on failure.
The time is returned as a Unix timestamp.
|
fileatime
|
php
|
deptrac/deptrac
|
vendor/jetbrains/phpstorm-stubs/standard/standard_7.php
|
https://github.com/deptrac/deptrac/blob/master/vendor/jetbrains/phpstorm-stubs/standard/standard_7.php
|
MIT
|
#[Pure(\true)]
function filectime(string $filename) : int|false
{
}
|
Gets inode change time of file
@link https://php.net/manual/en/function.filectime.php
@param string $filename <p>
Path to the file.
</p>
@return int|false the time the file was last changed, or false on failure.
The time is returned as a Unix timestamp.
|
filectime
|
php
|
deptrac/deptrac
|
vendor/jetbrains/phpstorm-stubs/standard/standard_7.php
|
https://github.com/deptrac/deptrac/blob/master/vendor/jetbrains/phpstorm-stubs/standard/standard_7.php
|
MIT
|
#[Pure(\true)]
function filegroup(string $filename) : int|false
{
}
|
Gets file group
@link https://php.net/manual/en/function.filegroup.php
@param string $filename <p>
Path to the file.
</p>
@return int|false the group ID of the file, or false in case
of an error. The group ID is returned in numerical format, use
posix_getgrgid to resolve it to a group name.
Upon failure, false is returned.
|
filegroup
|
php
|
deptrac/deptrac
|
vendor/jetbrains/phpstorm-stubs/standard/standard_7.php
|
https://github.com/deptrac/deptrac/blob/master/vendor/jetbrains/phpstorm-stubs/standard/standard_7.php
|
MIT
|
#[Pure(\true)]
function fileinode(string $filename) : int|false
{
}
|
Gets file inode
@link https://php.net/manual/en/function.fileinode.php
@param string $filename <p>
Path to the file.
</p>
@return int|false the inode number of the file, or false on failure.
|
fileinode
|
php
|
deptrac/deptrac
|
vendor/jetbrains/phpstorm-stubs/standard/standard_7.php
|
https://github.com/deptrac/deptrac/blob/master/vendor/jetbrains/phpstorm-stubs/standard/standard_7.php
|
MIT
|
#[Pure(\true)]
function filemtime(string $filename) : int|false
{
}
|
Gets file modification time
@link https://php.net/manual/en/function.filemtime.php
@param string $filename <p>
Path to the file.
</p>
@return int|false the time the file was last modified, or false on failure.
The time is returned as a Unix timestamp, which is
suitable for the date function.
|
filemtime
|
php
|
deptrac/deptrac
|
vendor/jetbrains/phpstorm-stubs/standard/standard_7.php
|
https://github.com/deptrac/deptrac/blob/master/vendor/jetbrains/phpstorm-stubs/standard/standard_7.php
|
MIT
|
#[Pure(\true)]
function fileowner(string $filename) : int|false
{
}
|
Gets file owner
@link https://php.net/manual/en/function.fileowner.php
@param string $filename <p>
Path to the file.
</p>
@return int|false the user ID of the owner of the file, or false on failure.
The user ID is returned in numerical format, use
posix_getpwuid to resolve it to a username.
|
fileowner
|
php
|
deptrac/deptrac
|
vendor/jetbrains/phpstorm-stubs/standard/standard_7.php
|
https://github.com/deptrac/deptrac/blob/master/vendor/jetbrains/phpstorm-stubs/standard/standard_7.php
|
MIT
|
#[Pure(\true)]
function fileperms(string $filename) : int|false
{
}
|
Gets file permissions
@link https://php.net/manual/en/function.fileperms.php
@param string $filename <p>
Path to the file.
</p>
@return int|false the permissions on the file, or false on failure.
|
fileperms
|
php
|
deptrac/deptrac
|
vendor/jetbrains/phpstorm-stubs/standard/standard_7.php
|
https://github.com/deptrac/deptrac/blob/master/vendor/jetbrains/phpstorm-stubs/standard/standard_7.php
|
MIT
|
#[Pure(\true)]
function filesize(string $filename) : int|false
{
}
|
Gets file size
@link https://php.net/manual/en/function.filesize.php
@param string $filename <p>
Path to the file.
</p>
@return int|false the size of the file in bytes, or false (and generates an error
of level E_WARNING) in case of an error.
|
filesize
|
php
|
deptrac/deptrac
|
vendor/jetbrains/phpstorm-stubs/standard/standard_7.php
|
https://github.com/deptrac/deptrac/blob/master/vendor/jetbrains/phpstorm-stubs/standard/standard_7.php
|
MIT
|
#[Pure(\true)]
function filetype(string $filename) : string|false
{
}
|
Gets file type
@link https://php.net/manual/en/function.filetype.php
@param string $filename <p>
Path to the file.
</p>
@return string|false the type of the file. Possible values are fifo, char,
dir, block, link, file, socket and unknown.
</p>
<p>
Returns false if an error occurs. filetype will also
produce an E_NOTICE message if the stat call fails
or if the file type is unknown.
|
filetype
|
php
|
deptrac/deptrac
|
vendor/jetbrains/phpstorm-stubs/standard/standard_7.php
|
https://github.com/deptrac/deptrac/blob/master/vendor/jetbrains/phpstorm-stubs/standard/standard_7.php
|
MIT
|
#[Pure(\true)]
function file_exists(string $filename) : bool
{
}
|
Checks whether a file or directory exists
@link https://php.net/manual/en/function.file-exists.php
@param string $filename <p>
Path to the file or directory.
</p>
<p>
On windows, use //computername/share/filename or
\\computername\share\filename to check files on
network shares.
</p>
@return bool true if the file or directory specified by
filename exists; false otherwise.
</p>
<p>
This function will return false for symlinks pointing to non-existing
files.
</p>
<p>
This function returns false for files inaccessible due to safe mode restrictions. However these
files still can be included if
they are located in safe_mode_include_dir.
</p>
<p>
The check is done using the real UID/GID instead of the effective one.
|
file_exists
|
php
|
deptrac/deptrac
|
vendor/jetbrains/phpstorm-stubs/standard/standard_7.php
|
https://github.com/deptrac/deptrac/blob/master/vendor/jetbrains/phpstorm-stubs/standard/standard_7.php
|
MIT
|
#[Pure(\true)]
function is_writable(string $filename) : bool
{
}
|
Tells whether the filename is writable
@link https://php.net/manual/en/function.is-writable.php
@param string $filename <p>
The filename being checked.
</p>
@return bool true if the filename exists and is
writable.
|
is_writable
|
php
|
deptrac/deptrac
|
vendor/jetbrains/phpstorm-stubs/standard/standard_7.php
|
https://github.com/deptrac/deptrac/blob/master/vendor/jetbrains/phpstorm-stubs/standard/standard_7.php
|
MIT
|
#[Pure(\true)]
function is_writeable(string $filename) : bool
{
}
|
Alias:
{@see is_writable}
@link https://php.net/manual/en/function.is-writeable.php
@param string $filename <p>
The filename being checked.
</p>
@return bool true if the filename exists and is
writable.
|
is_writeable
|
php
|
deptrac/deptrac
|
vendor/jetbrains/phpstorm-stubs/standard/standard_7.php
|
https://github.com/deptrac/deptrac/blob/master/vendor/jetbrains/phpstorm-stubs/standard/standard_7.php
|
MIT
|
#[Pure(\true)]
function is_readable(string $filename) : bool
{
}
|
Tells whether a file or a directory exists and is readable
@link https://php.net/manual/en/function.is-readable.php
@param string $filename <p>
Path to the file or directory.
</p>
@return bool true if the file or directory specified by
filename exists and is readable, false otherwise.
|
is_readable
|
php
|
deptrac/deptrac
|
vendor/jetbrains/phpstorm-stubs/standard/standard_7.php
|
https://github.com/deptrac/deptrac/blob/master/vendor/jetbrains/phpstorm-stubs/standard/standard_7.php
|
MIT
|
#[Pure(\true)]
function is_executable(string $filename) : bool
{
}
|
Tells whether the filename is executable
@link https://php.net/manual/en/function.is-executable.php
@param string $filename <p>
Path to the file.
</p>
@return bool true if the filename exists and is executable, or false on
error.
|
is_executable
|
php
|
deptrac/deptrac
|
vendor/jetbrains/phpstorm-stubs/standard/standard_7.php
|
https://github.com/deptrac/deptrac/blob/master/vendor/jetbrains/phpstorm-stubs/standard/standard_7.php
|
MIT
|
#[Pure(\true)]
function is_file(string $filename) : bool
{
}
|
Tells whether the filename is a regular file
@link https://php.net/manual/en/function.is-file.php
@param string $filename <p>
Path to the file.
</p>
@return bool true if the filename exists and is a regular file, false
otherwise.
|
is_file
|
php
|
deptrac/deptrac
|
vendor/jetbrains/phpstorm-stubs/standard/standard_7.php
|
https://github.com/deptrac/deptrac/blob/master/vendor/jetbrains/phpstorm-stubs/standard/standard_7.php
|
MIT
|
#[Pure(\true)]
function is_dir(string $filename) : bool
{
}
|
Tells whether the filename is a directory
@link https://php.net/manual/en/function.is-dir.php
@param string $filename <p>
Path to the file. If filename is a relative
filename, it will be checked relative to the current working
directory. If filename is a symbolic or hard link
then the link will be resolved and checked.
</p>
@return bool true if the filename exists and is a directory, false
otherwise.
|
is_dir
|
php
|
deptrac/deptrac
|
vendor/jetbrains/phpstorm-stubs/standard/standard_7.php
|
https://github.com/deptrac/deptrac/blob/master/vendor/jetbrains/phpstorm-stubs/standard/standard_7.php
|
MIT
|
#[Pure(\true)]
function is_link(string $filename) : bool
{
}
|
Tells whether the filename is a symbolic link
@link https://php.net/manual/en/function.is-link.php
@param string $filename <p>
Path to the file.
</p>
@return bool true if the filename exists and is a symbolic link, false
otherwise.
|
is_link
|
php
|
deptrac/deptrac
|
vendor/jetbrains/phpstorm-stubs/standard/standard_7.php
|
https://github.com/deptrac/deptrac/blob/master/vendor/jetbrains/phpstorm-stubs/standard/standard_7.php
|
MIT
|
#[Pure(\true)]
#[ArrayShape(["dev" => "int", "ino" => "int", "mode" => "int", "nlink" => "int", "uid" => "int", "gid" => "int", "rdev" => "int", "size" => "int", "atime" => "int", "mtime" => "int", "ctime" => "int", "blksize" => "int", "blocks" => "int"])]
function stat(string $filename) : array|false
{
}
|
Gives information about a file
@link https://php.net/manual/en/function.stat.php
@param string $filename <p>
Path to the file.
</p>
@return array|false <table>
stat and fstat result
format
<tr valign="top">
<td>Numeric</td>
<td>Associative (since PHP 4.0.6)</td>
<td>Description</td>
</tr>
<tr valign="top">
<td>0</td>
<td>dev</td>
<td>device number</td>
</tr>
<tr valign="top">
<td>1</td>
<td>ino</td>
<td>inode number *</td>
</tr>
<tr valign="top">
<td>2</td>
<td>mode</td>
<td>inode protection mode</td>
</tr>
<tr valign="top">
<td>3</td>
<td>nlink</td>
<td>number of links</td>
</tr>
<tr valign="top">
<td>4</td>
<td>uid</td>
<td>userid of owner *</td>
</tr>
<tr valign="top">
<td>5</td>
<td>gid</td>
<td>groupid of owner *</td>
</tr>
<tr valign="top">
<td>6</td>
<td>rdev</td>
<td>device type, if inode device</td>
</tr>
<tr valign="top">
<td>7</td>
<td>size</td>
<td>size in bytes</td>
</tr>
<tr valign="top">
<td>8</td>
<td>atime</td>
<td>time of last access (Unix timestamp)</td>
</tr>
<tr valign="top">
<td>9</td>
<td>mtime</td>
<td>time of last modification (Unix timestamp)</td>
</tr>
<tr valign="top">
<td>10</td>
<td>ctime</td>
<td>time of last inode change (Unix timestamp)</td>
</tr>
<tr valign="top">
<td>11</td>
<td>blksize</td>
<td>blocksize of filesystem IO **</td>
</tr>
<tr valign="top">
<td>12</td>
<td>blocks</td>
<td>number of 512-byte blocks allocated **</td>
</tr>
</table>
* On Windows this will always be 0.
</p>
<p>
** Only valid on systems supporting the st_blksize type - other
systems (e.g. Windows) return -1.
</p>
<p>
In case of error, stat returns false.
|
stat
|
php
|
deptrac/deptrac
|
vendor/jetbrains/phpstorm-stubs/standard/standard_7.php
|
https://github.com/deptrac/deptrac/blob/master/vendor/jetbrains/phpstorm-stubs/standard/standard_7.php
|
MIT
|
#[Pure(\true)]
function lstat(string $filename) : array|false
{
}
|
Gives information about a file or symbolic link
@link https://php.net/manual/en/function.lstat.php
@see stat
@param string $filename <p>
Path to a file or a symbolic link.
</p>
@return array|false See the manual page for stat for information on
the structure of the array that lstat returns.
This function is identical to the stat function
except that if the filename parameter is a symbolic
link, the status of the symbolic link is returned, not the status of the
file pointed to by the symbolic link.
|
lstat
|
php
|
deptrac/deptrac
|
vendor/jetbrains/phpstorm-stubs/standard/standard_7.php
|
https://github.com/deptrac/deptrac/blob/master/vendor/jetbrains/phpstorm-stubs/standard/standard_7.php
|
MIT
|
#[Pure(\true)]
function disk_total_space(string $directory) : float|false
{
}
|
Returns the total size of a filesystem or disk partition
@link https://php.net/manual/en/function.disk-total-space.php
@param string $directory <p>
A directory of the filesystem or disk partition.
</p>
@return float|false the total number of bytes as a float
or false on failure.
|
disk_total_space
|
php
|
deptrac/deptrac
|
vendor/jetbrains/phpstorm-stubs/standard/standard_7.php
|
https://github.com/deptrac/deptrac/blob/master/vendor/jetbrains/phpstorm-stubs/standard/standard_7.php
|
MIT
|
#[Pure(\true)]
function disk_free_space(string $directory) : float|false
{
}
|
Returns available space in directory
@link https://php.net/manual/en/function.disk-free-space.php
@param string $directory <p>
A directory of the filesystem or disk partition.
</p>
<p>
Given a file name instead of a directory, the behaviour of the
function is unspecified and may differ between operating systems and
PHP versions.
</p>
@return float|false the number of available bytes as a float
or false on failure.
|
disk_free_space
|
php
|
deptrac/deptrac
|
vendor/jetbrains/phpstorm-stubs/standard/standard_7.php
|
https://github.com/deptrac/deptrac/blob/master/vendor/jetbrains/phpstorm-stubs/standard/standard_7.php
|
MIT
|
#[Pure(\true)]
function diskfreespace(string $directory) : float|false
{
}
|
Alias of {@see disk_free_space}
@link https://php.net/manual/en/function.diskfreespace.php
@see disk_free_space
@param string $directory
@return float|false
|
diskfreespace
|
php
|
deptrac/deptrac
|
vendor/jetbrains/phpstorm-stubs/standard/standard_7.php
|
https://github.com/deptrac/deptrac/blob/master/vendor/jetbrains/phpstorm-stubs/standard/standard_7.php
|
MIT
|
#[Deprecated(since: '7.4')]
function ezmlm_hash(string $addr) : int
{
}
|
Calculate the hash value needed by EZMLM
@link https://php.net/manual/en/function.ezmlm-hash.php
@param string $addr <p>
The email address that's being hashed.
</p>
@return int The hash value of addr.
@removed 8.0
|
ezmlm_hash
|
php
|
deptrac/deptrac
|
vendor/jetbrains/phpstorm-stubs/standard/standard_7.php
|
https://github.com/deptrac/deptrac/blob/master/vendor/jetbrains/phpstorm-stubs/standard/standard_7.php
|
MIT
|
#[LanguageLevelTypeAware(["8.2" => "true"], default: "bool")]
function openlog(string $prefix, int $flags, int $facility)
{
}
|
Open connection to system logger
@link https://php.net/manual/en/function.openlog.php
@param string $prefix <p>
The string ident is added to each message.
</p>
@param int $flags <p>
The option argument is used to indicate
what logging options will be used when generating a log message.
<table>
openlog Options
<tr valign="top">
<td>Constant</td>
<td>Description</td>
</tr>
<tr valign="top">
<td>LOG_CONS</td>
<td>
if there is an error while sending data to the system logger,
write directly to the system console
</td>
</tr>
<tr valign="top">
<td>LOG_NDELAY</td>
<td>
open the connection to the logger immediately
</td>
</tr>
<tr valign="top">
<td>LOG_ODELAY</td>
<td>
(default) delay opening the connection until the first
message is logged
</td>
</tr>
<tr valign="top">
<td>LOG_PERROR</td>
<td>print log message also to standard error</td>
</tr>
<tr valign="top">
<td>LOG_PID</td>
<td>include PID with each message</td>
</tr>
</table>
You can use one or more of this options. When using multiple options
you need to OR them, i.e. to open the connection
immediately, write to the console and include the PID in each message,
you will use: LOG_CONS | LOG_NDELAY | LOG_PID
</p>
@param int $facility <p>
The facility argument is used to specify what
type of program is logging the message. This allows you to specify
(in your machine's syslog configuration) how messages coming from
different facilities will be handled.
<table>
openlog Facilities
<tr valign="top">
<td>Constant</td>
<td>Description</td>
</tr>
<tr valign="top">
<td>LOG_AUTH</td>
<td>
security/authorization messages (use
LOG_AUTHPRIV instead
in systems where that constant is defined)
</td>
</tr>
<tr valign="top">
<td>LOG_AUTHPRIV</td>
<td>security/authorization messages (private)</td>
</tr>
<tr valign="top">
<td>LOG_CRON</td>
<td>clock daemon (cron and at)</td>
</tr>
<tr valign="top">
<td>LOG_DAEMON</td>
<td>other system daemons</td>
</tr>
<tr valign="top">
<td>LOG_KERN</td>
<td>kernel messages</td>
</tr>
<tr valign="top">
<td>LOG_LOCAL0 ... LOG_LOCAL7</td>
<td>reserved for local use, these are not available in Windows</td>
</tr>
<tr valign="top">
<td>LOG_LPR</td>
<td>line printer subsystem</td>
</tr>
<tr valign="top">
<td>LOG_MAIL</td>
<td>mail subsystem</td>
</tr>
<tr valign="top">
<td>LOG_NEWS</td>
<td>USENET news subsystem</td>
</tr>
<tr valign="top">
<td>LOG_SYSLOG</td>
<td>messages generated internally by syslogd</td>
</tr>
<tr valign="top">
<td>LOG_USER</td>
<td>generic user-level messages</td>
</tr>
<tr valign="top">
<td>LOG_UUCP</td>
<td>UUCP subsystem</td>
</tr>
</table>
</p>
<p>
LOG_USER is the only valid log type under Windows
operating systems
</p>
@return bool true on success or false on failure.
|
openlog
|
php
|
deptrac/deptrac
|
vendor/jetbrains/phpstorm-stubs/standard/standard_7.php
|
https://github.com/deptrac/deptrac/blob/master/vendor/jetbrains/phpstorm-stubs/standard/standard_7.php
|
MIT
|
#[LanguageLevelTypeAware(['8.2' => 'true'], default: 'bool')]
function syslog(int $priority, string $message)
{
}
|
Generate a system log message
@link https://php.net/manual/en/function.syslog.php
@param int $priority <p>
priority is a combination of the facility and
the level. Possible values are:
<table>
syslog Priorities (in descending order)
<tr valign="top">
<td>Constant</td>
<td>Description</td>
</tr>
<tr valign="top">
<td>LOG_EMERG</td>
<td>system is unusable</td>
</tr>
<tr valign="top">
<td>LOG_ALERT</td>
<td>action must be taken immediately</td>
</tr>
<tr valign="top">
<td>LOG_CRIT</td>
<td>critical conditions</td>
</tr>
<tr valign="top">
<td>LOG_ERR</td>
<td>error conditions</td>
</tr>
<tr valign="top">
<td>LOG_WARNING</td>
<td>warning conditions</td>
</tr>
<tr valign="top">
<td>LOG_NOTICE</td>
<td>normal, but significant, condition</td>
</tr>
<tr valign="top">
<td>LOG_INFO</td>
<td>informational message</td>
</tr>
<tr valign="top">
<td>LOG_DEBUG</td>
<td>debug-level message</td>
</tr>
</table>
</p>
@param string $message <p>
The message to send, except that the two characters
%m will be replaced by the error message string
(strerror) corresponding to the present value of
errno.
</p>
|
syslog
|
php
|
deptrac/deptrac
|
vendor/jetbrains/phpstorm-stubs/standard/standard_8.php
|
https://github.com/deptrac/deptrac/blob/master/vendor/jetbrains/phpstorm-stubs/standard/standard_8.php
|
MIT
|
#[LanguageLevelTypeAware(['8.2' => 'true'], default: 'bool')]
function closelog()
{
}
|
Close connection to system logger
@link https://php.net/manual/en/function.closelog.php
|
closelog
|
php
|
deptrac/deptrac
|
vendor/jetbrains/phpstorm-stubs/standard/standard_8.php
|
https://github.com/deptrac/deptrac/blob/master/vendor/jetbrains/phpstorm-stubs/standard/standard_8.php
|
MIT
|
#[LanguageLevelTypeAware(["8.0" => "int"], default: "int|false")]
function stream_set_chunk_size($stream, int $size)
{
}
|
Set the stream chunk size.
@param resource $stream The target stream.
@param int $size The desired new chunk size.
@return int|false Returns the previous chunk size on success.<br>
Will return <b>FALSE</b> if chunk_size is less than 1 or greater than <b>PHP_INT_MAX</b>.
@link https://secure.php.net/manual/en/function.stream-set-chunk-size.php
@since 5.4
|
stream_set_chunk_size
|
php
|
deptrac/deptrac
|
vendor/jetbrains/phpstorm-stubs/standard/standard_8.php
|
https://github.com/deptrac/deptrac/blob/master/vendor/jetbrains/phpstorm-stubs/standard/standard_8.php
|
MIT
|
#[Deprecated(since: '5.3')]
function define_syslog_variables()
{
}
|
Initializes all syslog related variables
@link https://php.net/manual/en/function.define-syslog-variables.php
@return void
@removed 5.4
|
define_syslog_variables
|
php
|
deptrac/deptrac
|
vendor/jetbrains/phpstorm-stubs/standard/standard_8.php
|
https://github.com/deptrac/deptrac/blob/master/vendor/jetbrains/phpstorm-stubs/standard/standard_8.php
|
MIT
|
#[Pure]
#[LanguageLevelTypeAware(["8.0" => "string"], default: "string|false")]
function metaphone(string $string, int $max_phonemes = 0)
{
}
|
Calculate the metaphone key of a string
@link https://php.net/manual/en/function.metaphone.php
@param string $string <p>
The input string.
</p>
@param int $max_phonemes [optional] <p>
This parameter restricts the returned metaphone key to phonemes characters in length.
The default value of 0 means no restriction.
</p>
@return string|false the metaphone key as a string, or FALSE on failure
|
metaphone
|
php
|
deptrac/deptrac
|
vendor/jetbrains/phpstorm-stubs/standard/standard_8.php
|
https://github.com/deptrac/deptrac/blob/master/vendor/jetbrains/phpstorm-stubs/standard/standard_8.php
|
MIT
|
#[ArrayShape(["level" => "int", "type" => "int", "flags" => "int", "name" => "string", "del" => "int", "chunk_size" => "int", "buffer_size" => "int", "buffer_used" => "int"])]
function ob_get_status(bool $full_status = \false) : array
{
}
|
Get status of output buffers
@link https://php.net/manual/en/function.ob-get-status.php
@param bool $full_status [optional] <p>
true to return all active output buffer levels. If false or not
set, only the top level output buffer is returned.
</p>
@return array If called without the full_status parameter
or with full_status = false a simple array
with the following elements is returned:
<pre>
Array
(
[level] => 2
[type] => 0
[status] => 0
[name] => URL-Rewriter
[del] => 1
)
</pre>
<table>
<tr><th>Key</th><th>Value</th></tr>
<tr><td>level</td><td>Output nesting level</td></tr>
<tr><td>type</td><td><em>PHP_OUTPUT_HANDLER_INTERNAL (0)</em> or <em>PHP_OUTPUT_HANDLER_USER (1)</em></td></tr>
<tr><td>status</td><td>One of <em>PHP_OUTPUT_HANDLER_START</em> (0), <em>PHP_OUTPUT_HANDLER_CONT</em> (1) or <em>PHP_OUTPUT_HANDLER_END</em> (2)</td></tr>
<tr><td>name</td><td>Name of active output handler or ' default output handler' if none is set</td></tr>
<tr><td>del</td><td>Erase-flag as set by ob_start()</td></tr>
</table>
<p>
If called with full_status = TRUE an array with one element for each active output buffer
level is returned. The output level is used as key of the top level array and each array
element itself is another array holding status information on one active output level.
</p>
<pre>
Array
(
[0] => Array
(
[chunk_size] => 0
[size] => 40960
[block_size] => 10240
[type] => 1
[status] => 0
[name] => default output handler
[del] => 1
)
[1] => Array
(
[chunk_size] => 0
[size] => 40960
[block_size] => 10240
[type] => 0
[buffer_size] => 0
[status] => 0
[name] => URL-Rewriter
[del] => 1
)
)
</pre>
<p> The full output contains these additional elements:</p>
<table>
<tr><th>Key</th><th>Value</th></tr>
<tr><td>chunk_size</td><td>Chunk size as set by ob_start()</td></tr>
<tr><td>size</td><td>...</td></tr>
<tr><td>blocksize</td><td>...</td></tr>
</table>
|
ob_get_status
|
php
|
deptrac/deptrac
|
vendor/jetbrains/phpstorm-stubs/standard/standard_8.php
|
https://github.com/deptrac/deptrac/blob/master/vendor/jetbrains/phpstorm-stubs/standard/standard_8.php
|
MIT
|
#[Pure(\true)]
function ob_get_contents() : string|false
{
}
|
Return the contents of the output buffer
@link https://php.net/manual/en/function.ob-get-contents.php
@return string|false This will return the contents of the output buffer or false, if output
buffering isn't active.
|
ob_get_contents
|
php
|
deptrac/deptrac
|
vendor/jetbrains/phpstorm-stubs/standard/standard_8.php
|
https://github.com/deptrac/deptrac/blob/master/vendor/jetbrains/phpstorm-stubs/standard/standard_8.php
|
MIT
|
#[LanguageLevelTypeAware(['8.2' => 'true'], default: 'bool')]
function ksort(array &$array, int $flags = \SORT_REGULAR)
{
}
|
Sort an array by key
@link https://php.net/manual/en/function.ksort.php
@param array &$array <p>
The input array.
</p>
@param int $flags <p>
You may modify the behavior of the sort using the optional
parameter sort_flags, for details
see sort.
</p>
|
ksort
|
php
|
deptrac/deptrac
|
vendor/jetbrains/phpstorm-stubs/standard/standard_8.php
|
https://github.com/deptrac/deptrac/blob/master/vendor/jetbrains/phpstorm-stubs/standard/standard_8.php
|
MIT
|
#[LanguageLevelTypeAware(['8.2' => 'true'], default: 'bool')]
function krsort(array &$array, int $flags = \SORT_REGULAR)
{
}
|
Sort an array by key in reverse order
@link https://php.net/manual/en/function.krsort.php
@param array &$array <p>
The input array.
</p>
@param int $flags <p>
You may modify the behavior of the sort using the optional parameter
sort_flags, for details see
sort.
</p>
|
krsort
|
php
|
deptrac/deptrac
|
vendor/jetbrains/phpstorm-stubs/standard/standard_8.php
|
https://github.com/deptrac/deptrac/blob/master/vendor/jetbrains/phpstorm-stubs/standard/standard_8.php
|
MIT
|
#[LanguageLevelTypeAware(['8.3' => 'true'], default: 'bool')]
function natsort(array &$array)
{
}
|
Sort an array using a "natural order" algorithm
@link https://php.net/manual/en/function.natsort.php
@param array &$array <p>
The input array.
</p>
|
natsort
|
php
|
deptrac/deptrac
|
vendor/jetbrains/phpstorm-stubs/standard/standard_8.php
|
https://github.com/deptrac/deptrac/blob/master/vendor/jetbrains/phpstorm-stubs/standard/standard_8.php
|
MIT
|
#[LanguageLevelTypeAware(['8.3' => 'true'], default: 'bool')]
function natcasesort(array &$array)
{
}
|
Sort an array using a case insensitive "natural order" algorithm
@link https://php.net/manual/en/function.natcasesort.php
@param array &$array <p>
The input array.
</p>
|
natcasesort
|
php
|
deptrac/deptrac
|
vendor/jetbrains/phpstorm-stubs/standard/standard_8.php
|
https://github.com/deptrac/deptrac/blob/master/vendor/jetbrains/phpstorm-stubs/standard/standard_8.php
|
MIT
|
#[LanguageLevelTypeAware(['8.2' => 'true'], default: 'bool')]
function asort(array &$array, int $flags = \SORT_REGULAR)
{
}
|
Sort an array and maintain index association
@link https://php.net/manual/en/function.asort.php
@param array &$array <p>
The input array.
</p>
@param int $flags <p>
You may modify the behavior of the sort using the optional
parameter sort_flags, for details
see sort.
</p>
|
asort
|
php
|
deptrac/deptrac
|
vendor/jetbrains/phpstorm-stubs/standard/standard_8.php
|
https://github.com/deptrac/deptrac/blob/master/vendor/jetbrains/phpstorm-stubs/standard/standard_8.php
|
MIT
|
#[LanguageLevelTypeAware(['8.2' => 'true'], default: 'bool')]
function arsort(array &$array, int $flags = \SORT_REGULAR)
{
}
|
Sort an array in reverse order and maintain index association
@link https://php.net/manual/en/function.arsort.php
@param array &$array <p>
The input array.
</p>
@param int $flags <p>
You may modify the behavior of the sort using the optional parameter
sort_flags, for details see
sort.
</p>
|
arsort
|
php
|
deptrac/deptrac
|
vendor/jetbrains/phpstorm-stubs/standard/standard_8.php
|
https://github.com/deptrac/deptrac/blob/master/vendor/jetbrains/phpstorm-stubs/standard/standard_8.php
|
MIT
|
#[LanguageLevelTypeAware(['8.2' => 'true'], default: 'bool')]
function sort(array &$array, int $flags = \SORT_REGULAR)
{
}
|
Sort an array
@link https://php.net/manual/en/function.sort.php
@param array &$array <p>
The input array.
</p>
@param int $flags <p>
The optional second parameter sort_flags
may be used to modify the sorting behavior using these values.
</p>
<p>
Sorting type flags:<br>
SORT_REGULAR - compare items normally
(don't change types)</p>
|
sort
|
php
|
deptrac/deptrac
|
vendor/jetbrains/phpstorm-stubs/standard/standard_8.php
|
https://github.com/deptrac/deptrac/blob/master/vendor/jetbrains/phpstorm-stubs/standard/standard_8.php
|
MIT
|
#[LanguageLevelTypeAware(['8.3' => 'true'], default: 'bool')]
function rsort(array &$array, int $flags = \SORT_REGULAR)
{
}
|
Sort an array in reverse order
@link https://php.net/manual/en/function.rsort.php
@param array &$array <p>
The input array.
</p>
@param int $flags <p>
You may modify the behavior of the sort using the optional
parameter sort_flags, for details see
sort.
</p>
|
rsort
|
php
|
deptrac/deptrac
|
vendor/jetbrains/phpstorm-stubs/standard/standard_8.php
|
https://github.com/deptrac/deptrac/blob/master/vendor/jetbrains/phpstorm-stubs/standard/standard_8.php
|
MIT
|
#[LanguageLevelTypeAware(['8.2' => 'true'], default: 'bool')]
function usort(array &$array, callable $callback)
{
}
|
Sort an array by values using a user-defined comparison function
@link https://php.net/manual/en/function.usort.php
@param array &$array <p>
The input array.
</p>
@param callable $callback <p>
The comparison function must return an integer less than, equal to, or
greater than zero if the first argument is considered to be
respectively less than, equal to, or greater than the second.
</p>
|
usort
|
php
|
deptrac/deptrac
|
vendor/jetbrains/phpstorm-stubs/standard/standard_8.php
|
https://github.com/deptrac/deptrac/blob/master/vendor/jetbrains/phpstorm-stubs/standard/standard_8.php
|
MIT
|
#[LanguageLevelTypeAware(['8.2' => 'true'], default: 'bool')]
function uasort(array &$array, callable $callback)
{
}
|
Sort an array with a user-defined comparison function and maintain index association
@link https://php.net/manual/en/function.uasort.php
@param array &$array <p>
The input array.
</p>
@param callable $callback <p>
See usort and uksort for
examples of user-defined comparison functions.
</p>
|
uasort
|
php
|
deptrac/deptrac
|
vendor/jetbrains/phpstorm-stubs/standard/standard_8.php
|
https://github.com/deptrac/deptrac/blob/master/vendor/jetbrains/phpstorm-stubs/standard/standard_8.php
|
MIT
|
#[LanguageLevelTypeAware(['8.2' => 'true'], default: 'bool')]
function uksort(array &$array, callable $callback)
{
}
|
Sort an array by keys using a user-defined comparison function
@link https://php.net/manual/en/function.uksort.php
@param array &$array <p>
The input array.
</p>
@param callable $callback <p>
The callback comparison function.
</p>
<p>
Function cmp_function should accept two
parameters which will be filled by pairs of array keys.
The comparison function must return an integer less than, equal
to, or greater than zero if the first argument is considered to
be respectively less than, equal to, or greater than the
second.
</p>
|
uksort
|
php
|
deptrac/deptrac
|
vendor/jetbrains/phpstorm-stubs/standard/standard_8.php
|
https://github.com/deptrac/deptrac/blob/master/vendor/jetbrains/phpstorm-stubs/standard/standard_8.php
|
MIT
|
#[LanguageLevelTypeAware(['8.2' => 'true'], default: 'bool')]
function shuffle(array &$array)
{
}
|
Shuffle an array
@link https://php.net/manual/en/function.shuffle.php
@param array &$array <p>
The array.
</p>
|
shuffle
|
php
|
deptrac/deptrac
|
vendor/jetbrains/phpstorm-stubs/standard/standard_8.php
|
https://github.com/deptrac/deptrac/blob/master/vendor/jetbrains/phpstorm-stubs/standard/standard_8.php
|
MIT
|
#[LanguageLevelTypeAware(['8.2' => 'true'], default: 'bool')]
function array_walk(object|array &$array, callable $callback, mixed $arg)
{
}
|
Apply a user function to every member of an array
@link https://php.net/manual/en/function.array-walk.php
@param array|object &$array <p>
The input array.
</p>
@param callable $callback <p>
Typically, funcname takes on two parameters.
The array parameter's value being the first, and
the key/index second.
</p>
<p>
If funcname needs to be working with the
actual values of the array, specify the first parameter of
funcname as a
reference. Then,
any changes made to those elements will be made in the
original array itself.
</p>
<p>
Users may not change the array itself from the
callback function. e.g. Add/delete elements, unset elements, etc. If
the array that array_walk is applied to is
changed, the behavior of this function is undefined, and unpredictable.
</p>
@param mixed $arg [optional] <p>
If the optional userdata parameter is supplied,
it will be passed as the third parameter to the callback
funcname.
</p>
|
array_walk
|
php
|
deptrac/deptrac
|
vendor/jetbrains/phpstorm-stubs/standard/standard_8.php
|
https://github.com/deptrac/deptrac/blob/master/vendor/jetbrains/phpstorm-stubs/standard/standard_8.php
|
MIT
|
#[LanguageLevelTypeAware(['8.2' => 'true'], default: 'bool')]
function array_walk_recursive(object|array &$array, callable $callback, mixed $arg)
{
}
|
Apply a user function recursively to every member of an array
@link https://php.net/manual/en/function.array-walk-recursive.php
@param array|object &$array <p>
The input array.
</p>
@param callable $callback <p>
Typically, funcname takes on two parameters.
The input parameter's value being the first, and
the key/index second.
</p>
<p>
If funcname needs to be working with the
actual values of the array, specify the first parameter of
funcname as a
reference. Then,
any changes made to those elements will be made in the
original array itself.
</p>
@param mixed $arg [optional] <p>
If the optional userdata parameter is supplied,
it will be passed as the third parameter to the callback
funcname.
</p>
|
array_walk_recursive
|
php
|
deptrac/deptrac
|
vendor/jetbrains/phpstorm-stubs/standard/standard_8.php
|
https://github.com/deptrac/deptrac/blob/master/vendor/jetbrains/phpstorm-stubs/standard/standard_8.php
|
MIT
|
#[Pure]
function count(\Countable|array $value, int $mode = \COUNT_NORMAL) : int
{
}
|
Counts all elements in an array, or something in an object.
<p>For objects, if you have SPL installed, you can hook into count() by implementing interface {@see Countable}.
The interface has exactly one method, {@see Countable::count()}, which returns the return value for the count() function.
Please see the {@see Array} section of the manual for a detailed explanation of how arrays are implemented and used in PHP.</p>
@link https://php.net/manual/en/function.count.php
@param array|Countable $value The array or the object.
@param int $mode [optional] If the optional mode parameter is set to
COUNT_RECURSIVE (or 1), count
will recursively count the array. This is particularly useful for
counting all the elements of a multidimensional array. count does not detect infinite recursion.
@return int<0,max> the number of elements in var, which is
typically an array, since anything else will have one
element.
<p>
If var is not an array or an object with
implemented Countable interface,
1 will be returned.
There is one exception, if var is null,
0 will be returned.
</p>
<p>
Caution: count may return 0 for a variable that isn't set,
but it may also return 0 for a variable that has been initialized with an
empty array. Use isset to test if a variable is set.
</p>
|
count
|
php
|
deptrac/deptrac
|
vendor/jetbrains/phpstorm-stubs/standard/standard_8.php
|
https://github.com/deptrac/deptrac/blob/master/vendor/jetbrains/phpstorm-stubs/standard/standard_8.php
|
MIT
|
#[Pure]
function current(object|array $array) : mixed
{
}
|
Return the current element in an array
@link https://php.net/manual/en/function.current.php
@param array|object $array <p>
The array.
</p>
@return mixed|false The current function simply returns the
value of the array element that's currently being pointed to by the
internal pointer. It does not move the pointer in any way. If the
internal pointer points beyond the end of the elements list or the array is
empty, current returns false.
@meta
|
current
|
php
|
deptrac/deptrac
|
vendor/jetbrains/phpstorm-stubs/standard/standard_8.php
|
https://github.com/deptrac/deptrac/blob/master/vendor/jetbrains/phpstorm-stubs/standard/standard_8.php
|
MIT
|
#[Pure]
function key(object|array $array) : string|int|null
{
}
|
Fetch a key from an array
@link https://php.net/manual/en/function.key.php
@param array|object $array <p>
The array.
</p>
@return int|string|null The key function simply returns the
key of the array element that's currently being pointed to by the
internal pointer. It does not move the pointer in any way. If the
internal pointer points beyond the end of the elements list or the array is
empty, key returns null.
|
key
|
php
|
deptrac/deptrac
|
vendor/jetbrains/phpstorm-stubs/standard/standard_8.php
|
https://github.com/deptrac/deptrac/blob/master/vendor/jetbrains/phpstorm-stubs/standard/standard_8.php
|
MIT
|
#[Pure]
function min(#[PhpStormStubsElementAvailable(from: '8.0')] mixed $value, #[PhpStormStubsElementAvailable(from: '5.3', to: '7.4')] mixed $values, mixed ...$values) : mixed
{
}
|
Find lowest value
@link https://php.net/manual/en/function.min.php
@param array|mixed $value Array to look through or first value to compare
@param mixed ...$values any comparable value
@return mixed min returns the numerically lowest of the
parameter values.
|
min
|
php
|
deptrac/deptrac
|
vendor/jetbrains/phpstorm-stubs/standard/standard_8.php
|
https://github.com/deptrac/deptrac/blob/master/vendor/jetbrains/phpstorm-stubs/standard/standard_8.php
|
MIT
|
#[Pure]
function max(#[PhpStormStubsElementAvailable(from: '8.0')] mixed $value, #[PhpStormStubsElementAvailable(from: '5.3', to: '7.4')] mixed $values, mixed ...$values) : mixed
{
}
|
Find highest value
@link https://php.net/manual/en/function.max.php
@param array|mixed $value Array to look through or first value to compare
@param mixed ...$values any comparable value
@return mixed max returns the numerically highest of the
parameter values, either within a arg array or two arguments.
|
max
|
php
|
deptrac/deptrac
|
vendor/jetbrains/phpstorm-stubs/standard/standard_8.php
|
https://github.com/deptrac/deptrac/blob/master/vendor/jetbrains/phpstorm-stubs/standard/standard_8.php
|
MIT
|
#[Pure]
function in_array(mixed $needle, array $haystack, bool $strict = \false) : bool
{
}
|
Checks if a value exists in an array
@link https://php.net/manual/en/function.in-array.php
@param mixed $needle <p>
The searched value.
</p>
<p>
If needle is a string, the comparison is done
in a case-sensitive manner.
</p>
@param array $haystack <p>
The array.
</p>
@param bool $strict [optional] <p>
If the third parameter strict is set to true
then the in_array function will also check the
types of the
needle in the haystack.
</p>
@return bool true if needle is found in the array,
false otherwise.
|
in_array
|
php
|
deptrac/deptrac
|
vendor/jetbrains/phpstorm-stubs/standard/standard_8.php
|
https://github.com/deptrac/deptrac/blob/master/vendor/jetbrains/phpstorm-stubs/standard/standard_8.php
|
MIT
|
#[Pure]
function array_search(mixed $needle, array $haystack, bool $strict = \false) : string|int|false
{
}
|
Searches the array for a given value and returns the first corresponding key if successful
@link https://php.net/manual/en/function.array-search.php
@param mixed $needle <p>
The searched value.
</p>
<p>
If needle is a string, the comparison is done
in a case-sensitive manner.
</p>
@param array $haystack <p>
The array.
</p>
@param bool $strict [optional] <p>
If the third parameter strict is set to true
then the array_search function will also check the
types of the
needle in the haystack.
</p>
@return int|string|false the key for needle if it is found in the
array, false otherwise.
</p>
<p>
If needle is found in haystack
more than once, the first matching key is returned. To return the keys for
all matching values, use array_keys with the optional
search_value parameter instead.
|
array_search
|
php
|
deptrac/deptrac
|
vendor/jetbrains/phpstorm-stubs/standard/standard_8.php
|
https://github.com/deptrac/deptrac/blob/master/vendor/jetbrains/phpstorm-stubs/standard/standard_8.php
|
MIT
|
#[Pure]
function compact(#[PhpStormStubsElementAvailable(from: '8.0')] $var_name, #[PhpStormStubsElementAvailable(from: '5.3', to: '7.4')] $var_names, ...$var_names) : array
{
}
|
Create array containing variables and their values
@link https://php.net/manual/en/function.compact.php
@param mixed $var_name <p>
compact takes a variable number of parameters.
Each parameter can be either a string containing the name of the
variable, or an array of variable names. The array can contain other
arrays of variable names inside it; compact
handles it recursively.
</p>
@param mixed ...$var_names
@return array the output array with all the variables added to it.
|
compact
|
php
|
deptrac/deptrac
|
vendor/jetbrains/phpstorm-stubs/standard/standard_8.php
|
https://github.com/deptrac/deptrac/blob/master/vendor/jetbrains/phpstorm-stubs/standard/standard_8.php
|
MIT
|
#[Pure]
function array_fill(int $start_index, int $count, mixed $value) : array
{
}
|
Fill an array with values
@link https://php.net/manual/en/function.array-fill.php
@param int $start_index <p>
The first index of the returned array.
Supports non-negative indexes only.
</p>
@param int $count <p>
Number of elements to insert
</p>
@param mixed $value <p>
Value to use for filling
</p>
@return array the filled array
|
array_fill
|
php
|
deptrac/deptrac
|
vendor/jetbrains/phpstorm-stubs/standard/standard_8.php
|
https://github.com/deptrac/deptrac/blob/master/vendor/jetbrains/phpstorm-stubs/standard/standard_8.php
|
MIT
|
#[Pure]
function array_fill_keys(array $keys, mixed $value) : array
{
}
|
Fill an array with values, specifying keys
@link https://php.net/manual/en/function.array-fill-keys.php
@param array $keys <p>
Array of values that will be used as keys. Illegal values
for key will be converted to string.
</p>
@param mixed $value <p>
Value to use for filling
</p>
@return array the filled array
|
array_fill_keys
|
php
|
deptrac/deptrac
|
vendor/jetbrains/phpstorm-stubs/standard/standard_8.php
|
https://github.com/deptrac/deptrac/blob/master/vendor/jetbrains/phpstorm-stubs/standard/standard_8.php
|
MIT
|
#[Pure]
function range(#[LanguageLevelTypeAware(['8.3' => 'string|int|float'], default: '')] $start, #[LanguageLevelTypeAware(['8.3' => 'string|int|float'], default: '')] $end, int|float $step = 1) : array
{
}
|
Create an array containing a range of elements
@link https://php.net/manual/en/function.range.php
@param mixed $start <p>
First value of the sequence.
</p>
@param mixed $end <p>
The sequence is ended upon reaching the end value.
</p>
@param positive-int|float $step [optional] <p>
If a step value is given, it will be used as the
increment between elements in the sequence. step
should be given as a positive number. If not specified,
step will default to 1.
</p>
@return array an array of elements from start to
end, inclusive.
|
range
|
php
|
deptrac/deptrac
|
vendor/jetbrains/phpstorm-stubs/standard/standard_8.php
|
https://github.com/deptrac/deptrac/blob/master/vendor/jetbrains/phpstorm-stubs/standard/standard_8.php
|
MIT
|
#[Pure]
function array_merge(#[PhpStormStubsElementAvailable(from: '5.3', to: '7.3')] $array, #[PhpStormStubsElementAvailable(from: '5.3', to: '7.0')] $arrays, array ...$arrays) : array
{
}
|
Merges the elements of one or more arrays together (if the input arrays have the same string keys, then the later value for that key will overwrite the previous one; if the arrays contain numeric keys, the later value will be appended)
Since 7.4.0 this function can be called without any parameter, and it will return empty array.
@link https://php.net/manual/en/function.array-merge.php
@param array ...$arrays <p>
Variable list of arrays to merge.
</p>
@return array the resulting array.
@meta
|
array_merge
|
php
|
deptrac/deptrac
|
vendor/jetbrains/phpstorm-stubs/standard/standard_8.php
|
https://github.com/deptrac/deptrac/blob/master/vendor/jetbrains/phpstorm-stubs/standard/standard_8.php
|
MIT
|
#[Pure]
function array_merge_recursive(#[PhpStormStubsElementAvailable(from: '5.3', to: '7.3')] array $arr1, #[PhpStormStubsElementAvailable(from: '5.3', to: '7.0')] array $arrays, array ...$arrays) : array
{
}
|
Merge two or more arrays recursively
@link https://php.net/manual/en/function.array-merge-recursive.php
@param array ...$arrays Variable list of arrays to recursively merge.
@return array An array of values resulted from merging the arguments together.
|
array_merge_recursive
|
php
|
deptrac/deptrac
|
vendor/jetbrains/phpstorm-stubs/standard/standard_9.php
|
https://github.com/deptrac/deptrac/blob/master/vendor/jetbrains/phpstorm-stubs/standard/standard_9.php
|
MIT
|
#[Pure]
function array_replace(array $array, #[PhpStormStubsElementAvailable(from: '5.3', to: '7.0')] $replacements, array ...$replacements) : array
{
}
|
array_replace() replaces the values of the first array with the same values from all the following arrays.
If a key from the first array exists in the second array, its value will be replaced by the value from the second array.
If the key exists in the second array, and not the first, it will be created in the first array.
If a key only exists in the first array, it will be left as is. If several arrays are passed for replacement,
they will be processed in order, the later arrays overwriting the previous values.
array_replace() is not recursive : it will replace values in the first array by whatever type is in the second array.
@link https://php.net/manual/en/function.array-replace.php
@param array $array <p>
The array in which elements are replaced.
</p>
@param array ...$replacements <p>
The array from which elements will be extracted.
</p>
@return array or null if an error occurs.
|
array_replace
|
php
|
deptrac/deptrac
|
vendor/jetbrains/phpstorm-stubs/standard/standard_9.php
|
https://github.com/deptrac/deptrac/blob/master/vendor/jetbrains/phpstorm-stubs/standard/standard_9.php
|
MIT
|
#[Pure]
function array_replace_recursive(array $array, #[PhpStormStubsElementAvailable(from: '5.3', to: '7.0')] $replacements, array ...$replacements) : array
{
}
|
Replaces elements from passed arrays into the first array recursively
@link https://php.net/manual/en/function.array-replace-recursive.php
@param array $array <p>
The array in which elements are replaced.
</p>
@param array ...$replacements <p>
The array from which elements will be extracted.
</p>
@return array an array, or null if an error occurs.
|
array_replace_recursive
|
php
|
deptrac/deptrac
|
vendor/jetbrains/phpstorm-stubs/standard/standard_9.php
|
https://github.com/deptrac/deptrac/blob/master/vendor/jetbrains/phpstorm-stubs/standard/standard_9.php
|
MIT
|
#[Pure]
function array_keys(array $array, mixed $filter_value, bool $strict = \false) : array
{
}
|
Return all the keys or a subset of the keys of an array
@link https://php.net/manual/en/function.array-keys.php
@param array $array <p>
An array containing keys to return.
</p>
@param mixed $filter_value [optional] <p>
If specified, then only keys containing these values are returned.
</p>
@param bool $strict [optional] <p>
Determines if strict comparison (===) should be used during the search.
</p>
@return int[]|string[] an array of all the keys in input.
|
array_keys
|
php
|
deptrac/deptrac
|
vendor/jetbrains/phpstorm-stubs/standard/standard_9.php
|
https://github.com/deptrac/deptrac/blob/master/vendor/jetbrains/phpstorm-stubs/standard/standard_9.php
|
MIT
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.