跳转到主要内容
目录759
-
第 1 章
Appendices
146 页
-
1.1
About the manual
Formats
The PHP manual is provided in several formats. These formats can be divided into two groups: online...
15 小时前
-
1.2
List of Function Aliases
There are quite a few functions in PHP which you can call with more than one name. In some cases there is n...
15 小时前
-
1.3
PHP type comparison tables
The following tables demonstrate behaviors of PHP types and comparison operators, for both loose and strict...
15 小时前
-
1.4
Configure options
List of core configure options
Below is a partial list of configure options used by the PHP
configure scri...
15 小时前
-
1.5
misc
Misc options
--enable-debug
Compile with debugging symbols.
--with-layout=TYPE
Sets how installed files wil...
15 小时前
-
1.6
php
PHP options
--enable-maintainer-mode
Enable make rules and dependencies not useful (and sometimes confusing...
15 小时前
-
1.7
servers
SAPI options
The following list contains the available SAPIENTITYs (
Server Application Programming Interfa...
15 小时前
-
1.8
Debugging in PHP
About debugging in PHP
PHP is shipped with a basic command line interactive debugger, phpdbg.
Most IDEs hav...
15 小时前
-
1.9
About manual examples
It should be noted that many examples in the PHP documentation omit error and exception handling for clarit...
15 小时前
-
1.10
extensions
ENTITY
ENTITY
???
???
???
???
???
???
???
???
???
???
???
???
???
???
???
???
???
???
???
???
???
???
???
?...
15 小时前
-
1.11
List of Available Filters
The following is a list of a few built-in stream filters for use with
stream_filter_append. Your version o...
15 小时前
-
1.12
History of PHP and Related Projects
PHP has come a long way since its birth in the mid-1990's. From humble beginnings to becoming one of the mo...
15 小时前
-
1.13
Description of core ENTITY directives
This list includes the core ENTITY directives you can set to configure your PHP setup. Directives handled b...
15 小时前
-
1.14
List of ENTITY directives
This list includes the ENTITY directives that can be used to configure PHP.
The "ENTITY" column shows the m...
15 小时前
-
1.15
ENTITY directives
ENTITY ENTITY ENTITY
15 小时前
-
1.16
List of ENTITY sections
This list includes the ENTITY sections you can set to configure your PHP setup on a per Host or Path basis....
15 小时前
-
1.17
Creative Commons Attribution 3.0
THE WORK (AS DEFINED BELOW) IS PROVIDED UNDER THE TERMS OF THIS CREATIVE COMMONS PUBLIC LICENSE ("CCPL" OR ...
15 小时前
-
1.18
Migrating from PHP 5.5.x to PHP 5.6.x
Most improvements in PHP 5.6.x have no impact on existing code. There are a few incompatibilities and new f...
15 小时前
-
1.19
Changed functions
PHP Core
crypt will now raise an
E_NOTICE error if the
salt parameter is omitted.
substr_compare will now...
15 小时前
-
1.20
New global constants
GD
IMG_WEBP (as of PHP 5.6.25)
LDAP
LDAP_ESCAPE_DN
LDAP_ESCAPE_FILTER
OpenSSL
OPENSSL_DEFAULT_STREAM_CIPHER...
15 小时前
-
1.21
Deprecated features in PHP 5.6.x
Calls from incompatible context
Methods called from an incompatible context are now deprecated, and will ge...
15 小时前
-
1.22
Other changes to extensions
cURL
A number of constants marked obsolete in the cURL library have now been removed:
CURLOPT_CLOSEPOLICY
C...
15 小时前
-
1.23
Backward incompatible changes
Although most existing PHP 5 code should work without changes, please take note of some backward incompatib...
15 小时前
-
1.24
New features
Constant expressions
It is now possible to provide a scalar expression involving numeric and string literal...
15 小时前
-
1.25
New functions
Date and Time
DateTimeImmutable::createFromMutable
GMP
gmp_root
gmp_rootrem
Hash
hash_equals
LDAP
ldap_esca...
15 小时前
-
1.26
OpenSSL changes in PHP 5.6.x
Stream wrappers now verify peer certificates and host names by default when using SSL/TLS
ENTITY
Certificat...
15 小时前
-
1.27
Migrating from PHP 5.6.x to PHP 7.0.x
Despite the fact that PHP 7.0 is a new major version, efforts have been made to make migration as painless ...
15 小时前
-
1.28
Changed functions
PHP Core
debug_zval_dump now prints "int" instead of "long", and "float" instead of "double"
dirname now op...
15 小时前
-
1.29
New Classes and Interfaces
Intl
IntlChar
Reflection
ReflectionGenerator
ReflectionType
Session Handling
SessionUpdateTimestampHandlerI...
15 小时前
-
1.30
New Global Constants
Core Predefined Constants
PHP_INT_MIN
GD
IMG_WEBP (as of PHP 7.0.10)
JSON
JSON_ERROR_INVALID_PROPERTY_NAME
...
15 小时前
-
1.31
Deprecated features in PHP 7.0.x
PHP 4 style constructors
PHP 4 style constructors (methods that have the same name as the class they are de...
15 小时前
-
1.32
Backward incompatible changes
ENTITY ENTITY ENTITY ENTITY ENTITY ENTITY ENTITY ENTITY
15 小时前
-
1.33
Changes to error and exception handling
Many fatal and recoverable fatal errors have been converted to exceptions in PHP 7. These error exceptions ...
15 小时前
-
1.34
Changes to ENTITY
Minor changes have been made to the behaviour of the ENTITY control structure, primarily around the handlin...
15 小时前
-
1.35
Changes to `int` handling
Invalid octal literals
Previously, octal literals that contained invalid numbers were silently truncated (
...
15 小时前
-
1.36
Other backward incompatible changes
New objects cannot be assigned by reference
The result of the ENTITY statement can no longer be assigned to...
15 小时前
-
1.37
Removed functions
call_user_method and
call_user_method_array
These functions were deprecated in PHP 4.1.0 in favour of
cal...
15 小时前
-
1.38
Removed INI directives
Removed features
The following INI directives have been removed as their associated features have also been...
15 小时前
-
1.39
Changes to `string` handling
Hexadecimal strings are no longer considered numeric
Strings containing hexadecimal numbers are no longer c...
15 小时前
-
1.40
Changes to variable handling
PHP 7 now uses an abstract syntax tree when parsing source files. This has permitted many improvements to t...
15 小时前
-
1.41
New features
Scalar type declarations
Scalar type declarations come in two flavours: coercive (default) and strict. The ...
15 小时前
-
1.42
New functions
Closure
Closure::call
CSPRNG
random_bytes
random_int
Error Handling and Logging
error_clear_last
Generator
...
15 小时前
-
1.43
Other Changes
Loosening Reserved Word Restrictions
Globally reserved words as property, constant, and method names within...
15 小时前
-
1.44
Removed Extensions and SAPIs
Removed Extensions
ereg
mssql
mysql
sybase_ct
Removed SAPIs
aolserver
apache
apache_hooks
apache2filter
cau...
15 小时前
-
1.45
Changes in SAPI Modules
FPM
Unqualified listen ports now listen on both IPv4 and IPv6
In PHP 5, a listen directive with only a port...
15 小时前
-
1.46
Migrating from PHP 7.0.x to PHP 7.1.x
This new minor version brings with it a number of new features and a few incompatibilities that should be t...
15 小时前
-
1.47
Changed functions
PHP Core
getopt has an optional third parameter that exposes the index of the next element in the argument ...
15 小时前
-
1.48
New global constants
Core Predefined Constants
PHP_FD_SETSIZE
CURL
CURLMOPT_PUSHFUNCTION
CURL_PUSH_OK
CURL_PUSH_DENY
Data Filter...
15 小时前
-
1.49
Deprecated features in PHP 7.1.x
ext/mcrypt
The mcrypt extension has been abandonware for nearly a decade now, and was also fairly complex t...
15 小时前
-
1.50
Backward incompatible changes
Throw on passing too few function arguments
Previously, a warning would be emitted for invoking user-define...
15 小时前
-
1.51
New features
Nullable types
Type declarations for parameters and return values can now be marked as nullable by prefixin...
15 小时前
-
1.52
New functions
PHP Core
sapi_windows_cp_get
sapi_windows_cp_set
sapi_windows_cp_conv
sapi_windows_cp_is_utf8
Closure
Closu...
15 小时前
-
1.53
Other changes
Notices and warnings on arithmetic with invalid strings
New
E_WARNING and
E_NOTICE errors have been intro...
15 小时前
-
1.54
Windows Support
Support for long and UTF-8 path
If a web application is UTF-8 conform, no further action is required. For a...
15 小时前
-
1.55
Migrating from PHP 7.1.x to PHP 7.2.x
This new minor version brings with it a number of new features and a few incompatibilities that should be t...
15 小时前
-
1.56
New global constants
PHP Core
PHP_FLOAT_DIG
PHP_FLOAT_EPSILON
PHP_FLOAT_MIN
PHP_FLOAT_MAX
PHP_OS_FAMILY
File Information
FILEINF...
15 小时前
-
1.57
Deprecated features in PHP 7.2.x
Unquoted strings
Unquoted strings that are non-existent global constants are taken to be strings of themsel...
15 小时前
-
1.58
Backward incompatible changes
Prevent
number_format from returning negative zero
Previously, it was possible for the
number_format func...
15 小时前
-
1.59
New features
New object type
A new type,
object, has been introduced that can be used for (contravariant) parameter typ...
15 小时前
-
1.60
New functions
PHP Core
stream_isatty
sapi_windows_vt100_support
SPL
spl_object_id
DOM
DomNodeList::count
DOMNamedNodeMap:...
15 小时前
-
1.61
Other changes
Moving of
utf8_encode and
utf8_decode
The
utf8_encode and
utf8_decode functions have now been moved to ...
15 小时前
-
1.62
Migrating from PHP 7.2.x to PHP 7.3.x
This new minor version brings with it a number of new features and a few incompatibilities that should be t...
15 小时前
-
1.63
New Global Constants
PHP Core
PASSWORD_ARGON2ID
Client URL Library
CURLAUTH_BEARER
CURLAUTH_GSSAPI
CURLE_WEIRD_SERVER_REPLY
CURL...
15 小时前
-
1.64
Deprecated Features
PHP Core
Case-Insensitive Constants
The declaration of case-insensitive constants has been deprecated. Pass...
15 小时前
-
1.65
Backward Incompatible Changes
PHP Core
Heredoc/Nowdoc Ending Label Interpretation
Due to the introduction of flexible heredoc/nowdoc synt...
15 小时前
-
1.66
New Features
PHP Core
More Flexible Heredoc and Nowdoc Syntax
The closing marker for doc strings is no longer required t...
15 小时前
-
1.67
New Functions
PHP Core
array_key_first
array_key_last
gc_status
hrtime
is_countable
net_get_interfaces
FastCGI Process Ma...
15 小时前
-
1.68
Other Changes
PHP Core
Set(raw)cookie accepts $option Argument
setcookie and
setrawcookie now also support the following...
15 小时前
-
1.69
Windows Support
PHP Core
More POSIX Conforming File Deletion
File descriptors are opened in shared read/write/delete mode b...
15 小时前
-
1.70
Migrating from PHP 7.3.x to PHP 7.4.x
This new minor version brings with it a number of new features and a few incompatibilities that should be t...
15 小时前
-
1.71
New Global Constants
PHP Core
PHP_WINDOWS_EVENT_CTRL_C
PHP_WINDOWS_EVENT_CTRL_BREAK
Multibyte String
MB_ONIGURUMA_VERSION
Socket...
15 小时前
-
1.72
Deprecated Features
PHP Core
Nested ternary operators without explicit parentheses
Nested ternary operations must explicitly us...
15 小时前
-
1.73
Backward Incompatible Changes
PHP Core
Array-style access of non-arrays
Trying to use values of type
null,
bool,
int,
float or
resou...
15 小时前
-
1.74
New Classes and Interfaces
Reflection
ReflectionReference
15 小时前
-
1.75
New Features
PHP Core
Typed properties
Class properties now support type declarations.
<?php
class User {
public int...
15 小时前
-
1.76
New Functions
PHP Core
get_mangled_object_vars
password_algos
sapi_windows_set_ctrl_handler
GD
imagecreatefromtga
Multiby...
15 小时前
-
1.77
Other Changes
Performance Improvements
PHP Core
A specialized VM opcode for the
array_key_exists function has been added...
15 小时前
-
1.78
Removed Extensions
These extensions have been moved to PECL and are no longer part of the PHP distribution. The PECL package v...
15 小时前
-
1.79
Windows Support
configure flags
configure now regards additional
CFLAGS and
LDFLAGS set as environment variables.
CTRL ha...
15 小时前
-
1.80
Migrating from PHP 7.4.x to PHP 8.0.x
This new major version brings with it a number of new features and some incompatibilities that should be te...
15 小时前
-
1.81
Deprecated Features
PHP Core
If a parameter with a default value is followed by a required parameter, the default value has no ...
15 小时前
-
1.82
Backward Incompatible Changes
PHP Core
String to Number Comparison
Non-strict comparisons between numbers and non-numeric strings now wor...
15 小时前
-
1.83
New Classes and Interfaces
cURL
CurlHandle
CurlMultiHandle
CurlShareHandle
Enchant
EnchantBroker
EnchantDictionary
GD
GdImage
OpenSSL
...
15 小时前
-
1.84
New Features
PHP Core
Named Arguments
Support for Named Arguments has been added.
Attributes
Support for Attributes has ...
15 小时前
-
1.85
Other Changes
Changes in SAPI Modules
Apache2Handler
The PHP module has been renamed from
php7_module to
php_module.
Ch...
15 小时前
-
1.86
Migrating from PHP 8.0.x to PHP 8.1.x
This new minor version brings with it a number of new features and a few incompatibilities that should be t...
15 小时前
-
1.87
New Global Constants
cURL
CURLOPT_DOH_URL
CURLOPT_ISSUERCERT_BLOB
CURLOPT_PROXY_ISSUERCERT
CURLOPT_PROXY_ISSUERCERT_BLOB
CURLOPT...
15 小时前
-
1.88
Deprecated Features
PHP Core
Implementing Serializable without
__serialize and
__unserialize
Either only the new methods shou...
15 小时前
-
1.89
Backward Incompatible Changes
PHP Core
$GLOBALS Access Restrictions
Access to the
$GLOBALS array is now subject to a number of restricti...
15 小时前
-
1.90
New Classes and Interfaces
cURL
CURLStringFile
FileInfo
finfo
FTP
FTP\Connection
IMAP
IMAP\Connection
Intl
IntlDatePatternGenerator
LD...
15 小时前
-
1.91
New Features
PHP Core
Integer Octal Literal Prefix
Octal integers can now use an explicit
0o/
0O prefix in integer lite...
15 小时前
-
1.92
New Functions
PHP Core
array_is_list
GD
imagecreatefromavif
imageavif
MySQLi
mysqli_result::fetch_column
mysqli_fetch_col...
15 小时前
-
1.93
Other Changes
Changes in SAPI Modules
CLI
Using
-a without the readline extension will now result in an error. Previousl...
15 小时前
-
1.94
Migrating from PHP 8.1.x to PHP 8.2.x
This new minor version brings with it a number of new features and a few incompatibilities that should be t...
15 小时前
-
1.95
New Global Constants
COM
DISP_E_PARAMNOTFOUND
LOCALE_NEUTRAL
cURL
CURLALTSVC_H1 (libcurl >= 7.64.1)
CURLALTSVC_H2 (libcurl >= 7....
15 小时前
-
1.96
Deprecated Features
PHP Core
Usage of dynamic properties
The creation of dynamic properties is deprecated, unless the class opt...
15 小时前
-
1.97
Backward Incompatible Changes
Date
DateTime::createFromImmutable now has a tentative return type of
static, previously it was
DateTime....
15 小时前
-
1.98
New Features
PHP Core
SensitiveParameter Attribute
Added the
#[\SensitiveParameter] attribute to redact sensitive data ...
15 小时前
-
1.99
New Functions
cURL
curl_upkeep
IMAP
imap_is_open
(as of PHP 8.2.1)
MySQLi
mysqli_execute_query
ODBC
odbc_connection_strin...
15 小时前
-
1.100
Other Changes
Core changes
The
iterable type is now a built-in compile time alias for
arrayTraversable. Error messages ...
15 小时前
-
1.101
Windows Support
Core
Windows specific error messages are no longer localized, but instead always displayed in English to be...
15 小时前
-
1.102
Migrating from PHP 8.2.x to PHP 8.3.x
This new minor version brings with it a number of new features and a few incompatibilities that should be t...
15 小时前
-
1.103
New Global Constants
cURL
CURLINFO_CAPATH (libcurl >= 7.84.0)
CURLINFO_CAINFO (libcurl >= 7.84.0)
CURLOPT_MIME_OPTIONS (libcurl ...
15 小时前
-
1.104
Deprecated Features
PHP Core
Saner Increment/Decrement operators
Using the increment operator (
++) on empty, non-numeric, or n...
15 小时前
-
1.105
Backward Incompatible Changes
PHP Core
Programs that were very close to overflowing the call stack
Programs that were very close to overf...
15 小时前
-
1.106
New Classes and Interfaces
Date
DateError
DateObjectError
DateRangeError
DateException
DateInvalidOperationException
DateInvalidTimeZo...
15 小时前
-
1.107
New Features
PHP Core
Readonly Amendments
Anonymous classes may now be marked as readonly.
Readonly properties can now b...
15 小时前
-
1.108
New Functions
Date
DatePeriod::createFromISO8601String
DOM
DOMElement::getAttributeNames
DOMElement::insertAdjacentElemen...
15 小时前
-
1.109
Other Changes
Core changes
FFI
FFI::load is now allowed during preloading when opcache.preload_user is the current system...
15 小时前
-
1.110
Windows Support
Core
Minimum supported Windows version has been bumped to Windows 8 or Windows Server 2012.
15 小时前
-
1.111
Migrating from PHP 8.3.x to PHP 8.4.x
This new minor version brings with it a number of new features and a few incompatibilities that should be t...
15 小时前
-
1.112
New Global Constants
Core
PHP_OUTPUT_HANDLER_PROCESSED
PHP_SBINDIR
cURL
CURL_HTTP_VERSION_3
CURL_HTTP_VERSION_3ONLY
CURLOPT_TCP_...
15 小时前
-
1.113
Deprecated Features
PHP Core
Implicitly nullable parameter
A parameter's type is implicitly widened to accept
null if the defa...
15 小时前
-
1.114
Backward Incompatible Changes
Although not explicitly stated in this section, every new function, class, interface, enum, or constant may...
15 小时前
-
1.115
New Classes, Enums, and Interfaces
Core
Deprecated
RequestParseBodyException
BCMath
BcMath\Number
DBA
Dba\Connection
DOM
Dom\HTMLDocument
Dom\...
15 小时前
-
1.116
New Features
PHP Core
Property Hooks
Object properties may now have additional logic associated with their
get and
set...
15 小时前
-
1.117
New Functions
Core
request_parse_body
BCMath
bcceil
bcdivmod
bcfloor
bcround
Date
DateTime::createFromTimestamp
DateTime:...
15 小时前
-
1.118
Other Changes
Core changes
Closures
Closure names have been adjusted to include the parent function's name and the line o...
15 小时前
-
1.119
Removed Extensions
These extensions have been moved to PECL and are no longer part of the PHP distribution. New releases for t...
15 小时前
-
1.120
Windows Support
Core
Building with Visual Studio now requires at least Visual Studio 2019. However, Visual Studio 2022 is r...
15 小时前
-
1.121
Migrating from PHP 8.4.x to PHP 8.5.x
This new minor version brings with it a number of new features and a few incompatibilities that should be t...
15 小时前
-
1.122
New Global Constants
Core
PHP_BUILD_DATE
PHP_BUILD_PROVIDER
cURL
CURLINFO_USED_PROXY
CURLINFO_HTTPAUTH_USED
CURLINFO_PROXYAUTH_U...
15 小时前
-
1.123
Deprecated Features
PHP Core
Changes to user output handler
Trying to produce output (e.g. with
echo) within a user output han...
15 小时前
-
1.124
Backward Incompatible Changes
PHP Core
"array" and
"callable" alias name
It is no longer possible to use
"array" and
"callable" as cla...
15 小时前
-
1.125
New Classes and Interfaces
Core
NoDiscard
DelayedTargetValidation
Curl
CurlSharePersistentHandle
Filter
Filter\FilterException
Filter\...
15 小时前
-
1.126
New Features
PHP Core
Pipe Operator
Added the pipe (
|ENTITY) operator.
<?php
$result = "Hello World" |> strlen(...);
pr...
15 小时前
-
1.127
New Functions
Core
get_error_handler
get_exception_handler
Closure::getCurrent
Curl
curl_multi_get_handles
curl_share_ini...
15 小时前
-
1.128
Other Changes
Core changes
Core
The high resolution timer (
hrtime) on macOS now uses the recommended
clock_gettime_nsec...
15 小时前
-
1.129
Windows Support
Core
The configuration variables
PHP_VERSION,
PHP_MINOR_VERSION, and
PHP_RELEASE_VERSION are now always ...
15 小时前
-
1.130
Migrating from PHP 8.5.x to PHP 8.6.x
This new minor version brings with it a number of new features and a few incompatibilities that should be t...
15 小时前
-
1.131
New Global Constants
Core
ARRAY_FILTER_USE_VALUE
STREAM_CRYPTO_STATUS_NONE
STREAM_CRYPTO_STATUS_WANT_READ
STREAM_CRYPTO_STATUS_W...
15 小时前
-
1.132
Deprecated Features
PHP Core
Using "namespace" as a class constant name
Declaring a class constant named
namespace is now depr...
15 小时前
-
1.133
Backward Incompatible Changes
PHP Core
By-reference foreach after array compaction
By-reference foreach loops may now visit previously sk...
15 小时前
-
1.134
New Classes and Interfaces
Core
SortDirection
StreamError
StreamException
StreamErrorStore
StreamErrorMode
StreamErrorCode
Io\IoExcept...
15 小时前
-
1.135
New Features
PHP Core
Default values for readonly properties
Readonly properties may now declare default values.
<?php
c...
15 小时前
-
1.136
New Functions
Core
clamp
returns the given value if in range, else returns the nearest bound.
stream_last_errors
stream_c...
15 小时前
-
1.137
Other Changes
Core changes
Core
In case of a hard OOM (out of memory) condition, PHP now calls
abort() instead of
exit(...
15 小时前
-
1.138
Windows Support
Core
The official Windows builds now use Visual Studio 2026 (VS18).
LibXML
The libxml2 library used by the ...
15 小时前
-
1.139
Core Predefined Constants
These constants are defined by the PHP core. This includes PHP, the Zend engine, and SAPI modules.
PHP_VERS...
15 小时前
-
1.140
ENTITY
ENTITY ENTITY
15 小时前
-
1.141
Standard Predefined Constants
All constants from core extensions are defined in PHP by default.
15 小时前
-
1.142
List of Reserved Words
The following is a listing of predefined identifiers in PHP. None of the identifiers listed here should be ...
15 小时前
-
1.143
List of Resource Types
The following is a list of functions which create, use or destroy PHP resources. The function
is_resource ...
15 小时前
-
1.144
List of Parser Tokens
Various parts of the PHP language are represented internally by tokens. A code snippet that contains an inv...
15 小时前
-
1.145
List of Supported Socket Transports
The following is a list of the various URL style socket transports that PHP has built-in for use with the s...
15 小时前
-
1.146
Userland Naming Guide
The following is a guide for how to best choose names for identifiers in userland PHP code. When choosing n...
15 小时前
-
第 2 章
Chapters
2 页
-
2.1
What is PHP and what can it do?
What is PHP?
PHP (recursive acronym for PHP: Hypertext Preprocessor) is a widely-used open source general-p...
15 小时前
-
2.2
A simple tutorial
Here we would like to show the very basics of PHP in a short, simple tutorial. This text only deals with dy...
15 小时前
-
第 3 章
Language
278 页
-
3.1
Attributes
Attributes overview
PHP attributes provide structured, machine-readable metadata for classes, methods, func...
15 小时前
-
3.2
Basic syntax
PHP tags
When PHP processes a file, it recognizes the opening and closing tags,
ENTITY?php and
?ENTITY, t...
15 小时前
-
3.3
Constants
A constant is an identifier (name) for a simple value. As the name suggests, that value cannot change durin...
15 小时前
-
3.4
context
PHP offers various context options and parameters which can be used with all filesystem and stream wrappers...
15 小时前
-
3.5
ftp
FTP context options
FTP context option listing
ENTITY
Context options for
ftp:// and
ftps:// transports.
...
15 小时前
-
3.6
http
HTTP context options
HTTP context option listing
ENTITY
Context options for
http:// and
https:// transpor...
15 小时前
-
3.7
parameters
Context parameters
Context parameter listing
ENTITY
These
parameters can be set on a
context using the
s...
15 小时前
-
3.8
phar
Phar context options
Phar context option listing
ENTITY
Context options for
phar:// wrapper.
ENTITY
compre...
15 小时前
-
3.9
socket
Socket context options
Socket context option listing
ENTITY
Socket context options are available for all wr...
15 小时前
-
3.10
ssl
SSL context options
SSL context option listing
ENTITY
Context options for
ssl:// and
tls:// transports.
E...
15 小时前
-
3.11
zip
Zip context options
Zip context option listing
ENTITY
Zip context options are available for
zip wrappers.
...
15 小时前
-
3.12
zlib
Zlib context options
Zlib context option listing
ENTITY
Zlib context options are available for
zlib wrappe...
15 小时前
-
3.13
Control Structures
Introduction
Any PHP script is built out of a series of statements. A statement can be an assignment, a fun...
15 小时前
-
3.14
Alternative syntax for control structures
PHP offers an alternative syntax for some of its control structures; namely,
if,
while,
for,
foreach,
...
15 小时前
-
3.15
break
break ends execution of the current
for,
foreach,
while,
do-while or
switch structure.
break accepts a...
15 小时前
-
3.16
continue
continue is used within looping structures to skip the rest of the current loop iteration and continue exec...
15 小时前
-
3.17
declare
The
declare construct is used to set execution directives for a block of code. The syntax of
declare is s...
15 小时前
-
3.18
do-while
do-while loops are very similar to
while loops, except the truth expression is checked at the end of each ...
15 小时前
-
3.19
else
Often you'd want to execute a statement if a certain condition is met, and a different statement if the con...
15 小时前
-
3.20
elseif/else if
elseif, as its name suggests, is a combination of
if and
else. Like
else, it extends an
if statement to...
15 小时前
-
3.21
finally
A ENTITY block may also be specified after or instead of ENTITY blocks. Code within the ENTITY block will a...
15 小时前
-
3.22
for
for loops are the most complex loops in PHP. They behave like their C counterparts. The syntax of a
for lo...
15 小时前
-
3.23
foreach
The
foreach construct provides an easy way to iterate over
arrays and objects.
foreach will issue an err...
15 小时前
-
3.24
goto
The
goto operator can be used to jump to another section in the program. The target point is specified by ...
15 小时前
-
3.25
if
The
if construct is one of the most important features of many languages, PHP included. It allows for cond...
14 小时前
-
3.26
include_once
The
include_once expression includes and evaluates the specified file during the execution of the script. ...
14 小时前
-
3.27
include
The
include expression includes and evaluates the specified file.
The documentation below also applies to ...
14 小时前
-
3.28
match
The
match expression branches evaluation based on an identity check of a value. Similarly to a
switch sta...
14 小时前
-
3.29
require_once
The
require_once expression is identical to
require except PHP will check if the file has already been in...
14 小时前
-
3.30
require
require is identical to
include except upon failure it will also produce an
Error exception (
E_COMPILE_E...
14 小时前
-
3.31
return
return returns program control to the calling module. Execution resumes at the expression following the cal...
14 小时前
-
3.32
switch
The
switch statement is similar to a series of
if statements on the same expression. In situations where ...
14 小时前
-
3.33
throw
The ENTITY keyword is an expression and may be used in any expression context. It takes a Throwable object ...
14 小时前
-
3.34
try...catch
try
A ENTITY block delimits a segment of code which might ENTITY a Throwable error that needs handling. A E...
14 小时前
-
3.35
while
while loops are the simplest type of loop in PHP. They behave just like their C counterparts. The basic for...
14 小时前
-
3.36
Enumerations
Enumerations overview
Enumerations, or "Enums", allow a developer to define a custom type that is limited t...
14 小时前
-
3.37
Error Handling
Errors are a normal part of the development and life cycle of an application. As such, PHP provides multipl...
14 小时前
-
3.38
Expressions
Expressions are the most important building blocks of PHP. In PHP, almost anything you write is an expressi...
14 小时前
-
3.39
Fibers
Fibers overview
Fibers represent full-stack, interruptible functions. Fibers may be suspended from anywhere...
14 小时前
-
3.40
Functions
User-defined functions
A function is defined using the
function keyword, a name, a list of parameters (whi...
14 小时前
-
3.41
Generators
Generators overview
Generators provide an easy way to implement simple iterators without the overhead or co...
14 小时前
-
3.42
Namespaces
Namespaces overview
What are namespaces? In the broadest definition namespaces are a way of encapsulating i...
14 小时前
-
3.43
Classes and Objects
Introduction
PHP includes a complete object model. Some of its features are: visibility, abstract and final...
14 小时前
-
3.44
Class Abstraction
PHP has abstract classes, methods, and properties. Classes defined as abstract cannot be instantiated, and ...
14 小时前
-
3.45
Anonymous classes
Anonymous classes are useful when simple, one-off objects need to be created.
<?php
// Using an explicit cl...
14 小时前
-
3.46
Autoloading Classes
Many developers writing object-oriented applications create one PHP source file per class definition. One o...
14 小时前
-
3.47
The Basics
class
Basic class definitions begin with the keyword
class, followed by a class name, followed by a pair o...
14 小时前
-
3.48
OOP Changelog
Changes to the PHP OOP model are logged here. Descriptions and other notes regarding these features are doc...
14 小时前
-
3.49
Object Cloning
Creating a copy of an object with fully replicated properties is not always the wanted behavior. A good exa...
14 小时前
-
3.50
Class Constants
It is possible to define constants on a per-class basis. The default visibility of class constants is
publ...
14 小时前
-
3.51
Constructors and Destructors
Constructor
void
__construct
mixed
values
""
PHP allows developers to declare constructor methods for class...
14 小时前
-
3.52
Final Keyword
The final keyword prevents child classes from overriding a method, property, or constant by prefixing the d...
14 小时前
-
3.53
Object Inheritance
Inheritance is a well-established programming principle, and PHP makes use of this principle in its object ...
14 小时前
-
3.54
Object Interfaces
Object interfaces allow you to create code which specifies which methods and properties a class must implem...
14 小时前
-
3.55
Object Iteration
PHP provides a way for objects to be defined so it is possible to iterate through a list of items with, for...
14 小时前
-
3.56
Late Static Bindings
PHP implements a feature called late static bindings which can be used to reference the called class in the...
14 小时前
-
3.57
Lazy Objects
A lazy object is an object whose initialization is deferred until its state is observed or modified. Some u...
14 小时前
-
3.58
Magic Methods
Magic methods are special methods which override PHP's default action when certain actions are performed on...
14 小时前
-
3.59
Comparing Objects
When using the comparison operator (
==), object variables are compared in a simple manner, namely: Two obj...
14 小时前
-
3.60
Overloading
Overloading in PHP provides means to dynamically “create” properties and methods. These dynamic entities ar...
14 小时前
-
3.61
Scope Resolution Operator (::)
The Scope Resolution Operator (also called Paamayim Nekudotayim) or in simpler terms, the double colon, is ...
14 小时前
-
3.62
Properties
Class member variables are called properties. They may be referred to using other terms such as fields, but...
14 小时前
-
3.63
Property Hooks
Property hooks, also known as "property accessors" in some other languages, are a way to intercept and over...
14 小时前
-
3.64
Objects and references
One of the key-points of PHP OOP that is often mentioned is that "objects are passed by reference by defaul...
14 小时前
-
3.65
Serializing objects - objects in sessions
serialize returns a string containing a byte-stream representation of any value that can be stored in PHP. ...
14 小时前
-
3.66
Static Keyword
[!TIP]
This page describes the use of the
static keyword to define static methods and properties.
static ...
14 小时前
-
3.67
Traits
PHP implements a way to reuse code called Traits.
Traits are a mechanism for code reuse in single inheritan...
14 小时前
-
3.68
Covariance and Contravariance
In PHP 7.2.0, partial contravariance was introduced by removing type restrictions on parameters in a child ...
14 小时前
-
3.69
Visibility
The visibility of a property, a method or (as of PHP 7.1.0) a constant can be defined by prefixing the decl...
14 小时前
-
3.70
Operators
An operator is something that takes one or more values (or expressions, in programming jargon) and yields a...
14 小时前
-
3.71
Arithmetic Operators
Remember basic arithmetic from school? These work just like those.
Example
Name
Result
+$a
Identity
Convers...
14 小时前
-
3.72
Array Operators
Example
Name
Result
$a + $b
Union
Union of
$a and
$b.
$a == $b
Equality
ENTITY if
$a and
$b have the sa...
14 小时前
-
3.73
Assignment Operators
The basic assignment operator is "=". Your first inclination might be to think of this as "equal to". Don't...
14 小时前
-
3.74
Bitwise Operators
Bitwise operators allow evaluation and manipulation of specific bits within an integer.
Example
Name
Result...
14 小时前
-
3.75
Comparison Operators
Comparison operators, as their name implies, allow you to compare two values. You may also be interested in...
14 小时前
-
3.76
Error Control Operators
PHP supports one error control operator: the at sign (
@). When prepended to an expression in PHP, any diag...
14 小时前
-
3.77
Execution Operators
PHP supports one execution operator: backticks (
``). Note that these are not single-quotes! PHP will attem...
14 小时前
-
3.78
Functional Operators
PHP 8.5 and later supports one operator that works directly on callables. The
|ENTITY operator, or “pipe,”...
14 小时前
-
3.79
Incrementing/Decrementing Operators
PHP supports pre- and post-increment and decrement operators. Those unary operators allow to increment or d...
14 小时前
-
3.80
Logical Operators
Example
Name
Result
$a and $b
And
ENTITY if both
$a and
$b are ENTITY.
$a or $b
Or
ENTITY if either
$a o...
14 小时前
-
3.81
Operator Precedence
The precedence of an operator specifies how "tightly" it binds two expressions together. For example, in th...
14 小时前
-
3.82
String Operators
There are two
string operators. The first is the concatenation operator ('.'), which returns the concatena...
14 小时前
-
3.83
Type Operators
instanceof is used to determine whether a PHP variable is an instantiated object of a certain class:
Using ...
14 小时前
-
3.84
construct
AllowDynamicProperties::__construct
Construct a new AllowDynamicProperties attribute instance
ENTITY
public...
14 小时前
-
3.85
argumentcounterror
ENTITY
ArgumentCountError is thrown when too few arguments are passed to a user-defined function or method....
14 小时前
-
3.86
arithmeticerror
ENTITY
ArithmeticError is thrown when an error occurs while performing mathematical operations. These error...
14 小时前
-
3.87
arrayaccess
ENTITY
Interface to provide access to objects as arrays.
ENTITY
ArrayAccess
ENTITY
ENTITY
Basic usage
<?php...
14 小时前
-
3.88
offsetexists
ArrayAccess::offsetExists
Whether an offset exists
ENTITY
public
bool
ArrayAccess::offsetExists
mixed
offse...
14 小时前
-
3.89
offsetget
ArrayAccess::offsetGet
Offset to retrieve
ENTITY
public
mixed
ArrayAccess::offsetGet
mixed
offset
Returns t...
14 小时前
-
3.90
offsetset
ArrayAccess::offsetSet
Assign a value to the specified offset
ENTITY
public
void
ArrayAccess::offsetSet
mix...
14 小时前
-
3.91
offsetunset
ArrayAccess::offsetUnset
Unset an offset
ENTITY
public
void
ArrayAccess::offsetUnset
mixed
offset
Unsets an...
14 小时前
-
3.92
assertionerror
ENTITY
AssertionError is thrown when an assertion made via
assert fails.
ENTITY
AssertionError
extends
Err...
14 小时前
-
3.93
construct
Attribute::__construct
Construct a new Attribute instance
ENTITY
public
Attribute::__construct
int
flags
At...
14 小时前
-
3.94
Predefined Attributes
PHP provides some predefined attributes that can be used.
ENTITY ENTITY ENTITY ENTITY ENTITY ENTITY ENTITY ...
14 小时前
-
3.95
allowdynamicproperties
ENTITY
This attribute is used to mark classes that allow dynamic properties.
[!NOTE]
Although attributes th...
14 小时前
-
3.96
attribute
ENTITY
Attributes offer the ability to add structured, machine-readable metadata information on declaration...
14 小时前
-
3.97
delayedtargetvalidation
ENTITY
This attribute delays target validation errors for internal attributes from compile time to when the...
14 小时前
-
3.98
deprecated
ENTITY
This attribute is used to mark functionality as deprecated. Using deprecated functionality will caus...
14 小时前
-
3.99
construct
Deprecated::__construct
Construct a new Deprecated attribute instance
ENTITY
public
Deprecated::__construct...
14 小时前
-
3.100
nodiscard
ENTITY
This attribute can be used to indicate that the return value of a function or a method should not be...
14 小时前
-
3.101
construct
NoDiscard::__construct
Construct a new NoDiscard attribute instance
ENTITY
public
NoDiscard::__construct
st...
14 小时前
-
3.102
override
ENTITY
This attribute is used to indicate that a method or a property is intended to override a method or a...
14 小时前
-
3.103
construct
Override::__construct
Construct a new Override attribute instance
ENTITY
public
Override::__construct
Const...
14 小时前
-
3.104
returntypewillchange
ENTITY
As of PHP 8.1.0, a tentative phase of transitioning to return type declarations for internal class m...
14 小时前
-
3.105
sensitiveparameter
ENTITY
This attribute is used to mark a parameter that is sensitive and should have its value redacted if p...
14 小时前
-
3.106
backedenum
ENTITY
The
BackedEnum interface is automatically applied to backed enumerations by the engine. It may not ...
14 小时前
-
3.107
from
BackedEnum::from
Maps a scalar to an enum instance
ENTITY
public
static
static
BackedEnum::from
int
string
...
14 小时前
-
3.108
tryfrom
BackedEnum::tryFrom
Maps a scalar to an enum instance or null
ENTITY
public
static
static
null
BackedEnum::...
14 小时前
-
3.109
closedgeneratorexception
ENTITY
A ClosedGeneratorException is thrown when trying to retrieve a value from a closed
Generator.
ENTIT...
14 小时前
-
3.110
closure
ENTITY
Class used to represent anonymous functions.
Anonymous functions yield objects of this type. This cl...
14 小时前
-
3.111
bind
Closure::bind
Duplicates a closure with a specific bound object and class scope
ENTITY
public
static
Closur...
14 小时前
-
3.112
bindto
Closure::bindTo
Duplicates the closure with a new bound object and class scope
ENTITY
public
Closure
null
C...
14 小时前
-
3.113
call
Closure::call
Binds and calls the closure
ENTITY
public
mixed
Closure::call
object
newThis
mixed
args
Tempo...
14 小时前
-
3.114
construct
Closure::__construct
Constructor that disallows instantiation
ENTITY
private
Closure::__construct
This meth...
14 小时前
-
3.115
fromcallable
Closure::fromCallable
Converts a callable into a closure
ENTITY
public
static
Closure
Closure::fromCallable...
14 小时前
-
3.116
getcurrent
Closure::getCurrent
Returns the currently executing closure
ENTITY
public
static
Closure
Closure::getCurren...
14 小时前
-
3.117
compileerror
ENTITY
CompileError is thrown for some compilation errors, which formerly issued a fatal error.
ENTITY
Comp...
14 小时前
-
3.118
countable
ENTITY
Classes implementing
Countable can be used with the
count function.
ENTITY
Countable
ENTITY
ENTITY
14 小时前
-
3.119
count
Countable::count
Count elements of an object
ENTITY
public
int
Countable::count
This method is executed whe...
14 小时前
-
3.120
divisionbyzeroerror
ENTITY
DivisionByZeroError is thrown when an attempt is made to divide a number by zero.
ENTITY
DivisionByZ...
14 小时前
-
3.121
error
ENTITY
Error is the base class for errors that indicate programming mistakes. Such errors generally require...
14 小时前
-
3.122
clone
Error::__clone
Clone the error
ENTITY
private
void
Error::__clone
Errors do not support cloning; this metho...
14 小时前
-
3.123
construct
Error::__construct
Construct the error object
ENTITY
public
Error::__construct
string
message
""
int
code
0...
14 小时前
-
3.124
getcode
Error::getCode
Gets the error code
ENTITY
final
public
int
Error::getCode
Returns the error code.
ENTITY EN...
14 小时前
-
3.125
getfile
Error::getFile
Gets the file in which the error occurred
ENTITY
final
public
string
Error::getFile
Get the ...
14 小时前
-
3.126
getline
Error::getLine
Gets the line in which the error occurred
ENTITY
final
public
int
Error::getLine
Get line nu...
14 小时前
-
3.127
getmessage
Error::getMessage
Gets the error message
ENTITY
final
public
string
Error::getMessage
Returns the error mes...
14 小时前
-
3.128
getprevious
Error::getPrevious
Returns previous Throwable
ENTITY
final
public
Throwable
null
Error::getPrevious
Returns...
14 小时前
-
3.129
gettrace
Error::getTrace
Gets the stack trace
ENTITY
final
public
array
Error::getTrace
Returns the stack trace.
ENT...
14 小时前
-
3.130
gettraceasstring
Error::getTraceAsString
Gets the stack trace as a string
ENTITY
final
public
string
Error::getTraceAsString...
14 小时前
-
3.131
tostring
Error::__toString
String representation of the error
ENTITY
public
string
Error::__toString
Returns the
st...
14 小时前
-
3.132
errorexception
ENTITY
An Error Exception.
ENTITY
ErrorException
extends
Exception
ENTITY
protected
int
severity
E_ERROR
EN...
14 小时前
-
3.133
construct
ErrorException::__construct
Constructs the exception
ENTITY
public
ErrorException::__construct
string
messa...
14 小时前
-
3.134
getseverity
ErrorException::getSeverity
Gets the exception severity
ENTITY
final
public
int
ErrorException::getSeverity...
14 小时前
-
3.135
exception
ENTITY
Exception is the base class for exceptions that can be handled during normal operation.
ENTITY
Excep...
14 小时前
-
3.136
clone
Exception::__clone
Clone the exception
ENTITY
private
void
Exception::__clone
Exceptions do not support clo...
14 小时前
-
3.137
construct
Exception::__construct
Construct the exception
ENTITY
public
Exception::__construct
string
message
""
int
c...
14 小时前
-
3.138
getcode
Exception::getCode
Gets the Exception code
ENTITY
final
public
int
Exception::getCode
Returns the Exception...
14 小时前
-
3.139
getfile
Exception::getFile
Gets the file in which the exception was created
ENTITY
final
public
string
Exception::g...
14 小时前
-
3.140
getline
Exception::getLine
Gets the line in which the exception was created
ENTITY
final
public
int
Exception::getL...
14 小时前
-
3.141
getmessage
Exception::getMessage
Gets the Exception message
ENTITY
final
public
string
Exception::getMessage
Returns t...
14 小时前
-
3.142
getprevious
Exception::getPrevious
Returns previous Throwable
ENTITY
final
public
Throwable
null
Exception::getPrevious...
14 小时前
-
3.143
gettrace
Exception::getTrace
Gets the stack trace
ENTITY
final
public
array
Exception::getTrace
Returns the Exceptio...
14 小时前
-
3.144
gettraceasstring
Exception::getTraceAsString
Gets the stack trace as a string
ENTITY
final
public
string
Exception::getTrace...
14 小时前
-
3.145
tostring
Exception::__toString
String representation of the exception
ENTITY
public
string
Exception::__toString
Ret...
14 小时前
-
3.146
Predefined Exceptions
See also the SPL Exceptions.
ENTITY ENTITY ENTITY ENTITY ENTITY ENTITY ENTITY ENTITY ENTITY ENTITY ENTITY E...
14 小时前
-
3.147
fiber
ENTITY
Fibers represent full-stack, interruptible functions. Fibers may be suspended from anywhere in the c...
14 小时前
-
3.148
construct
Fiber::__construct
Creates a new Fiber instance
ENTITY
public
Fiber::__construct
callable
callback
ENTITY
c...
14 小时前
-
3.149
getcurrent
Fiber::getCurrent
Gets the currently executing Fiber instance
ENTITY
public
static
Fiber
null
Fiber::getCur...
14 小时前
-
3.150
getreturn
Fiber::getReturn
Gets the value returned by the Fiber
ENTITY
public
mixed
Fiber::getReturn
ENTITY ENTITY
EN...
14 小时前
-
3.151
isrunning
Fiber::isRunning
Determines if the fiber is running
ENTITY
public
bool
Fiber::isRunning
ENTITY ENTITY
ENTIT...
14 小时前
-
3.152
isstarted
Fiber::isStarted
Determines if the fiber has started
ENTITY
public
bool
Fiber::isStarted
ENTITY ENTITY
ENTI...
14 小时前
-
3.153
issuspended
Fiber::isSuspended
Determines if the fiber is suspended
ENTITY
public
bool
Fiber::isSuspended
ENTITY ENTITY...
14 小时前
-
3.154
isterminated
Fiber::isTerminated
Determines if the fiber has terminated
ENTITY
public
bool
Fiber::isTerminated
ENTITY EN...
14 小时前
-
3.155
resume
Fiber::resume
Resumes execution of the fiber with a value
ENTITY
public
mixed
Fiber::resume
mixed
value
ENT...
14 小时前
-
3.156
start
Fiber::start
Start execution of the fiber
ENTITY
public
mixed
Fiber::start
mixed
args
A variadic list of ar...
14 小时前
-
3.157
suspend
Fiber::suspend
Suspends execution of the current fiber
ENTITY
public
static
mixed
Fiber::suspend
mixed
valu...
14 小时前
-
3.158
throw
Fiber::throw
Resumes execution of the fiber with an exception
ENTITY
public
mixed
Fiber::throw
Throwable
ex...
14 小时前
-
3.159
fibererror
ENTITY
FiberError is thrown when an invalid operation is performed on a
Fiber.
ENTITY
final
FiberError
ext...
14 小时前
-
3.160
construct
FiberError::__construct
Constructor to disallow direct instantiation
ENTITY
public
FiberError::__construct
...
14 小时前
-
3.161
generator
ENTITY
Generator objects are returned from generators.
[!CAUTION]
Generator objects cannot be instantiated ...
14 小时前
-
3.162
current
Generator::current
Get the yielded value
ENTITY
public
mixed
Generator::current
ENTITY ENTITY
ENTITY
Return...
14 小时前
-
3.163
getreturn
Generator::getReturn
Get the return value of a generator
ENTITY
public
mixed
Generator::getReturn
ENTITY EN...
14 小时前
-
3.164
key
Generator::key
Get the yielded key
ENTITY
public
mixed
Generator::key
Gets the key of the yielded value.
EN...
14 小时前
-
3.165
next
Generator::next
Resume execution of the generator
ENTITY
public
void
Generator::next
Calling Generator::nex...
14 小时前
-
3.166
rewind
Generator::rewind
Execute the generator up to and including the first yield
ENTITY
public
void
Generator::r...
14 小时前
-
3.167
send
Generator::send
Send a value to the generator
ENTITY
public
mixed
Generator::send
mixed
value
Sends the giv...
14 小时前
-
3.168
throw
Generator::throw
Throw an exception into the generator
ENTITY
public
mixed
Generator::throw
Throwable
excep...
14 小时前
-
3.169
valid
Generator::valid
Check if the iterator has been closed
ENTITY
public
bool
Generator::valid
ENTITY ENTITY
EN...
14 小时前
-
3.170
wakeup
Generator::__wakeup
Serialize callback
ENTITY
public
void
Generator::__wakeup
Throws an exception as genera...
14 小时前
-
3.171
Predefined Interfaces and Classes
See also the SPL Interfaces and reserved classes.
ENTITY ENTITY ENTITY ENTITY ENTITY ENTITY ENTITY ENTITY E...
14 小时前
-
3.172
internaliterator
ENTITY
Class to ease implementing IteratorAggregate for internal classes.
ENTITY
final
InternalIterator
imp...
14 小时前
-
3.173
construct
InternalIterator::__construct
Private constructor to disallow direct instantiation
ENTITY
private
InternalI...
14 小时前
-
3.174
current
InternalIterator::current
Return the current element
ENTITY
public
mixed
InternalIterator::current
Returns ...
14 小时前
-
3.175
key
InternalIterator::key
Return the key of the current element
ENTITY
public
mixed
InternalIterator::key
Retur...
14 小时前
-
3.176
next
InternalIterator::next
Move forward to next element
ENTITY
public
void
InternalIterator::next
Moves the cur...
14 小时前
-
3.177
rewind
InternalIterator::rewind
Rewind the Iterator to the first element
ENTITY
public
void
InternalIterator::rewi...
14 小时前
-
3.178
valid
InternalIterator::valid
Check if current position is valid
ENTITY
public
bool
InternalIterator::valid
Check...
14 小时前
-
3.179
iterator
ENTITY
Interface for external iterators or objects that can be iterated themselves internally.
ENTITY
Itera...
14 小时前
-
3.180
current
Iterator::current
Return the current element
ENTITY
public
mixed
Iterator::current
Returns the current elem...
14 小时前
-
3.181
key
Iterator::key
Return the key of the current element
ENTITY
public
mixed
Iterator::key
Returns the key of th...
14 小时前
-
3.182
next
Iterator::next
Move forward to next element
ENTITY
public
void
Iterator::next
Moves the current position to...
14 小时前
-
3.183
rewind
Iterator::rewind
Rewind the Iterator to the first element
ENTITY
public
void
Iterator::rewind
Rewinds back ...
14 小时前
-
3.184
valid
Iterator::valid
Checks if current position is valid
ENTITY
public
bool
Iterator::valid
This method is calle...
14 小时前
-
3.185
iteratoraggregate
ENTITY
Interface to create an external Iterator.
ENTITY
IteratorAggregate
extends
Traversable
ENTITY
ENTITY...
14 小时前
-
3.186
getiterator
IteratorAggregate::getIterator
Retrieve an external iterator or traversable
ENTITY
public
Traversable
Itera...
14 小时前
-
3.187
parseerror
ENTITY
ParseError is thrown when an error occurs while parsing PHP code, such as when
eval is called.
[!NO...
14 小时前
-
3.188
php-incomplete-class
ENTITY
Created by
unserialize when trying to unserialize an undefined class or a class that is not listed ...
14 小时前
-
3.189
requestparsebodyexception
ENTITY
A RequestParseBodyException is thrown in
request_parse_body when the request body is invalid, accor...
14 小时前
-
3.190
construct
ReturnTypeWillChange::__construct
Construct a new ReturnTypeWillChange attribute instance
ENTITY
public
Ret...
14 小时前
-
3.191
construct
SensitiveParameter::__construct
Construct a new SensitiveParameter attribute instance
ENTITY
public
Sensiti...
14 小时前
-
3.192
sensitiveparametervalue
ENTITY
The
SensitiveParameterValue class allows wrapping sensitive values to protect them against accident...
14 小时前
-
3.193
construct
SensitiveParameterValue::__construct
Constructs a new SensitiveParameterValue object
ENTITY
public
Sensitiv...
14 小时前
-
3.194
debuginfo
SensitiveParameterValue::__debugInfo
Protects the sensitive value against accidental exposure
ENTITY
public...
14 小时前
-
3.195
getvalue
SensitiveParameterValue::getValue
Returns the sensitive value
ENTITY
public
mixed
SensitiveParameterValue::...
14 小时前
-
3.196
serializable
ENTITY
Interface for customized serializing.
Classes that implement this interface no longer support __slee...
14 小时前
-
3.197
serialize
Serializable::serialize
String representation of object
ENTITY
public
string
null
Serializable::serialize
S...
14 小时前
-
3.198
unserialize
Serializable::unserialize
Constructs the object
ENTITY
public
void
Serializable::unserialize
string
data
Ca...
14 小时前
-
3.199
stdclass
ENTITY
A generic empty class with dynamic properties.
Objects of this class can be instantiated with the ne...
14 小时前
-
3.200
stringable
ENTITY
The Stringable interface denotes a class as having a __toString() method. Unlike most interfaces, St...
14 小时前
-
3.201
tostring
Stringable::__toString
Gets a string representation of the object
ENTITY
public
string
Stringable::__toStri...
14 小时前
-
3.202
throwable
ENTITY
Throwable is the base interface for any object that can be thrown via a ENTITY statement, including ...
14 小时前
-
3.203
getcode
Throwable::getCode
Gets the exception code
ENTITY
public
int
Throwable::getCode
Returns the error code asso...
14 小时前
-
3.204
getfile
Throwable::getFile
Gets the file in which the object was created
ENTITY
public
string
Throwable::getFile
Ge...
14 小时前
-
3.205
getline
Throwable::getLine
Gets the line on which the object was instantiated
ENTITY
public
int
Throwable::getLine
...
14 小时前
-
3.206
getmessage
Throwable::getMessage
Gets the message
ENTITY
public
string
Throwable::getMessage
Returns the message assoc...
14 小时前
-
3.207
getprevious
Throwable::getPrevious
Returns the previous Throwable
ENTITY
public
Throwable
null
Throwable::getPrevious
R...
14 小时前
-
3.208
gettrace
Throwable::getTrace
Gets the stack trace
ENTITY
public
array
Throwable::getTrace
Returns the stack trace as...
14 小时前
-
3.209
gettraceasstring
Throwable::getTraceAsString
Gets the stack trace as a string
ENTITY
public
string
Throwable::getTraceAsStri...
14 小时前
-
3.210
tostring
Throwable::__toString
Gets a string representation of the thrown object
ENTITY
public
string
Throwable::__t...
14 小时前
-
3.211
traversable
ENTITY
Interface to detect if a class is traversable using ENTITY.
Abstract base interface that cannot be i...
14 小时前
-
3.212
typeerror
ENTITY
A TypeError may be thrown when: The value being set for a class property does not match the property...
14 小时前
-
3.213
unhandledmatcherror
ENTITY
An
UnhandledMatchError is thrown when the subject passed to a ENTITY expression is not handled by a...
14 小时前
-
3.214
unitenum
ENTITY
The
UnitEnum interface is automatically applied to all enumerations by the engine. It may not be im...
14 小时前
-
3.215
cases
UnitEnum::cases
Generates a list of cases on an enum
ENTITY
public
static
array
UnitEnum::cases
This method...
14 小时前
-
3.216
valueerror
ENTITY
A
ValueError is thrown when the type of an argument is correct but its value is incorrect. For exam...
14 小时前
-
3.217
variables
PHP provides predefined variables that represent external variables, built-in environment variables, and ot...
14 小时前
-
3.218
argc
$argc
The number of arguments passed to script
ENTITY
Contains the number of arguments passed to the curren...
14 小时前
-
3.219
argv
$argv
Array of arguments passed to script
ENTITY
Contains an
array of all the arguments passed to the scri...
14 小时前
-
3.220
cookie
$_COOKIE
HTTP Cookies
ENTITY
An associative
array of variables passed to the current script via HTTP Cooki...
14 小时前
-
3.221
env
$_ENV
Environment variables
ENTITY
An associative
array of variables passed to the current script via the ...
14 小时前
-
3.222
files
$_FILES
HTTP File Upload variables
ENTITY
An associative
array of items uploaded to the current script via...
14 小时前
-
3.223
get
$_GET
Query string variables
ENTITY
An associative array of variables passed to the current script via the ...
14 小时前
-
3.224
globals
$GLOBALS
References all variables available in global scope
ENTITY
An associative
array containing referen...
14 小时前
-
3.225
httpresponseheader
$http_response_header
HTTP response headers
ENTITY
Use
http_get_last_response_headers instead.
ENTITY
The ...
14 小时前
-
3.226
phperrormsg
$php_errormsg
The previous error message
ENTITY
Use
error_get_last instead.
ENTITY
$php_errormsg is a vari...
14 小时前
-
3.227
post
$_POST
Form data from HTTP POST requests
ENTITY
An associative array of variables passed to the current scr...
14 小时前
-
3.228
request
$_REQUEST
HTTP Request variables
ENTITY
An associative
array that by default contains the contents of
$_G...
14 小时前
-
3.229
server
$_SERVER
Server and execution environment information
ENTITY
$_SERVER is an ENTITY containing information s...
14 小时前
-
3.230
session
$_SESSION
Session variables
ENTITY
An associative array containing session variables available to the curre...
14 小时前
-
3.231
superglobals
Superglobals
Built-in variables that are always available in all scopes
ENTITY
Several predefined variables...
14 小时前
-
3.232
weakmap
ENTITY
A
WeakMap is a map (or dictionary) that accepts objects as keys. However, unlike the otherwise simi...
14 小时前
-
3.233
count
WeakMap::count
Counts the number of live entries in the map
ENTITY
public
int
WeakMap::count
Counts the num...
14 小时前
-
3.234
getiterator
WeakMap::getIterator
Retrieve an external iterator
ENTITY
public
Iterator
WeakMap::getIterator
Returns an e...
14 小时前
-
3.235
offsetexists
WeakMap::offsetExists
Checks whether a certain object is in the map
ENTITY
public
bool
WeakMap::offsetExist...
14 小时前
-
3.236
offsetget
WeakMap::offsetGet
Returns the value pointed to by a certain object
ENTITY
public
mixed
WeakMap::offsetGet
...
14 小时前
-
3.237
offsetset
WeakMap::offsetSet
Updates the map with a new key-value pair
ENTITY
public
void
WeakMap::offsetSet
object
o...
14 小时前
-
3.238
offsetunset
WeakMap::offsetUnset
Removes an entry from the map
ENTITY
public
void
WeakMap::offsetUnset
object
object
Re...
14 小时前
-
3.239
weakreference
ENTITY
Weak references allow the programmer to retain a reference to an object without preventing the objec...
14 小时前
-
3.240
construct
WeakReference::__construct
Constructor that disallows instantiation
ENTITY
public
WeakReference::__construc...
14 小时前
-
3.241
create
WeakReference::create
Create a new weak reference
ENTITY
public
static
WeakReference
WeakReference::create
...
14 小时前
-
3.242
get
WeakReference::get
Get a weakly referenced Object
ENTITY
public
object
null
WeakReference::get
Gets a weakl...
14 小时前
-
3.243
References Explained
What References Are
References in PHP are a means to access the same variable content by different names. T...
14 小时前
-
3.244
Types
Introduction
Every single expression in PHP has one of the following built-in types depending on its value:...
14 小时前
-
3.245
Arrays
For a list of all array functions, see the array functions chapter in the documentation.
An
array in PHP i...
14 小时前
-
3.246
Booleans
The
bool type only has two values, and is used to express a truth value. It can be either ENTITY or ENTITY...
14 小时前
-
3.247
Callables
A callable is a reference to a function or method that is passed to another function as an argument. They a...
14 小时前
-
3.248
Type declarations
Type declarations can be added to function arguments, return values, as of PHP 7.4.0, class properties, and...
14 小时前
-
3.249
Enumerations
Basic Enumerations
Enumerations are a restricting layer on top of classes and class constants, intended to ...
14 小时前
-
3.250
Floating-point numbers
Floating-point numbers (also known as "floats", "doubles", or "real numbers") can be specified using any of...
14 小时前
-
3.251
Integers
An
int is a number of the set ℤ = {..., -2, -1, 0, 1, 2, ...}.
ENTITY
Floating-point numbers, Arbitrary pr...
14 小时前
-
3.252
Iterables
Iterable is a built-in compile-time type alias for
array|Traversable. From its introduction in PHP 7.1.0 a...
14 小时前
-
3.253
Mixed
The
mixed type accepts every value. It is equivalent to the union type
object|resource|array|string|float...
14 小时前
-
3.254
Never
never is a return-only type indicating the function does not terminate. This means that it either calls
ex...
14 小时前
-
3.255
NULL
The
null type is PHP's unit type, i.e. it has only one value: ENTITY.
Undefined and
unset variables resol...
14 小时前
-
3.256
Numeric strings
A PHP
string is considered numeric if it can be interpreted as an
int or a
float.
Formally as of PHP 8.0...
14 小时前
-
3.257
Objects
Object Initialization
To create a new
object, use the
new statement to instantiate a class:
Object Constr...
14 小时前
-
3.258
Relative class types
These type declarations can only be used within classes.
self
The value must be an ENTITY the same class as...
14 小时前
-
3.259
Resources
A
resource is a special variable, holding a reference to an external resource. Resources are created and u...
14 小时前
-
3.260
Singleton types
Singleton types are those which allow only one value. PHP has support for two singleton types:
false as of...
14 小时前
-
3.261
Strings
A
string is a series of characters, where a character is the same as a byte. This means that PHP only supp...
14 小时前
-
3.262
Type Juggling
PHP does not require explicit type definition in variable declaration. In this case, the type of a variable...
14 小时前
-
3.263
Type System
PHP uses a nominal type system with a strong behavioral subtyping relation. The subtyping relation is check...
14 小时前
-
3.264
Void
void is a return-only type declaration indicating the function does not return a value, but the function ma...
14 小时前
-
3.265
Variables
Basics
Variables in PHP are represented by a dollar sign followed by the name of the variable. The variable...
14 小时前
-
3.266
wrappers
PHP comes with many built-in wrappers for various URL-style protocols for use with the filesystem functions...
14 小时前
-
3.267
audio
ogg://
Audio streams
ENTITY
Files opened for reading via the
ogg:// wrapper are treated as compressed audi...
14 小时前
-
3.268
compression
zlib://
bzip2://
zip://
Compression Streams
ENTITY
compress.zlib:// and
compress.bzip2://
zlib: works like...
14 小时前
-
3.269
data
data://
Data (RFC 2397)
ENTITY
The
data: (RFC 2397) stream wrapper.
ENTITY
data://text/plain;base64,
ENTIT...
14 小时前
-
3.270
expect
expect://
Process Interaction Streams
ENTITY
Streams opened via the
expect:// wrapper provide access to pr...
14 小时前
-
3.271
file
file://
Accessing local filesystem
ENTITY
file:// is the default wrapper used with PHP and represents the l...
14 小时前
-
3.272
ftp
ftp://
ftps://
Accessing FTP(s) URLs
ENTITY
Allows read access to existing files and creation of new files ...
14 小时前
-
3.273
glob
glob://
Find pathnames matching pattern
ENTITY
The
glob: stream wrapper.
ENTITY
glob://
ENTITY
Attribute
S...
14 小时前
-
3.274
http
http://
https://
Accessing HTTP(s) URLs
ENTITY
Allows read-only access to files/resources via HTTP. By defa...
14 小时前
-
3.275
phar
phar://
PHP Archive
ENTITY
The
phar:// stream wrapper. See Phar stream wrapper for a detailed description....
14 小时前
-
3.276
php
php://
Accessing various I/O streams
ENTITY
PHP provides a number of miscellaneous I/O streams that allow a...
14 小时前
-
3.277
rar
rar://
RAR
ENTITY
The wrapper takes the url encoded path to the RAR archive (relative or absolute), an opti...
14 小时前
-
3.278
ssh2
ssh2://
Secure Shell 2
ENTITY
ssh2.shell://
ssh2.exec://
ssh2.tunnel://
ssh2.sftp://
ssh2.scp:// (PECL)...
14 小时前
-
第 4 章
Reference
333 页
-
4.1
book
ENTITY
PHP supports libcurl, a library created by Daniel Stenberg, that allows you to connect and communica...
14 小时前
-
4.2
configure
ENTITY
To use PHP's cURL support you must also compile PHP
--with-curl[=DIR] where DIR is the location of ...
14 小时前
-
4.3
constants
ENTITY ENTITY
Descriptions and uses for these constants are described within the
curl_setopt,
curl_multi_...
14 小时前
-
4.4
constants_curl_error
CURLE_ABORTED_BY_CALLBACK (
int)
Aborted by callback. A callback returned "abort" to libcurl.
CURLE_BAD_CAL...
14 小时前
-
4.5
constants_curl_getinfo
CURLINFO_APPCONNECT_TIME (
int)
Time in seconds it took from the start until the SSL/SSH connect/handshake ...
14 小时前
-
4.6
constants_curl_multi
CURLM_ADDED_ALREADY (
int)
An easy handle already added to a multi handle was attempted to get added a seco...
14 小时前
-
4.7
constants_curl_multi_setopt
CURLMOPT_CHUNK_LENGTH_PENALTY_SIZE (
int)
Specifies the chunk length threshold for pipelining in bytes. Ava...
14 小时前
-
4.8
constants_curl_pause
CURLPAUSE_ALL (
int)
Pause sending and receiving data. Available as of cURL 7.18.0.
CURLPAUSE_CONT (
int)
U...
14 小时前
-
4.9
constants_curl_setopt
CURLOPT_ABSTRACT_UNIX_SOCKET (
int)
Enables the use of an abstract Unix domain socket instead of establishi...
14 小时前
-
4.10
constants_curl_share_setopt
CURL_LOCK_DATA_CONNECT (
int)
Shares/unshares the connection cache. Available as of PHP 7.3.0 and cURL 7.10...
14 小时前
-
4.11
constants_curlproto
CURLPROTO_ALL (
int)
Available as of cURL 7.19.4.
CURLPROTO_DICT (
int)
Available as of cURL 7.19.4.
CURLPR...
14 小时前
-
4.12
curlfile
ENTITY
This class or
CURLStringFile should be used to upload a file with
CURLOPT_POSTFIELDS.
Unserializat...
14 小时前
-
4.13
construct
CURLFile::__construct
curl_file_create
Create a CURLFile object
ENTITY
ENTITY
public
CURLFile::__construct
...
14 小时前
-
4.14
getfilename
CURLFile::getFilename
Get file name
ENTITY
public
string
CURLFile::getFilename
ENTITY ENTITY
ENTITY
Returns...
14 小时前
-
4.15
getmimetype
CURLFile::getMimeType
Get MIME type
ENTITY
public
string
CURLFile::getMimeType
ENTITY ENTITY
ENTITY
Returns...
14 小时前
-
4.16
getpostfilename
CURLFile::getPostFilename
Get file name for POST
ENTITY
public
string
CURLFile::getPostFilename
ENTITY ENTI...
14 小时前
-
4.17
setmimetype
CURLFile::setMimeType
Set MIME type
ENTITY
public
void
CURLFile::setMimeType
string
mime_type
ENTITY
mime_t...
14 小时前
-
4.18
setpostfilename
CURLFile::setPostFilename
Set file name for POST
ENTITY
public
void
CURLFile::setPostFilename
string
posted...
14 小时前
-
4.19
curlhandle
ENTITY
A fully opaque class which replaces
curl resources as of PHP 8.0.0.
ENTITY
final
CurlHandle
14 小时前
-
4.20
curlmultihandle
ENTITY
A fully opaque class which replaces
curl_multi resources as of PHP 8.0.0.
ENTITY
final
CurlMultiHandle
14 小时前
-
4.21
curlsharehandle
ENTITY
A fully opaque class which replaces
curl_share resources as of PHP 8.0.0.
ENTITY
final
CurlShareHandle
14 小时前
-
4.22
curlsharepersistenthandle
ENTITY
Represents a persistent cURL "share" handle, created by
curl_share_init_persistent. Unlike
CurlSha...
14 小时前
-
4.23
curlstringfile
ENTITY
CURLStringFile makes it possible to upload a file directly from a variable. This is similar to
CURL...
14 小时前
-
4.24
construct
CURLStringFile::__construct
Create a CURLStringFile object
ENTITY
public
CURLStringFile::__construct
string...
14 小时前
-
4.25
examples
ENTITY
Basic curl examples
Once you've compiled PHP with cURL support, you can begin using the cURL functio...
14 小时前
-
4.26
curl-close
curl_close
Close a cURL session
ENTITY
ENTITY
#[\Deprecated(since: '8.5', message: "as it has no effect sin...
14 小时前
-
4.27
curl-copy-handle
curl_copy_handle
Copy a cURL handle along with all of its preferences
ENTITY
CurlHandle
false
curl_copy_han...
14 小时前
-
4.28
curl-errno
curl_errno
Return the last error number
ENTITY
int
curl_errno
CurlHandle
handle
Returns the error number fo...
14 小时前
-
4.29
curl-error
curl_error
Return a string containing the last error for the current session
ENTITY
string
curl_error
CurlH...
14 小时前
-
4.30
curl-escape
curl_escape
URL encodes the given string
ENTITY
string
false
curl_escape
CurlHandle
handle
string
string
Th...
14 小时前
-
4.31
curl-exec
curl_exec
Perform a cURL session
ENTITY
string
bool
curl_exec
CurlHandle
handle
Execute the given cURL sess...
14 小时前
-
4.32
curl-getinfo
curl_getinfo
Get information regarding a specific transfer
ENTITY
mixed
curl_getinfo
CurlHandle
handle
int
...
14 小时前
-
4.33
curl-init
curl_init
Initialize a cURL session
ENTITY
CurlHandle
false
curl_init
string
null
url
ENTITY
Initializes a ...
14 小时前
-
4.34
curl-multi-add-handle
curl_multi_add_handle
Add a normal cURL handle to a cURL multi handle
ENTITY
int
curl_multi_add_handle
Curl...
14 小时前
-
4.35
curl-multi-close
curl_multi_close
Remove all cURL handles from a multi handle
ENTITY
void
curl_multi_close
CurlMultiHandle
m...
14 小时前
-
4.36
curl-multi-errno
curl_multi_errno
Return the last multi curl error number
ENTITY
int
curl_multi_errno
CurlMultiHandle
multi_...
14 小时前
-
4.37
curl-multi-exec
curl_multi_exec
Processes each of the handles in the stack
ENTITY
int
curl_multi_exec
CurlMultiHandle
multi...
14 小时前
-
4.38
curl-multi-get-handles
curl_multi_get_handles
Return an array of CurlHandle objects currently attached to a CurlMultiHandle
ENTITY...
14 小时前
-
4.39
curl-multi-getcontent
curl_multi_getcontent
Return the content of a cURL handle if
CURLOPT_RETURNTRANSFER
is set
ENTITY
string
nu...
14 小时前
-
4.40
curl-multi-info-read
curl_multi_info_read
Get information about the current transfers
ENTITY
array
false
curl_multi_info_read
Cu...
14 小时前
-
4.41
curl-multi-init
curl_multi_init
Returns a new cURL multi handle
ENTITY
CurlMultiHandle
curl_multi_init
Allows the processin...
14 小时前
-
4.42
curl-multi-remove-handle
curl_multi_remove_handle
Remove a handle from a set of cURL handles
ENTITY
int
curl_multi_remove_handle
Cur...
14 小时前
-
4.43
curl-multi-select
curl_multi_select
Wait until reading or writing is possible for any cURL multi handle connection
ENTITY
int...
14 小时前
-
4.44
curl-multi-setopt
curl_multi_setopt
Set a cURL multi option
ENTITY
bool
curl_multi_setopt
CurlMultiHandle
multi_handle
int
op...
14 小时前
-
4.45
curl-multi-strerror
curl_multi_strerror
Return string describing error code
ENTITY
string
null
curl_multi_strerror
int
error_co...
14 小时前
-
4.46
curl-pause
curl_pause
Pause and unpause a connection
ENTITY
int
curl_pause
CurlHandle
handle
int
flags
Pause or unpaus...
14 小时前
-
4.47
curl-reset
curl_reset
Reset all options of a libcurl session handle
ENTITY
void
curl_reset
CurlHandle
handle
This func...
14 小时前
-
4.48
curl-setopt-array
curl_setopt_array
Set multiple options for a cURL transfer
ENTITY
bool
curl_setopt_array
CurlHandle
handle
...
14 小时前
-
4.49
curl-setopt
curl_setopt
Set an option for a cURL transfer
ENTITY
bool
curl_setopt
CurlHandle
handle
int
option
mixed
va...
14 小时前
-
4.50
curl-share-close
curl_share_close
Close a cURL share handle
ENTITY
ENTITY
#[\Deprecated(since: '8.5', message: "as it has no...
14 小时前
-
4.51
curl-share-errno
curl_share_errno
Return the last share curl error number
ENTITY
int
curl_share_errno
CurlShareHandle
share_...
14 小时前
-
4.52
curl-share-init-persistent
curl_share_init_persistent
Initialize a
persistent
cURL share handle
ENTITY
CurlSharePersistentHandle
curl_...
14 小时前
-
4.53
curl-share-init
curl_share_init
Initialize a cURL share handle
ENTITY
CurlShareHandle
curl_share_init
Allows to share data ...
14 小时前
-
4.54
curl-share-setopt
curl_share_setopt
Set an option for a cURL share handle
ENTITY
bool
curl_share_setopt
CurlShareHandle
share...
14 小时前
-
4.55
curl-share-strerror
curl_share_strerror
Return string describing the given error code
ENTITY
string
null
curl_share_strerror
in...
14 小时前
-
4.56
curl-strerror
curl_strerror
Return string describing the given error code
ENTITY
string
null
curl_strerror
int
error_code...
14 小时前
-
4.57
curl-unescape
curl_unescape
Decodes the given URL encoded string
ENTITY
string
false
curl_unescape
CurlHandle
handle
stri...
14 小时前
-
4.58
curl-upkeep
curl_upkeep
Performs any connection upkeep checks
ENTITY
bool
curl_upkeep
CurlHandle
handle
Available if bu...
14 小时前
-
4.59
curl-version
curl_version
Gets cURL version information
ENTITY
array
false
curl_version
Returns information about the cU...
14 小时前
-
4.60
ini
ENTITY ENTITY
ENTITY
ENTITY
ENTITY
ENTITY
curl.cainfo
NULL
INI_SYSTEM
cURL Configuration Options
ENTITY
ENT...
14 小时前
-
4.61
reference
ENTITY
14 小时前
-
4.62
setup
ENTITY
ENTITY
In order to use PHP's cURL functions you need to install the libcurl package. PHP requires li...
14 小时前
-
4.63
book
ENTITY
This extension implements the JavaScript Object Notation (JSON) data-interchange format. PHP comes w...
14 小时前
-
4.64
constants
ENTITY ENTITY
The following constants indicate the type of error returned by
json_last_error or stored as ...
14 小时前
-
4.65
json-decode
json_decode
Decodes a JSON string
ENTITY
mixed
json_decode
string
json
bool
null
associative
ENTITY
int
dep...
14 小时前
-
4.66
json-encode
json_encode
Returns the JSON representation of a value
ENTITY
string
false
json_encode
mixed
value
int
flag...
14 小时前
-
4.67
json-last-error-msg
json_last_error_msg
Returns the error string of the last json_validate(), json_encode() or json_decode() ca...
14 小时前
-
4.68
json-last-error
json_last_error
Returns the last error occurred
ENTITY
int
json_last_error
Returns the last error (if any) ...
14 小时前
-
4.69
json-validate
json_validate
Checks if a string contains valid JSON
ENTITY
bool
json_validate
string
json
int
depth
512
in...
14 小时前
-
4.70
jsonexception
ENTITY
Exception thrown if
JSON_THROW_ON_ERROR option is set for
json_encode or
json_decode.
code conta...
14 小时前
-
4.71
jsonserializable
ENTITY
Objects implementing JsonSerializable can customize their JSON representation when encoded with
jso...
14 小时前
-
4.72
jsonserialize
JsonSerializable::jsonSerialize
Specify data which should be serialized to JSON
ENTITY
public
mixed
JsonSer...
14 小时前
-
4.73
reference
ENTITY
14 小时前
-
4.74
setup
ENTITY
ENTITY
The JSON extension is a core PHP extension, so it is always enabled.
Prior to PHP 8.0.0, the ...
14 小时前
-
4.75
book
ENTITY
While there are many languages in which every necessary character can be represented by a one-to-one...
14 小时前
-
4.76
configure
ENTITY
mbstring is a non-default extension. This means it is not enabled by default. You must explicitly en...
14 小时前
-
4.77
constants
ENTITY ENTITY
MB_OVERLOAD_MAIL (
int)
Removed as of PHP 8.0.0.
MB_OVERLOAD_STRING (
int)
Removed as of PHP ...
14 小时前
-
4.78
PHP Character Encoding Requirements
Encodings of the following types are safely used with PHP.
A singlebyte encoding,
which has ASCII-compatibl...
14 小时前
-
4.79
Summaries of supported encodings
Name in the IANA character set registry
Underlying character set
Description
Additional note
ISO-10646-UCS-...
14 小时前
-
4.80
mb-check-encoding
mb_check_encoding
Check if strings are valid for the specified encoding
ENTITY
bool
mb_check_encoding
array...
14 小时前
-
4.81
mb-chr
mb_chr
Return character by Unicode code point value
ENTITY
string
false
mb_chr
int
codepoint
string
null
en...
14 小时前
-
4.82
mb-convert-case
mb_convert_case
Perform case folding on a string
ENTITY
string
mb_convert_case
string
string
int
mode
strin...
14 小时前
-
4.83
mb-convert-encoding
mb_convert_encoding
Convert a string from one character encoding to another
ENTITY
array
string
false
mb_co...
14 小时前
-
4.84
mb-convert-kana
mb_convert_kana
Convert "kana" one from another ("zen-kaku", "han-kaku" and more)
ENTITY
string
mb_convert_...
14 小时前
-
4.85
mb-convert-variables
mb_convert_variables
Convert character code in variable(s)
ENTITY
string
false
mb_convert_variables
string
...
14 小时前
-
4.86
mb-decode-mimeheader
mb_decode_mimeheader
Decode string in MIME header field
ENTITY
string
mb_decode_mimeheader
string
string
De...
14 小时前
-
4.87
mb-decode-numericentity
mb_decode_numericentity
Decode HTML numeric string reference to character
ENTITY
string
mb_decode_numericen...
14 小时前
-
4.88
mb-detect-encoding
mb_detect_encoding
Detect character encoding
ENTITY
string
false
mb_detect_encoding
string
string
array
str...
14 小时前
-
4.89
mb-detect-order
mb_detect_order
Set/Get character encoding detection order
ENTITY
array
bool
mb_detect_order
array
string
n...
14 小时前
-
4.90
mb-encode-mimeheader
mb_encode_mimeheader
Encode string for MIME header
ENTITY
string
mb_encode_mimeheader
string
string
string
...
14 小时前
-
4.91
mb-encode-numericentity
mb_encode_numericentity
Encode character to HTML numeric string reference
ENTITY
string
mb_encode_numericen...
14 小时前
-
4.92
mb-encoding-aliases
mb_encoding_aliases
Get aliases of a known encoding type
ENTITY
array
mb_encoding_aliases
string
encoding
R...
14 小时前
-
4.93
mb-ereg-match
mb_ereg_match
Regular expression match for multibyte string
ENTITY
bool
mb_ereg_match
string
pattern
string...
14 小时前
-
4.94
mb-ereg-replace-callback
mb_ereg_replace_callback
Perform a regular expression search and replace with multibyte support using a cal...
14 小时前
-
4.95
mb-ereg-replace
mb_ereg_replace
Replace regular expression with multibyte support
ENTITY
string
false
null
mb_ereg_replace
...
14 小时前
-
4.96
mb-ereg-search-getpos
mb_ereg_search_getpos
Returns start point for next regular expression match
ENTITY
int
mb_ereg_search_getpo...
14 小时前
-
4.97
mb-ereg-search-getregs
mb_ereg_search_getregs
Retrieve the result from the last multibyte regular expression match
ENTITY
array
fa...
14 小时前
-
4.98
mb-ereg-search-init
mb_ereg_search_init
Setup string and regular expression for a multibyte regular expression match
ENTITY
boo...
14 小时前
-
4.99
mb-ereg-search-pos
mb_ereg_search_pos
Returns position and length of a matched part of the multibyte regular expression for a ...
14 小时前
-
4.100
mb-ereg-search-regs
mb_ereg_search_regs
Returns the matched part of a multibyte regular expression
ENTITY
array
false
mb_ereg_s...
14 小时前
-
4.101
mb-ereg-search-setpos
mb_ereg_search_setpos
Set start point of next regular expression match
ENTITY
bool
mb_ereg_search_setpos
in...
14 小时前
-
4.102
mb-ereg-search
mb_ereg_search
Multibyte regular expression match for predefined multibyte string
ENTITY
bool
mb_ereg_searc...
14 小时前
-
4.103
mb-ereg
mb_ereg
Regular expression match with multibyte support
ENTITY
bool
mb_ereg
string
pattern
string
string
ar...
14 小时前
-
4.104
mb-eregi-replace
mb_eregi_replace
Replace regular expression with multibyte support ignoring case
ENTITY
string
false
null
m...
14 小时前
-
4.105
mb-eregi
mb_eregi
Regular expression match ignoring case with multibyte support
ENTITY
bool
mb_eregi
string
pattern
...
14 小时前
-
4.106
mb-get-info
mb_get_info
Get internal settings of mbstring
ENTITY
array
string
int
false
null
mb_get_info
string
type
"a...
14 小时前
-
4.107
mb-http-input
mb_http_input
Detect HTTP input character encoding
ENTITY
array
string
false
mb_http_input
string
null
type...
14 小时前
-
4.108
mb-http-output
mb_http_output
Set/Get HTTP output character encoding
ENTITY
string
bool
mb_http_output
string
null
encodin...
14 小时前
-
4.109
mb-internal-encoding
mb_internal_encoding
Set/Get internal character encoding
ENTITY
string
bool
mb_internal_encoding
string
nul...
14 小时前
-
4.110
mb-language
mb_language
Set/Get current language
ENTITY
string
bool
mb_language
string
null
language
ENTITY
Set/Get the...
14 小时前
-
4.111
mb-lcfirst
mb_lcfirst
Make a string's first character lowercase
ENTITY
string
mb_lcfirst
string
string
string
null
enc...
14 小时前
-
4.112
mb-list-encodings
mb_list_encodings
Returns an array of all supported encodings
ENTITY
array
mb_list_encodings
Returns an arr...
14 小时前
-
4.113
mb-ltrim
mb_ltrim
Strip whitespace (or other characters) from the beginning of a string
ENTITY
string
mb_ltrim
strin...
14 小时前
-
4.114
mb-ord
mb_ord
Get Unicode code point of character
ENTITY
int
false
mb_ord
string
string
string
null
encoding
ENTIT...
14 小时前
-
4.115
mb-output-handler
mb_output_handler
Callback function converts character encoding in output buffer
ENTITY
string
mb_output_ha...
14 小时前
-
4.116
mb-parse-str
mb_parse_str
Parse GET/POST/COOKIE data and set global variable
ENTITY
bool
mb_parse_str
string
string
arra...
14 小时前
-
4.117
mb-preferred-mime-name
mb_preferred_mime_name
Get MIME charset string
ENTITY
string
false
mb_preferred_mime_name
string
encoding
G...
14 小时前
-
4.118
mb-regex-encoding
mb_regex_encoding
Set/Get character encoding for multibyte regex
ENTITY
string
bool
mb_regex_encoding
strin...
14 小时前
-
4.119
mb-regex-set-options
mb_regex_set_options
Set/Get the default options for mbregex functions
ENTITY
string
mb_regex_set_options
s...
14 小时前
-
4.120
mb-rtrim
mb_rtrim
Strip whitespace (or other characters) from the end of a string
ENTITY
string
mb_rtrim
string
stri...
14 小时前
-
4.121
mb-scrub
mb_scrub
Replace ill-formed byte sequences with the substitute character
ENTITY
string
mb_scrub
string
stri...
14 小时前
-
4.122
mb-send-mail
mb_send_mail
Send encoded mail
ENTITY
bool
mb_send_mail
string
to
string
subject
string
message
array
strin...
14 小时前
-
4.123
mb-split
mb_split
Split multibyte string using regular expression
ENTITY
array
false
mb_split
string
pattern
string
...
14 小时前
-
4.124
mb-str-pad
mb_str_pad
Pad a multibyte string to a certain length with another multibyte string
ENTITY
string
mb_str_pa...
14 小时前
-
4.125
mb-str-split
mb_str_split
Given a multibyte string, return an array of its characters
ENTITY
array
mb_str_split
string
s...
14 小时前
-
4.126
mb-strcut
mb_strcut
Get part of string
ENTITY
string
mb_strcut
string
string
int
start
int
null
length
ENTITY
string
...
14 小时前
-
4.127
mb-strimwidth
mb_strimwidth
Get truncated string with specified width
ENTITY
string
mb_strimwidth
string
string
int
start...
14 小时前
-
4.128
mb-stripos
mb_stripos
Finds position of first occurrence of a string within another, case insensitive
ENTITY
int
false...
14 小时前
-
4.129
mb-stristr
mb_stristr
Finds first occurrence of a string within another, case insensitive
ENTITY
string
false
mb_stris...
14 小时前
-
4.130
mb-strlen
mb_strlen
Get string length
ENTITY
int
mb_strlen
string
string
string
null
encoding
ENTITY
Gets the length ...
14 小时前
-
4.131
mb-strpos
mb_strpos
Find position of first occurrence of string in a string
ENTITY
int
false
mb_strpos
string
haystac...
14 小时前
-
4.132
mb-strrchr
mb_strrchr
Finds the last occurrence of a character in a string within another
ENTITY
string
false
mb_strrc...
14 小时前
-
4.133
mb-strrichr
mb_strrichr
Finds the last occurrence of a character in a string within another, case insensitive
ENTITY
st...
14 小时前
-
4.134
mb-strripos
mb_strripos
Finds position of last occurrence of a string within another, case insensitive
ENTITY
int
false...
14 小时前
-
4.135
mb-strrpos
mb_strrpos
Find position of last occurrence of a string in a string
ENTITY
int
false
mb_strrpos
string
hays...
14 小时前
-
4.136
mb-strstr
mb_strstr
Finds first occurrence of a string within another
ENTITY
string
false
mb_strstr
string
haystack
s...
14 小时前
-
4.137
mb-strtolower
mb_strtolower
Make a string lowercase
ENTITY
string
mb_strtolower
string
string
string
null
encoding
ENTITY...
14 小时前
-
4.138
mb-strtoupper
mb_strtoupper
Make a string uppercase
ENTITY
string
mb_strtoupper
string
string
string
null
encoding
ENTITY...
14 小时前
-
4.139
mb-strwidth
mb_strwidth
Return width of string
ENTITY
int
mb_strwidth
string
string
string
null
encoding
ENTITY
Returns...
14 小时前
-
4.140
mb-substitute-character
mb_substitute_character
Set/Get substitution character
ENTITY
string
int
bool
mb_substitute_character
strin...
14 小时前
-
4.141
mb-substr-count
mb_substr_count
Count the number of substring occurrences
ENTITY
int
mb_substr_count
string
haystack
string...
14 小时前
-
4.142
mb-substr
mb_substr
Get part of string
ENTITY
string
mb_substr
string
string
int
start
int
null
length
ENTITY
string
...
14 小时前
-
4.143
mb-trim
mb_trim
Strip whitespace (or other characters) from the beginning and end of a string
ENTITY
string
mb_trim...
14 小时前
-
4.144
mb-ucfirst
mb_ucfirst
Make a string's first character uppercase
ENTITY
string
mb_ucfirst
string
string
string
null
enc...
14 小时前
-
4.145
HTTP Input and Output
HTTP input/output character encoding conversion may convert binary data also. Users are supposed to control...
14 小时前
-
4.146
ini
ENTITY ENTITY
ENTITY
ENTITY
ENTITY
ENTITY
mbstring.language
"neutral"
INI_ALL
mbstring.detect_order
NULL
IN...
14 小时前
-
4.147
Basics of Japanese multi-byte encodings
Japanese characters can only be represented by multibyte encodings, and multiple encoding standards are use...
14 小时前
-
4.148
Function Overloading Feature
ENTITY
You might often find it difficult to get an existing PHP application to work in a given multibyte en...
14 小时前
-
4.149
reference
Multibyte character encoding schemes and their related issues are fairly complicated, and are beyond the sc...
14 小时前
-
4.150
setup
ENTITY ENTITY ENTITY
14 小时前
-
4.151
Supported Character Encodings
Currently the following character encodings are supported by the
mbstring module. Any of those Character e...
14 小时前
-
4.152
book
ENTITY
The
mysqli extension allows you to access the functionality provided by MySQL 4.1 and above. More i...
14 小时前
-
4.153
configure
ENTITY
The
mysqli extension was introduced with PHP version 5.0.0. The MySQL Native Driver was included in...
14 小时前
-
4.154
constants
ENTITY ENTITY
MYSQLI_READ_DEFAULT_GROUP (
int)
Read options from the named group from
my.cnf or the file s...
14 小时前
-
4.155
mysqli-execute
mysqli_execute
ENTITY
mysqli_stmt_execute
ENTITY
ENTITY
ENTITY
mysqli_stmt_execute.
ENTITY
mysqli_stmt_exe...
14 小时前
-
4.156
mysqli-get-client-stats
mysqli_get_client_stats
Returns client per-process statistics
ENTITY
array
mysqli_get_client_stats
Returns ...
14 小时前
-
4.157
mysqli-get-links-stats
mysqli_get_links_stats
Return information about open and cached links
ENTITY
array
mysqli_get_links_stats
m...
14 小时前
-
4.158
ini
ENTITY ENTITY
ENTITY
ENTITY
ENTITY
ENTITY
mysqli.allow_local_infile
"0"
INI_SYSTEM
Before PHP 7.2.16 and 7....
14 小时前
-
4.159
mysqli
ENTITY
Represents a connection between PHP and a MySQL database.
ENTITY
mysqli
ENTITY
public
readonly
int
s...
14 小时前
-
4.160
affected-rows
mysqli::$affected_rows
mysqli_affected_rows
Gets the number of affected rows in a previous MySQL operation
...
14 小时前
-
4.161
autocommit
mysqli::autocommit
mysqli_autocommit
Turns on or off auto-committing database modifications
ENTITY
ENTITY
p...
14 小时前
-
4.162
begin-transaction
mysqli::begin_transaction
mysqli_begin_transaction
Starts a transaction
ENTITY
ENTITY
public
bool
mysqli::b...
14 小时前
-
4.163
change-user
mysqli::change_user
mysqli_change_user
Changes the user of the database connection
ENTITY
ENTITY
public
boo...
14 小时前
-
4.164
character-set-name
mysqli::character_set_name
mysqli_character_set_name
Returns the current character set of the database conn...
14 小时前
-
4.165
close
mysqli::close
mysqli_close
Closes a previously opened database connection
ENTITY
ENTITY
public
true
mysqli:...
14 小时前
-
4.166
commit
mysqli::commit
mysqli_commit
Commits the current transaction
ENTITY
ENTITY
public
bool
mysqli::commit
int
f...
14 小时前
-
4.167
connect-errno
mysqli::$connect_errno
mysqli_connect_errno
Returns the error code from last connect call
ENTITY
ENTITY
int...
14 小时前
-
4.168
connect-error
mysqli::$connect_error
mysqli_connect_error
Returns a description of the last connection error
ENTITY
ENTIT...
14 小时前
-
4.169
construct
mysqli::__construct
mysqli::connect
mysqli_connect
Open a new connection to the MySQL server
ENTITY
ENTITY
...
14 小时前
-
4.170
debug
mysqli::debug
mysqli_debug
Performs debugging operations
ENTITY
ENTITY
public
true
mysqli::debug
string
opt...
14 小时前
-
4.171
dump-debug-info
mysqli::dump_debug_info
mysqli_dump_debug_info
Dump debugging information into the log
ENTITY
ENTITY
public...
14 小时前
-
4.172
errno
mysqli::$errno
mysqli_errno
Returns the error code for the most recent function call
ENTITY
ENTITY
int
mysq...
14 小时前
-
4.173
error-list
mysqli::$error_list
mysqli_error_list
Returns a list of errors from the last command executed
ENTITY
ENTITY...
14 小时前
-
4.174
error
mysqli::$error
mysqli_error
Returns a string description of the last error
ENTITY
ENTITY
string
mysqli-ENTI...
14 小时前
-
4.175
escape-string
mysqli::escape_string
mysqli_escape_string
ENTITY
mysqli_real_escape_string
ENTITY
ENTITY
mysqli_real_esca...
14 小时前
-
4.176
execute-query
mysqli::execute_query
mysqli_execute_query
Prepares, binds parameters, and executes SQL statement
ENTITY
EN...
14 小时前
-
4.177
field-count
mysqli::$field_count
mysqli_field_count
Returns the number of columns for the most recent query
ENTITY
ENTI...
14 小时前
-
4.178
get-charset
mysqli::get_charset
mysqli_get_charset
Returns a character set object
ENTITY
ENTITY
public
object
null
mysq...
14 小时前
-
4.179
get-client-info
mysqli::$client_info
mysqli::get_client_info
mysqli_get_client_info
Get MySQL client info
ENTITY
ENTITY
str...
14 小时前
-
4.180
get-client-version
mysqli::$client_version
mysqli_get_client_version
Returns the MySQL client version as an integer
ENTITY
ENT...
14 小时前
-
4.181
get-connection-stats
mysqli::get_connection_stats
mysqli_get_connection_stats
Returns statistics about the client connection
ENT...
14 小时前
-
4.182
get-host-info
mysqli::$host_info
mysqli_get_host_info
Returns a string representing the type of connection used
ENTITY
EN...
14 小时前
-
4.183
get-proto-info
mysqli::$protocol_version
mysqli_get_proto_info
Returns the version of the MySQL protocol used
ENTITY
ENTIT...
14 小时前
-
4.184
get-server-info
mysqli::$server_info
mysqli::get_server_info
mysqli_get_server_info
Returns the version of the MySQL server...
14 小时前
-
4.185
get-server-version
mysqli::$server_version
mysqli_get_server_version
Returns the version of the MySQL server as an integer
ENT...
14 小时前
-
4.186
get-warnings
mysqli::get_warnings
mysqli_get_warnings
Get result of SHOW WARNINGS
ENTITY
ENTITY
public
mysqli_warning
fa...
14 小时前
-
4.187
info
mysqli::$info
mysqli_info
Retrieves information about the most recently executed query
ENTITY
ENTITY
string...
14 小时前
-
4.188
init
mysqli::init
mysqli_init
Initializes MySQLi and returns an object for use with mysqli_real_connect()
ENTITY...
14 小时前
-
4.189
insert-id
mysqli::$insert_id
mysqli_insert_id
Returns the value generated for an AUTO_INCREMENT column by the last qu...
14 小时前
-
4.190
kill
mysqli::kill
mysqli_kill
Asks the server to kill a MySQL thread
ENTITY
ENTITY
ENTITY
#[\Deprecated(since: '...
14 小时前
-
4.191
more-results
mysqli::more_results
mysqli_more_results
Check if there are any more query results from a multi query
ENTIT...
14 小时前
-
4.192
multi-query
mysqli::multi_query
mysqli_multi_query
Performs one or more queries on the database
ENTITY
ENTITY
public
bo...
14 小时前
-
4.193
next-result
mysqli::next_result
mysqli_next_result
Prepare next result from multi_query
ENTITY
ENTITY
public
bool
mysql...
14 小时前
-
4.194
options
mysqli::options
mysqli_options
Set options
ENTITY
ENTITY
public
bool
mysqli::options
int
option
string
int
...
14 小时前
-
4.195
ping
mysqli::ping
mysqli_ping
Pings a server connection, or tries to reconnect if the connection has gone down
E...
14 小时前
-
4.196
poll
mysqli::poll
mysqli_poll
Poll connections
ENTITY
ENTITY
public
static
int
false
mysqli::poll
array
null
rea...
14 小时前
-
4.197
prepare
mysqli::prepare
mysqli_prepare
Prepares an SQL statement for execution
ENTITY
ENTITY
public
mysqli_stmt
fal...
14 小时前
-
4.198
query
mysqli::query
mysqli_query
Performs a query on the database
ENTITY
ENTITY
public
mysqli_result
bool
mysqli:...
14 小时前
-
4.199
quote-string
mysqli::quote_string
mysqli_quote_string
Quotes and escapes a string for use in an SQL statement
ENTITY
ENT...
14 小时前
-
4.200
real-connect
mysqli::real_connect
mysqli_real_connect
Opens a connection to the MySQL server
ENTITY
ENTITY
public
bool
m...
14 小时前
-
4.201
real-escape-string
mysqli::real_escape_string
mysqli_real_escape_string
Escapes special characters in a string for use in an S...
14 小时前
-
4.202
real-query
mysqli::real_query
mysqli_real_query
Execute an SQL query
ENTITY
ENTITY
public
bool
mysqli::real_query
stri...
14 小时前
-
4.203
reap-async-query
mysqli::reap_async_query
mysqli_reap_async_query
Get result from async query
ENTITY
ENTITY
public
mysqli_re...
14 小时前
-
4.204
refresh
mysqli::refresh
mysqli_refresh
Refreshes
ENTITY
ENTITY
ENTITY
#[\Deprecated(since: '8.4', message: 'use FLU...
14 小时前
-
4.205
release-savepoint
mysqli::release_savepoint
mysqli_release_savepoint
Removes the named savepoint from the set of savepoints o...
14 小时前
-
4.206
rollback
mysqli::rollback
mysqli_rollback
Rolls back current transaction
ENTITY
ENTITY
public
bool
mysqli::rollback
...
14 小时前
-
4.207
savepoint
mysqli::savepoint
mysqli_savepoint
Set a named transaction savepoint
ENTITY
ENTITY
public
bool
mysqli::save...
14 小时前
-
4.208
select-db
mysqli::select_db
mysqli_select_db
Selects the default database for database queries
ENTITY
ENTITY
public
b...
14 小时前
-
4.209
set-charset
mysqli::set_charset
mysqli_set_charset
Sets the client character set
ENTITY
ENTITY
public
bool
mysqli::set_...
14 小时前
-
4.210
set-opt
mysqli::set_opt
mysqli_set_opt
ENTITY
mysqli_options
ENTITY
ENTITY
mysqli_options.
14 小时前
-
4.211
sqlstate
mysqli::$sqlstate
mysqli_sqlstate
Returns the SQLSTATE error from previous MySQL operation
ENTITY
ENTITY
st...
14 小时前
-
4.212
ssl-set
mysqli::ssl_set
mysqli_ssl_set
Used for establishing secure connections using SSL
ENTITY
ENTITY
public
true...
14 小时前
-
4.213
stat
mysqli::stat
mysqli_stat
Gets the current system status
ENTITY
ENTITY
public
string
false
mysqli::stat
ENTI...
14 小时前
-
4.214
stmt-init
mysqli::stmt_init
mysqli_stmt_init
Initializes a statement and returns an object for use with mysqli_stmt_p...
14 小时前
-
4.215
store-result
mysqli::store_result
mysqli_store_result
Transfers a result set from the last query
ENTITY
ENTITY
public
my...
14 小时前
-
4.216
thread-id
mysqli::$thread_id
mysqli_thread_id
Returns the thread ID for the current connection
ENTITY
ENTITY
int
mysq...
14 小时前
-
4.217
thread-safe
mysqli::thread_safe
mysqli_thread_safe
Returns whether thread safety is given or not
ENTITY
ENTITY
public
b...
14 小时前
-
4.218
use-result
mysqli::use_result
mysqli_use_result
Initiate a result set retrieval
ENTITY
ENTITY
public
mysqli_result
fal...
14 小时前
-
4.219
warning-count
mysqli::$warning_count
mysqli_warning_count
Returns the number of warnings generated by the most recently e...
14 小时前
-
4.220
mysqli_driver
ENTITY
The
mysqli_driver class is an instance of the monostate pattern, i.e. there is only one driver whic...
14 小时前
-
4.221
embedded-server-end
mysqli_driver::embedded_server_end
mysqli_embedded_server_end
Stop embedded server
ENTITY
ENTITY
ENTITY
pub...
14 小时前
-
4.222
embedded-server-start
mysqli_driver::embedded_server_start
mysqli_embedded_server_start
Initialize and start embedded server
ENTI...
14 小时前
-
4.223
report-mode
mysqli_driver::$report_mode
mysqli_report
Sets mysqli error reporting mode
ENTITY
ENTITY
int
mysqli_driver-...
14 小时前
-
4.224
mysqli_result
ENTITY
Represents the result set obtained from a query against the database.
ENTITY
mysqli_result
implement...
14 小时前
-
4.225
construct
mysqli_result::__construct
Constructs a
mysqli_result
object
ENTITY
public
mysqli_result::__construct
mysql...
14 小时前
-
4.226
current-field
mysqli_result::$current_field
mysqli_field_tell
Get current field offset of a result pointer
ENTITY
ENTITY
...
14 小时前
-
4.227
data-seek
mysqli_result::data_seek
mysqli_data_seek
Adjusts the result pointer to an arbitrary row in the result
ENTI...
14 小时前
-
4.228
fetch-all
mysqli_result::fetch_all
mysqli_fetch_all
Fetch all result rows as an associative array, a numeric array, o...
14 小时前
-
4.229
fetch-array
mysqli_result::fetch_array
mysqli_fetch_array
Fetch the next row of a result set as an associative, a numer...
14 小时前
-
4.230
fetch-assoc
mysqli_result::fetch_assoc
mysqli_fetch_assoc
Fetch the next row of a result set as an associative array
EN...
14 小时前
-
4.231
fetch-column
mysqli_result::fetch_column
mysqli_fetch_column
Fetch a single column from the next row of a result set
ENT...
14 小时前
-
4.232
fetch-field-direct
mysqli_result::fetch_field_direct
mysqli_fetch_field_direct
Fetch meta-data for a single field
ENTITY
ENTIT...
14 小时前
-
4.233
fetch-field
mysqli_result::fetch_field
mysqli_fetch_field
Returns the next field in the result set
ENTITY
ENTITY
public...
14 小时前
-
4.234
fetch-fields
mysqli_result::fetch_fields
mysqli_fetch_fields
Returns an array of objects representing the fields in a re...
14 小时前
-
4.235
fetch-object
mysqli_result::fetch_object
mysqli_fetch_object
Fetch the next row of a result set as an object
ENTITY
ENTI...
14 小时前
-
4.236
fetch-row
mysqli_result::fetch_row
mysqli_fetch_row
Fetch the next row of a result set as an enumerated array
ENTITY
...
14 小时前
-
4.237
field-count
mysqli_result::$field_count
mysqli_num_fields
Gets the number of fields in the result set
ENTITY
ENTITY
int...
14 小时前
-
4.238
field-seek
mysqli_result::field_seek
mysqli_field_seek
Set result pointer to a specified field offset
ENTITY
ENTITY
pu...
14 小时前
-
4.239
free
mysqli_result::free
mysqli_result::close
mysqli_result::free_result
mysqli_free_result
Frees the memory ass...
14 小时前
-
4.240
getiterator
mysqli_result::getIterator
Retrieve an external iterator
ENTITY
public
Iterator
mysqli_result::getIterator
...
14 小时前
-
4.241
lengths
mysqli_result::$lengths
mysqli_fetch_lengths
Returns the lengths of the columns of the current row in the r...
14 小时前
-
4.242
num-rows
mysqli_result::$num_rows
mysqli_num_rows
Gets the number of rows in the result set
ENTITY
ENTITY
int
string...
14 小时前
-
4.243
mysqli_sql_exception
ENTITY
The mysqli exception handling class.
ENTITY
final
mysqli_sql_exception
extends
RuntimeException
ENTI...
14 小时前
-
4.244
getsqlstate
mysqli_sql_exception::getSqlState
Returns the SQLSTATE error code
ENTITY
public
string
mysqli_sql_exception...
14 小时前
-
4.245
mysqli_stmt
ENTITY
Represents a prepared statement.
ENTITY
mysqli_stmt
ENTITY
public
readonly
int
string
affected_rows
...
14 小时前
-
4.246
affected-rows
mysqli_stmt::$affected_rows
mysqli_stmt_affected_rows
Returns the total number of rows changed, deleted, in...
14 小时前
-
4.247
attr-get
mysqli_stmt::attr_get
mysqli_stmt_attr_get
Used to get the current value of a statement attribute
ENTITY
EN...
14 小时前
-
4.248
attr-set
mysqli_stmt::attr_set
mysqli_stmt_attr_set
Used to modify the behavior of a prepared statement
ENTITY
ENTIT...
14 小时前
-
4.249
bind-param
mysqli_stmt::bind_param
mysqli_stmt_bind_param
Binds variables to a prepared statement as parameters
ENTITY...
14 小时前
-
4.250
bind-result
mysqli_stmt::bind_result
mysqli_stmt_bind_result
Binds variables to a prepared statement for result storage...
14 小时前
-
4.251
close
mysqli_stmt::close
mysqli_stmt_close
Closes a prepared statement
ENTITY
ENTITY
public
true
mysqli_stmt::clo...
14 小时前
-
4.252
construct
mysqli_stmt::__construct
Constructs a new
mysqli_stmt
object
ENTITY
public
mysqli_stmt::__construct
mysqli
...
14 小时前
-
4.253
data-seek
mysqli_stmt::data_seek
mysqli_stmt_data_seek
Adjusts the result pointer to an arbitrary row in the buffered...
14 小时前
-
4.254
errno
mysqli_stmt::$errno
mysqli_stmt_errno
Returns the error code for the most recent statement call
ENTITY
ENTI...
14 小时前
-
4.255
error-list
mysqli_stmt::$error_list
mysqli_stmt_error_list
Returns a list of errors from the last statement executed
E...
14 小时前
-
4.256
error
mysqli_stmt::$error
mysqli_stmt_error
Returns a string description for last statement error
ENTITY
ENTITY
s...
14 小时前
-
4.257
execute
mysqli_stmt::execute
mysqli_stmt_execute
Executes a prepared statement
ENTITY
ENTITY
public
bool
mysqli_stm...
14 小时前
-
4.258
fetch
mysqli_stmt::fetch
mysqli_stmt_fetch
Fetch results from a prepared statement into the bound variables
ENTIT...
14 小时前
-
4.259
field-count
mysqli_stmt::$field_count
mysqli_stmt_field_count
Returns the number of columns in the given statement
ENTI...
14 小时前
-
4.260
free-result
mysqli_stmt::free_result
mysqli_stmt_free_result
Frees stored result memory for the given statement handle
...
14 小时前
-
4.261
get-result
mysqli_stmt::get_result
mysqli_stmt_get_result
Gets a result set from a prepared statement as a
mysqli_resu...
14 小时前
-
4.262
get-warnings
mysqli_stmt::get_warnings
mysqli_stmt_get_warnings
Get result of SHOW WARNINGS
ENTITY
ENTITY
public
mysqli_...
14 小时前
-
4.263
insert-id
mysqli_stmt::$insert_id
mysqli_stmt_insert_id
Returns the value generated for an AUTO_INCREMENT column by t...
14 小时前
-
4.264
more-results
mysqli_stmt::more_results
mysqli_stmt_more_results
Check if there are more query results from a multiple qu...
14 小时前
-
4.265
next-result
mysqli_stmt::next_result
mysqli_stmt_next_result
Reads the next result from a multiple query
ENTITY
ENTITY
...
14 小时前
-
4.266
num-rows
mysqli_stmt::$num_rows
mysqli_stmt::num_rows
mysqli_stmt_num_rows
Returns the number of rows fetched from t...
14 小时前
-
4.267
param-count
mysqli_stmt::$param_count
mysqli_stmt_param_count
Returns the number of parameters for the given statement
...
14 小时前
-
4.268
prepare
mysqli_stmt::prepare
mysqli_stmt_prepare
Prepares an SQL statement for execution
ENTITY
ENTITY
public
bool
...
14 小时前
-
4.269
reset
mysqli_stmt::reset
mysqli_stmt_reset
Resets a prepared statement
ENTITY
ENTITY
public
bool
mysqli_stmt::res...
14 小时前
-
4.270
result-metadata
mysqli_stmt::result_metadata
mysqli_stmt_result_metadata
Returns result set metadata from a prepared statem...
14 小时前
-
4.271
send-long-data
mysqli_stmt::send_long_data
mysqli_stmt_send_long_data
Send data in blocks
ENTITY
ENTITY
public
bool
mysqli...
14 小时前
-
4.272
sqlstate
mysqli_stmt::$sqlstate
mysqli_stmt_sqlstate
Returns SQLSTATE error from previous statement operation
ENTITY...
14 小时前
-
4.273
store-result
mysqli_stmt::store_result
mysqli_stmt_store_result
Stores a result set in an internal buffer
ENTITY
ENTITY
...
14 小时前
-
4.274
mysqli_warning
ENTITY
Represents a MySQL warning.
ENTITY
final
mysqli_warning
ENTITY
public
string
message
public
string
s...
14 小时前
-
4.275
construct
mysqli_warning::__construct
Private constructor to disallow direct instantiation
ENTITY
private
mysqli_warn...
14 小时前
-
4.276
next
mysqli_warning::next
Fetch next warning
ENTITY
public
bool
mysqli_warning::next
Change warning information ...
14 小时前
-
4.277
Overview
This section provides an introduction to the options available to you when developing a PHP application tha...
14 小时前
-
4.278
The mysqli Extension and Persistent Connections
The idea behind persistent connections is that a connection between a client process and a database can be ...
14 小时前
-
4.279
Quick start guide
This quick start guide will help with choosing and gaining familiarity with the PHP MySQL API.
This quick s...
14 小时前
-
4.280
reference
ENTITY
14 小时前
-
4.281
setup
ENTITY
ENTITY
In order to have these functions available, you must compile PHP with support for the mysqli ...
14 小时前
-
4.282
book
ENTITY
Session support in PHP consists of a way to preserve certain data across subsequent accesses.
A visi...
14 小时前
-
4.283
configure
ENTITY
ENTITY
--disable-session
To use shared memory allocation (mm) for session storage configure PHP
--...
14 小时前
-
4.284
constants
ENTITY ENTITY
SID (
string)
Constant containing either the session name and session ID in the form of
"nam...
14 小时前
-
4.285
examples
ENTITY
Basic usage
Sessions are a simple way to store data for individual users against a unique session ID...
14 小时前
-
4.286
session-abort
session_abort
Discard session array changes and finish session
ENTITY
bool
session_abort
session_abort fini...
14 小时前
-
4.287
session-cache-expire
session_cache_expire
Get and/or set current cache expire
ENTITY
int
false
session_cache_expire
int
null
val...
14 小时前
-
4.288
session-cache-limiter
session_cache_limiter
Get and/or set the current cache limiter
ENTITY
string
false
session_cache_limiter
st...
14 小时前
-
4.289
session-commit
session_commit
ENTITY
session_write_close
ENTITY
ENTITY
session_write_close.
14 小时前
-
4.290
session-create-id
session_create_id
Create new session id
ENTITY
string
false
session_create_id
string
prefix
""
session_crea...
14 小时前
-
4.291
session-decode
session_decode
Decodes session data from a session encoded string
ENTITY
bool
session_decode
string
data
se...
14 小时前
-
4.292
session-destroy
session_destroy
Destroys all data registered to a session
ENTITY
bool
session_destroy
session_destroy destr...
14 小时前
-
4.293
session-encode
session_encode
Encodes the current session data as a session encoded string
ENTITY
string
false
session_enc...
14 小时前
-
4.294
session-gc
session_gc
Perform session data garbage collection
ENTITY
int
false
session_gc
By default, PHP uses session...
14 小时前
-
4.295
session-get-cookie-params
session_get_cookie_params
Get the session cookie parameters
ENTITY
array
session_get_cookie_params
Gets the...
14 小时前
-
4.296
session-id
session_id
Get and/or set the current session id
ENTITY
string
false
session_id
string
null
id
ENTITY
sessi...
14 小时前
-
4.297
session-module-name
session_module_name
Get and/or set the current session module
ENTITY
string
false
session_module_name
strin...
14 小时前
-
4.298
session-name
session_name
Get and/or set the current session name
ENTITY
string
false
session_name
string
null
name
ENTI...
14 小时前
-
4.299
session-regenerate-id
session_regenerate_id
Update the current session id with a newly generated one
ENTITY
bool
session_regenera...
14 小时前
-
4.300
session-register-shutdown
session_register_shutdown
Session shutdown function
ENTITY
void
session_register_shutdown
Registers
sessio...
14 小时前
-
4.301
session-reset
session_reset
Re-initialize session array with original values
ENTITY
bool
session_reset
session_reset rein...
14 小时前
-
4.302
session-save-path
session_save_path
Get and/or set the current session save path
ENTITY
string
false
session_save_path
string...
14 小时前
-
4.303
session-set-cookie-params
session_set_cookie_params
Set the session cookie parameters
ENTITY
bool
session_set_cookie_params
int
lifet...
14 小时前
-
4.304
session-set-save-handler
session_set_save_handler
Sets user-level session storage functions
ENTITY
bool
session_set_save_handler
cal...
14 小时前
-
4.305
session-start
session_start
Start new or resume existing session
ENTITY
bool
session_start
array
options
[]
session_start...
14 小时前
-
4.306
session-status
session_status
Returns the current session status
ENTITY
int
session_status
session_status is used to retur...
14 小时前
-
4.307
session-unset
session_unset
Free all session variables
ENTITY
bool
session_unset
The
session_unset function frees all se...
14 小时前
-
4.308
session-write-close
session_write_close
Write session data and end session
ENTITY
bool
session_write_close
End the current sess...
14 小时前
-
4.309
ini
ENTITY ENTITY
ENTITY
ENTITY
ENTITY
ENTITY
session.save_path
""
INI_ALL
session.name
"PHPSESSID"
INI_ALL
ses...
14 小时前
-
4.310
reference
ENTITY
14 小时前
-
4.311
Sessions and Security
External links: Session fixation
HTTP session management represents the core of web security. All possible ...
14 小时前
-
4.312
sessionhandler
ENTITY
SessionHandler is a special class that can be used to expose the current internal PHP session save h...
14 小时前
-
4.313
close
SessionHandler::close
Close the session
ENTITY
public
bool
SessionHandler::close
Closes the current session...
14 小时前
-
4.314
create-sid
SessionHandler::create_sid
Return a new session ID
ENTITY
public
string
SessionHandler::create_sid
Generate...
14 小时前
-
4.315
destroy
SessionHandler::destroy
Destroy a session
ENTITY
public
bool
SessionHandler::destroy
string
id
Destroys a s...
14 小时前
-
4.316
gc
SessionHandler::gc
Cleanup old sessions
ENTITY
public
int
false
SessionHandler::gc
int
max_lifetime
Cleans ...
14 小时前
-
4.317
open
SessionHandler::open
Initialize session
ENTITY
public
bool
SessionHandler::open
string
path
string
name
Cre...
14 小时前
-
4.318
read
SessionHandler::read
Read session data
ENTITY
public
string
false
SessionHandler::read
string
id
Reads the ...
14 小时前
-
4.319
write
SessionHandler::write
Write session data
ENTITY
public
bool
SessionHandler::write
string
id
string
data
Wri...
14 小时前
-
4.320
sessionhandlerinterface
ENTITY
SessionHandlerInterface is an interface which defines the minimal prototype for creating a custom se...
14 小时前
-
4.321
close
SessionHandlerInterface::close
Close the session
ENTITY
public
bool
SessionHandlerInterface::close
Closes t...
14 小时前
-
4.322
destroy
SessionHandlerInterface::destroy
Destroy a session
ENTITY
public
bool
SessionHandlerInterface::destroy
stri...
14 小时前
-
4.323
gc
SessionHandlerInterface::gc
Cleanup old sessions
ENTITY
public
int
false
SessionHandlerInterface::gc
int
ma...
14 小时前
-
4.324
open
SessionHandlerInterface::open
Initialize session
ENTITY
public
bool
SessionHandlerInterface::open
string
pa...
14 小时前
-
4.325
read
SessionHandlerInterface::read
Read session data
ENTITY
public
string
false
SessionHandlerInterface::read
st...
14 小时前
-
4.326
write
SessionHandlerInterface::write
Write session data
ENTITY
public
bool
SessionHandlerInterface::write
string
...
14 小时前
-
4.327
sessionidinterface
ENTITY
SessionIdInterface is an interface which defines optional methods for creating a custom session hand...
14 小时前
-
4.328
create-sid
SessionIdInterface::create_sid
Create session ID
ENTITY
public
string
SessionIdInterface::create_sid
Create...
14 小时前
-
4.329
sessionupdatetimestamphandlerinterface
ENTITY
SessionUpdateTimestampHandlerInterface is an interface which defines optional methods for creating a...
14 小时前
-
4.330
updatetimestamp
SessionUpdateTimestampHandlerInterface::updateTimestamp
Update timestamp
ENTITY
public
bool
SessionUpdateTi...
14 小时前
-
4.331
validateid
SessionUpdateTimestampHandlerInterface::validateId
Validate ID
ENTITY
public
bool
SessionUpdateTimestampHan...
14 小时前
-
4.332
setup
ENTITY
ENTITY ENTITY
[!NOTE]
Optionally you can use shared memory allocation (mm), developed by Ralf S. Eng...
14 小时前
-
4.333
Session Upload Progress
When the session.upload_progress.enabled INI option is enabled, PHP will be able to track the upload progre...
14 小时前