跳转到主要内容

章节PHP Manual

Language

278 页更新于 19 小时前

开始阅读

本章内容278

  1. 01 Attributes Attributes overview PHP attributes provide structured, machine-readable metadata for classes, methods, func... 19 小时前
  2. 02 Basic syntax PHP tags When PHP processes a file, it recognizes the opening and closing tags, ENTITY?php and ?ENTITY, t... 19 小时前
  3. 03 Constants A constant is an identifier (name) for a simple value. As the name suggests, that value cannot change durin... 19 小时前
  4. 04 context PHP offers various context options and parameters which can be used with all filesystem and stream wrappers... 19 小时前
  5. 05 ftp FTP context options FTP context option listing ENTITY Context options for ftp:// and ftps:// transports. ... 19 小时前
  6. 06 http HTTP context options HTTP context option listing ENTITY Context options for http:// and https:// transpor... 19 小时前
  7. 07 parameters Context parameters Context parameter listing ENTITY These parameters can be set on a context using the s... 19 小时前
  8. 08 phar Phar context options Phar context option listing ENTITY Context options for phar:// wrapper. ENTITY compre... 19 小时前
  9. 09 socket Socket context options Socket context option listing ENTITY Socket context options are available for all wr... 19 小时前
  10. 10 ssl SSL context options SSL context option listing ENTITY Context options for ssl:// and tls:// transports. E... 19 小时前
  11. 11 zip Zip context options Zip context option listing ENTITY Zip context options are available for zip wrappers. ... 19 小时前
  12. 12 zlib Zlib context options Zlib context option listing ENTITY Zlib context options are available for zlib wrappe... 19 小时前
  13. 13 Control Structures Introduction Any PHP script is built out of a series of statements. A statement can be an assignment, a fun... 19 小时前
  14. 14 Alternative syntax for control structures PHP offers an alternative syntax for some of its control structures; namely, if, while, for, foreach, ... 19 小时前
  15. 15 break break ends execution of the current for, foreach, while, do-while or switch structure. break accepts a... 19 小时前
  16. 16 continue continue is used within looping structures to skip the rest of the current loop iteration and continue exec... 19 小时前
  17. 17 declare The declare construct is used to set execution directives for a block of code. The syntax of declare is s... 19 小时前
  18. 18 do-while do-while loops are very similar to while loops, except the truth expression is checked at the end of each ... 19 小时前
  19. 19 else Often you'd want to execute a statement if a certain condition is met, and a different statement if the con... 19 小时前
  20. 20 elseif/else if elseif, as its name suggests, is a combination of if and else. Like else, it extends an if statement to... 19 小时前
  21. 21 finally A ENTITY block may also be specified after or instead of ENTITY blocks. Code within the ENTITY block will a... 19 小时前
  22. 22 for for loops are the most complex loops in PHP. They behave like their C counterparts. The syntax of a for lo... 19 小时前
  23. 23 foreach The foreach construct provides an easy way to iterate over arrays and objects. foreach will issue an err... 19 小时前
  24. 24 goto The goto operator can be used to jump to another section in the program. The target point is specified by ... 19 小时前
  25. 25 if The if construct is one of the most important features of many languages, PHP included. It allows for cond... 19 小时前
  26. 26 include_once The include_once expression includes and evaluates the specified file during the execution of the script. ... 19 小时前
  27. 27 include The include expression includes and evaluates the specified file. The documentation below also applies to ... 19 小时前
  28. 28 match The match expression branches evaluation based on an identity check of a value. Similarly to a switch sta... 19 小时前
  29. 29 require_once The require_once expression is identical to require except PHP will check if the file has already been in... 19 小时前
  30. 30 require require is identical to include except upon failure it will also produce an Error exception ( E_COMPILE_E... 19 小时前
  31. 31 return return returns program control to the calling module. Execution resumes at the expression following the cal... 19 小时前
  32. 32 switch The switch statement is similar to a series of if statements on the same expression. In situations where ... 19 小时前
  33. 33 throw The ENTITY keyword is an expression and may be used in any expression context. It takes a Throwable object ... 19 小时前
  34. 34 try...catch try A ENTITY block delimits a segment of code which might ENTITY a Throwable error that needs handling. A E... 19 小时前
  35. 35 while while loops are the simplest type of loop in PHP. They behave just like their C counterparts. The basic for... 19 小时前
  36. 36 Enumerations Enumerations overview Enumerations, or "Enums", allow a developer to define a custom type that is limited t... 19 小时前
  37. 37 Error Handling Errors are a normal part of the development and life cycle of an application. As such, PHP provides multipl... 19 小时前
  38. 38 Expressions Expressions are the most important building blocks of PHP. In PHP, almost anything you write is an expressi... 19 小时前
  39. 39 Fibers Fibers overview Fibers represent full-stack, interruptible functions. Fibers may be suspended from anywhere... 19 小时前
  40. 40 Functions User-defined functions A function is defined using the function keyword, a name, a list of parameters (whi... 19 小时前
  41. 41 Generators Generators overview Generators provide an easy way to implement simple iterators without the overhead or co... 19 小时前
  42. 42 Namespaces Namespaces overview What are namespaces? In the broadest definition namespaces are a way of encapsulating i... 19 小时前
  43. 43 Classes and Objects Introduction PHP includes a complete object model. Some of its features are: visibility, abstract and final... 19 小时前
  44. 44 Class Abstraction PHP has abstract classes, methods, and properties. Classes defined as abstract cannot be instantiated, and ... 19 小时前
  45. 45 Anonymous classes Anonymous classes are useful when simple, one-off objects need to be created. <?php // Using an explicit cl... 19 小时前
  46. 46 Autoloading Classes Many developers writing object-oriented applications create one PHP source file per class definition. One o... 19 小时前
  47. 47 The Basics class Basic class definitions begin with the keyword class, followed by a class name, followed by a pair o... 19 小时前
  48. 48 OOP Changelog Changes to the PHP OOP model are logged here. Descriptions and other notes regarding these features are doc... 19 小时前
  49. 49 Object Cloning Creating a copy of an object with fully replicated properties is not always the wanted behavior. A good exa... 19 小时前
  50. 50 Class Constants It is possible to define constants on a per-class basis. The default visibility of class constants is publ... 19 小时前
  51. 51 Constructors and Destructors Constructor void __construct mixed values "" PHP allows developers to declare constructor methods for class... 19 小时前
  52. 52 Final Keyword The final keyword prevents child classes from overriding a method, property, or constant by prefixing the d... 19 小时前
  53. 53 Object Inheritance Inheritance is a well-established programming principle, and PHP makes use of this principle in its object ... 19 小时前
  54. 54 Object Interfaces Object interfaces allow you to create code which specifies which methods and properties a class must implem... 19 小时前
  55. 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... 19 小时前
  56. 56 Late Static Bindings PHP implements a feature called late static bindings which can be used to reference the called class in the... 19 小时前
  57. 57 Lazy Objects A lazy object is an object whose initialization is deferred until its state is observed or modified. Some u... 19 小时前
  58. 58 Magic Methods Magic methods are special methods which override PHP's default action when certain actions are performed on... 19 小时前
  59. 59 Comparing Objects When using the comparison operator ( ==), object variables are compared in a simple manner, namely: Two obj... 19 小时前
  60. 60 Overloading Overloading in PHP provides means to dynamically “create” properties and methods. These dynamic entities ar... 19 小时前
  61. 61 Scope Resolution Operator (::) The Scope Resolution Operator (also called Paamayim Nekudotayim) or in simpler terms, the double colon, is ... 19 小时前
  62. 62 Properties Class member variables are called properties. They may be referred to using other terms such as fields, but... 19 小时前
  63. 63 Property Hooks Property hooks, also known as "property accessors" in some other languages, are a way to intercept and over... 19 小时前
  64. 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... 19 小时前
  65. 65 Serializing objects - objects in sessions serialize returns a string containing a byte-stream representation of any value that can be stored in PHP. ... 19 小时前
  66. 66 Static Keyword [!TIP] This page describes the use of the static keyword to define static methods and properties. static ... 19 小时前
  67. 67 Traits PHP implements a way to reuse code called Traits. Traits are a mechanism for code reuse in single inheritan... 19 小时前
  68. 68 Covariance and Contravariance In PHP 7.2.0, partial contravariance was introduced by removing type restrictions on parameters in a child ... 19 小时前
  69. 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... 19 小时前
  70. 70 Operators An operator is something that takes one or more values (or expressions, in programming jargon) and yields a... 19 小时前
  71. 71 Arithmetic Operators Remember basic arithmetic from school? These work just like those. Example Name Result +$a Identity Convers... 19 小时前
  72. 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... 19 小时前
  73. 73 Assignment Operators The basic assignment operator is "=". Your first inclination might be to think of this as "equal to". Don't... 19 小时前
  74. 74 Bitwise Operators Bitwise operators allow evaluation and manipulation of specific bits within an integer. Example Name Result... 19 小时前
  75. 75 Comparison Operators Comparison operators, as their name implies, allow you to compare two values. You may also be interested in... 19 小时前
  76. 76 Error Control Operators PHP supports one error control operator: the at sign ( @). When prepended to an expression in PHP, any diag... 19 小时前
  77. 77 Execution Operators PHP supports one execution operator: backticks ( ``). Note that these are not single-quotes! PHP will attem... 19 小时前
  78. 78 Functional Operators PHP 8.5 and later supports one operator that works directly on callables. The |ENTITY operator, or “pipe,”... 19 小时前
  79. 79 Incrementing/Decrementing Operators PHP supports pre- and post-increment and decrement operators. Those unary operators allow to increment or d... 19 小时前
  80. 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... 19 小时前
  81. 81 Operator Precedence The precedence of an operator specifies how "tightly" it binds two expressions together. For example, in th... 19 小时前
  82. 82 String Operators There are two string operators. The first is the concatenation operator ('.'), which returns the concatena... 19 小时前
  83. 83 Type Operators instanceof is used to determine whether a PHP variable is an instantiated object of a certain class: Using ... 19 小时前
  84. 84 construct AllowDynamicProperties::__construct Construct a new AllowDynamicProperties attribute instance ENTITY public... 19 小时前
  85. 85 argumentcounterror ENTITY ArgumentCountError is thrown when too few arguments are passed to a user-defined function or method.... 19 小时前
  86. 86 arithmeticerror ENTITY ArithmeticError is thrown when an error occurs while performing mathematical operations. These error... 19 小时前
  87. 87 arrayaccess ENTITY Interface to provide access to objects as arrays. ENTITY ArrayAccess ENTITY ENTITY Basic usage <?php... 19 小时前
  88. 88 offsetexists ArrayAccess::offsetExists Whether an offset exists ENTITY public bool ArrayAccess::offsetExists mixed offse... 19 小时前
  89. 89 offsetget ArrayAccess::offsetGet Offset to retrieve ENTITY public mixed ArrayAccess::offsetGet mixed offset Returns t... 19 小时前
  90. 90 offsetset ArrayAccess::offsetSet Assign a value to the specified offset ENTITY public void ArrayAccess::offsetSet mix... 19 小时前
  91. 91 offsetunset ArrayAccess::offsetUnset Unset an offset ENTITY public void ArrayAccess::offsetUnset mixed offset Unsets an... 19 小时前
  92. 92 assertionerror ENTITY AssertionError is thrown when an assertion made via assert fails. ENTITY AssertionError extends Err... 19 小时前
  93. 93 construct Attribute::__construct Construct a new Attribute instance ENTITY public Attribute::__construct int flags At... 19 小时前
  94. 94 Predefined Attributes PHP provides some predefined attributes that can be used. ENTITY ENTITY ENTITY ENTITY ENTITY ENTITY ENTITY ... 19 小时前
  95. 95 allowdynamicproperties ENTITY This attribute is used to mark classes that allow dynamic properties. [!NOTE] Although attributes th... 19 小时前
  96. 96 attribute ENTITY Attributes offer the ability to add structured, machine-readable metadata information on declaration... 19 小时前
  97. 97 delayedtargetvalidation ENTITY This attribute delays target validation errors for internal attributes from compile time to when the... 19 小时前
  98. 98 deprecated ENTITY This attribute is used to mark functionality as deprecated. Using deprecated functionality will caus... 19 小时前
  99. 99 construct Deprecated::__construct Construct a new Deprecated attribute instance ENTITY public Deprecated::__construct... 19 小时前
  100. 100 nodiscard ENTITY This attribute can be used to indicate that the return value of a function or a method should not be... 19 小时前
  101. 101 construct NoDiscard::__construct Construct a new NoDiscard attribute instance ENTITY public NoDiscard::__construct st... 19 小时前
  102. 102 override ENTITY This attribute is used to indicate that a method or a property is intended to override a method or a... 19 小时前
  103. 103 construct Override::__construct Construct a new Override attribute instance ENTITY public Override::__construct Const... 19 小时前
  104. 104 returntypewillchange ENTITY As of PHP 8.1.0, a tentative phase of transitioning to return type declarations for internal class m... 19 小时前
  105. 105 sensitiveparameter ENTITY This attribute is used to mark a parameter that is sensitive and should have its value redacted if p... 19 小时前
  106. 106 backedenum ENTITY The BackedEnum interface is automatically applied to backed enumerations by the engine. It may not ... 19 小时前
  107. 107 from BackedEnum::from Maps a scalar to an enum instance ENTITY public static static BackedEnum::from int string ... 19 小时前
  108. 108 tryfrom BackedEnum::tryFrom Maps a scalar to an enum instance or null ENTITY public static static null BackedEnum::... 19 小时前
  109. 109 closedgeneratorexception ENTITY A ClosedGeneratorException is thrown when trying to retrieve a value from a closed Generator. ENTIT... 19 小时前
  110. 110 closure ENTITY Class used to represent anonymous functions. Anonymous functions yield objects of this type. This cl... 19 小时前
  111. 111 bind Closure::bind Duplicates a closure with a specific bound object and class scope ENTITY public static Closur... 19 小时前
  112. 112 bindto Closure::bindTo Duplicates the closure with a new bound object and class scope ENTITY public Closure null C... 19 小时前
  113. 113 call Closure::call Binds and calls the closure ENTITY public mixed Closure::call object newThis mixed args Tempo... 19 小时前
  114. 114 construct Closure::__construct Constructor that disallows instantiation ENTITY private Closure::__construct This meth... 19 小时前
  115. 115 fromcallable Closure::fromCallable Converts a callable into a closure ENTITY public static Closure Closure::fromCallable... 19 小时前
  116. 116 getcurrent Closure::getCurrent Returns the currently executing closure ENTITY public static Closure Closure::getCurren... 19 小时前
  117. 117 compileerror ENTITY CompileError is thrown for some compilation errors, which formerly issued a fatal error. ENTITY Comp... 19 小时前
  118. 118 countable ENTITY Classes implementing Countable can be used with the count function. ENTITY Countable ENTITY ENTITY 19 小时前
  119. 119 count Countable::count Count elements of an object ENTITY public int Countable::count This method is executed whe... 19 小时前
  120. 120 divisionbyzeroerror ENTITY DivisionByZeroError is thrown when an attempt is made to divide a number by zero. ENTITY DivisionByZ... 19 小时前
  121. 121 error ENTITY Error is the base class for errors that indicate programming mistakes. Such errors generally require... 19 小时前
  122. 122 clone Error::__clone Clone the error ENTITY private void Error::__clone Errors do not support cloning; this metho... 19 小时前
  123. 123 construct Error::__construct Construct the error object ENTITY public Error::__construct string message "" int code 0... 19 小时前
  124. 124 getcode Error::getCode Gets the error code ENTITY final public int Error::getCode Returns the error code. ENTITY EN... 19 小时前
  125. 125 getfile Error::getFile Gets the file in which the error occurred ENTITY final public string Error::getFile Get the ... 19 小时前
  126. 126 getline Error::getLine Gets the line in which the error occurred ENTITY final public int Error::getLine Get line nu... 19 小时前
  127. 127 getmessage Error::getMessage Gets the error message ENTITY final public string Error::getMessage Returns the error mes... 19 小时前
  128. 128 getprevious Error::getPrevious Returns previous Throwable ENTITY final public Throwable null Error::getPrevious Returns... 19 小时前
  129. 129 gettrace Error::getTrace Gets the stack trace ENTITY final public array Error::getTrace Returns the stack trace. ENT... 19 小时前
  130. 130 gettraceasstring Error::getTraceAsString Gets the stack trace as a string ENTITY final public string Error::getTraceAsString... 19 小时前
  131. 131 tostring Error::__toString String representation of the error ENTITY public string Error::__toString Returns the st... 19 小时前
  132. 132 errorexception ENTITY An Error Exception. ENTITY ErrorException extends Exception ENTITY protected int severity E_ERROR EN... 19 小时前
  133. 133 construct ErrorException::__construct Constructs the exception ENTITY public ErrorException::__construct string messa... 19 小时前
  134. 134 getseverity ErrorException::getSeverity Gets the exception severity ENTITY final public int ErrorException::getSeverity... 19 小时前
  135. 135 exception ENTITY Exception is the base class for exceptions that can be handled during normal operation. ENTITY Excep... 19 小时前
  136. 136 clone Exception::__clone Clone the exception ENTITY private void Exception::__clone Exceptions do not support clo... 19 小时前
  137. 137 construct Exception::__construct Construct the exception ENTITY public Exception::__construct string message "" int c... 19 小时前
  138. 138 getcode Exception::getCode Gets the Exception code ENTITY final public int Exception::getCode Returns the Exception... 19 小时前
  139. 139 getfile Exception::getFile Gets the file in which the exception was created ENTITY final public string Exception::g... 19 小时前
  140. 140 getline Exception::getLine Gets the line in which the exception was created ENTITY final public int Exception::getL... 19 小时前
  141. 141 getmessage Exception::getMessage Gets the Exception message ENTITY final public string Exception::getMessage Returns t... 19 小时前
  142. 142 getprevious Exception::getPrevious Returns previous Throwable ENTITY final public Throwable null Exception::getPrevious... 19 小时前
  143. 143 gettrace Exception::getTrace Gets the stack trace ENTITY final public array Exception::getTrace Returns the Exceptio... 19 小时前
  144. 144 gettraceasstring Exception::getTraceAsString Gets the stack trace as a string ENTITY final public string Exception::getTrace... 19 小时前
  145. 145 tostring Exception::__toString String representation of the exception ENTITY public string Exception::__toString Ret... 19 小时前
  146. 146 Predefined Exceptions See also the SPL Exceptions. ENTITY ENTITY ENTITY ENTITY ENTITY ENTITY ENTITY ENTITY ENTITY ENTITY ENTITY E... 19 小时前
  147. 147 fiber ENTITY Fibers represent full-stack, interruptible functions. Fibers may be suspended from anywhere in the c... 19 小时前
  148. 148 construct Fiber::__construct Creates a new Fiber instance ENTITY public Fiber::__construct callable callback ENTITY c... 19 小时前
  149. 149 getcurrent Fiber::getCurrent Gets the currently executing Fiber instance ENTITY public static Fiber null Fiber::getCur... 19 小时前
  150. 150 getreturn Fiber::getReturn Gets the value returned by the Fiber ENTITY public mixed Fiber::getReturn ENTITY ENTITY EN... 19 小时前
  151. 151 isrunning Fiber::isRunning Determines if the fiber is running ENTITY public bool Fiber::isRunning ENTITY ENTITY ENTIT... 19 小时前
  152. 152 isstarted Fiber::isStarted Determines if the fiber has started ENTITY public bool Fiber::isStarted ENTITY ENTITY ENTI... 19 小时前
  153. 153 issuspended Fiber::isSuspended Determines if the fiber is suspended ENTITY public bool Fiber::isSuspended ENTITY ENTITY... 19 小时前
  154. 154 isterminated Fiber::isTerminated Determines if the fiber has terminated ENTITY public bool Fiber::isTerminated ENTITY EN... 19 小时前
  155. 155 resume Fiber::resume Resumes execution of the fiber with a value ENTITY public mixed Fiber::resume mixed value ENT... 19 小时前
  156. 156 start Fiber::start Start execution of the fiber ENTITY public mixed Fiber::start mixed args A variadic list of ar... 19 小时前
  157. 157 suspend Fiber::suspend Suspends execution of the current fiber ENTITY public static mixed Fiber::suspend mixed valu... 19 小时前
  158. 158 throw Fiber::throw Resumes execution of the fiber with an exception ENTITY public mixed Fiber::throw Throwable ex... 19 小时前
  159. 159 fibererror ENTITY FiberError is thrown when an invalid operation is performed on a Fiber. ENTITY final FiberError ext... 19 小时前
  160. 160 construct FiberError::__construct Constructor to disallow direct instantiation ENTITY public FiberError::__construct ... 19 小时前
  161. 161 generator ENTITY Generator objects are returned from generators. [!CAUTION] Generator objects cannot be instantiated ... 19 小时前
  162. 162 current Generator::current Get the yielded value ENTITY public mixed Generator::current ENTITY ENTITY ENTITY Return... 19 小时前
  163. 163 getreturn Generator::getReturn Get the return value of a generator ENTITY public mixed Generator::getReturn ENTITY EN... 19 小时前
  164. 164 key Generator::key Get the yielded key ENTITY public mixed Generator::key Gets the key of the yielded value. EN... 19 小时前
  165. 165 next Generator::next Resume execution of the generator ENTITY public void Generator::next Calling Generator::nex... 19 小时前
  166. 166 rewind Generator::rewind Execute the generator up to and including the first yield ENTITY public void Generator::r... 19 小时前
  167. 167 send Generator::send Send a value to the generator ENTITY public mixed Generator::send mixed value Sends the giv... 19 小时前
  168. 168 throw Generator::throw Throw an exception into the generator ENTITY public mixed Generator::throw Throwable excep... 19 小时前
  169. 169 valid Generator::valid Check if the iterator has been closed ENTITY public bool Generator::valid ENTITY ENTITY EN... 19 小时前
  170. 170 wakeup Generator::__wakeup Serialize callback ENTITY public void Generator::__wakeup Throws an exception as genera... 19 小时前
  171. 171 Predefined Interfaces and Classes See also the SPL Interfaces and reserved classes. ENTITY ENTITY ENTITY ENTITY ENTITY ENTITY ENTITY ENTITY E... 19 小时前
  172. 172 internaliterator ENTITY Class to ease implementing IteratorAggregate for internal classes. ENTITY final InternalIterator imp... 19 小时前
  173. 173 construct InternalIterator::__construct Private constructor to disallow direct instantiation ENTITY private InternalI... 19 小时前
  174. 174 current InternalIterator::current Return the current element ENTITY public mixed InternalIterator::current Returns ... 19 小时前
  175. 175 key InternalIterator::key Return the key of the current element ENTITY public mixed InternalIterator::key Retur... 19 小时前
  176. 176 next InternalIterator::next Move forward to next element ENTITY public void InternalIterator::next Moves the cur... 19 小时前
  177. 177 rewind InternalIterator::rewind Rewind the Iterator to the first element ENTITY public void InternalIterator::rewi... 19 小时前
  178. 178 valid InternalIterator::valid Check if current position is valid ENTITY public bool InternalIterator::valid Check... 19 小时前
  179. 179 iterator ENTITY Interface for external iterators or objects that can be iterated themselves internally. ENTITY Itera... 19 小时前
  180. 180 current Iterator::current Return the current element ENTITY public mixed Iterator::current Returns the current elem... 19 小时前
  181. 181 key Iterator::key Return the key of the current element ENTITY public mixed Iterator::key Returns the key of th... 19 小时前
  182. 182 next Iterator::next Move forward to next element ENTITY public void Iterator::next Moves the current position to... 19 小时前
  183. 183 rewind Iterator::rewind Rewind the Iterator to the first element ENTITY public void Iterator::rewind Rewinds back ... 19 小时前
  184. 184 valid Iterator::valid Checks if current position is valid ENTITY public bool Iterator::valid This method is calle... 19 小时前
  185. 185 iteratoraggregate ENTITY Interface to create an external Iterator. ENTITY IteratorAggregate extends Traversable ENTITY ENTITY... 19 小时前
  186. 186 getiterator IteratorAggregate::getIterator Retrieve an external iterator or traversable ENTITY public Traversable Itera... 19 小时前
  187. 187 parseerror ENTITY ParseError is thrown when an error occurs while parsing PHP code, such as when eval is called. [!NO... 19 小时前
  188. 188 php-incomplete-class ENTITY Created by unserialize when trying to unserialize an undefined class or a class that is not listed ... 19 小时前
  189. 189 requestparsebodyexception ENTITY A RequestParseBodyException is thrown in request_parse_body when the request body is invalid, accor... 19 小时前
  190. 190 construct ReturnTypeWillChange::__construct Construct a new ReturnTypeWillChange attribute instance ENTITY public Ret... 19 小时前
  191. 191 construct SensitiveParameter::__construct Construct a new SensitiveParameter attribute instance ENTITY public Sensiti... 19 小时前
  192. 192 sensitiveparametervalue ENTITY The SensitiveParameterValue class allows wrapping sensitive values to protect them against accident... 19 小时前
  193. 193 construct SensitiveParameterValue::__construct Constructs a new SensitiveParameterValue object ENTITY public Sensitiv... 19 小时前
  194. 194 debuginfo SensitiveParameterValue::__debugInfo Protects the sensitive value against accidental exposure ENTITY public... 19 小时前
  195. 195 getvalue SensitiveParameterValue::getValue Returns the sensitive value ENTITY public mixed SensitiveParameterValue::... 19 小时前
  196. 196 serializable ENTITY Interface for customized serializing. Classes that implement this interface no longer support __slee... 19 小时前
  197. 197 serialize Serializable::serialize String representation of object ENTITY public string null Serializable::serialize S... 19 小时前
  198. 198 unserialize Serializable::unserialize Constructs the object ENTITY public void Serializable::unserialize string data Ca... 19 小时前
  199. 199 stdclass ENTITY A generic empty class with dynamic properties. Objects of this class can be instantiated with the ne... 19 小时前
  200. 200 stringable ENTITY The Stringable interface denotes a class as having a __toString() method. Unlike most interfaces, St... 19 小时前
  201. 201 tostring Stringable::__toString Gets a string representation of the object ENTITY public string Stringable::__toStri... 19 小时前
  202. 202 throwable ENTITY Throwable is the base interface for any object that can be thrown via a ENTITY statement, including ... 19 小时前
  203. 203 getcode Throwable::getCode Gets the exception code ENTITY public int Throwable::getCode Returns the error code asso... 19 小时前
  204. 204 getfile Throwable::getFile Gets the file in which the object was created ENTITY public string Throwable::getFile Ge... 19 小时前
  205. 205 getline Throwable::getLine Gets the line on which the object was instantiated ENTITY public int Throwable::getLine ... 19 小时前
  206. 206 getmessage Throwable::getMessage Gets the message ENTITY public string Throwable::getMessage Returns the message assoc... 19 小时前
  207. 207 getprevious Throwable::getPrevious Returns the previous Throwable ENTITY public Throwable null Throwable::getPrevious R... 19 小时前
  208. 208 gettrace Throwable::getTrace Gets the stack trace ENTITY public array Throwable::getTrace Returns the stack trace as... 19 小时前
  209. 209 gettraceasstring Throwable::getTraceAsString Gets the stack trace as a string ENTITY public string Throwable::getTraceAsStri... 19 小时前
  210. 210 tostring Throwable::__toString Gets a string representation of the thrown object ENTITY public string Throwable::__t... 19 小时前
  211. 211 traversable ENTITY Interface to detect if a class is traversable using ENTITY. Abstract base interface that cannot be i... 19 小时前
  212. 212 typeerror ENTITY A TypeError may be thrown when: The value being set for a class property does not match the property... 19 小时前
  213. 213 unhandledmatcherror ENTITY An UnhandledMatchError is thrown when the subject passed to a ENTITY expression is not handled by a... 19 小时前
  214. 214 unitenum ENTITY The UnitEnum interface is automatically applied to all enumerations by the engine. It may not be im... 19 小时前
  215. 215 cases UnitEnum::cases Generates a list of cases on an enum ENTITY public static array UnitEnum::cases This method... 19 小时前
  216. 216 valueerror ENTITY A ValueError is thrown when the type of an argument is correct but its value is incorrect. For exam... 19 小时前
  217. 217 variables PHP provides predefined variables that represent external variables, built-in environment variables, and ot... 19 小时前
  218. 218 argc $argc The number of arguments passed to script ENTITY Contains the number of arguments passed to the curren... 19 小时前
  219. 219 argv $argv Array of arguments passed to script ENTITY Contains an array of all the arguments passed to the scri... 19 小时前
  220. 220 cookie $_COOKIE HTTP Cookies ENTITY An associative array of variables passed to the current script via HTTP Cooki... 19 小时前
  221. 221 env $_ENV Environment variables ENTITY An associative array of variables passed to the current script via the ... 19 小时前
  222. 222 files $_FILES HTTP File Upload variables ENTITY An associative array of items uploaded to the current script via... 19 小时前
  223. 223 get $_GET Query string variables ENTITY An associative array of variables passed to the current script via the ... 19 小时前
  224. 224 globals $GLOBALS References all variables available in global scope ENTITY An associative array containing referen... 19 小时前
  225. 225 httpresponseheader $http_response_header HTTP response headers ENTITY Use http_get_last_response_headers instead. ENTITY The ... 19 小时前
  226. 226 phperrormsg $php_errormsg The previous error message ENTITY Use error_get_last instead. ENTITY $php_errormsg is a vari... 19 小时前
  227. 227 post $_POST Form data from HTTP POST requests ENTITY An associative array of variables passed to the current scr... 19 小时前
  228. 228 request $_REQUEST HTTP Request variables ENTITY An associative array that by default contains the contents of $_G... 19 小时前
  229. 229 server $_SERVER Server and execution environment information ENTITY $_SERVER is an ENTITY containing information s... 19 小时前
  230. 230 session $_SESSION Session variables ENTITY An associative array containing session variables available to the curre... 19 小时前
  231. 231 superglobals Superglobals Built-in variables that are always available in all scopes ENTITY Several predefined variables... 19 小时前
  232. 232 weakmap ENTITY A WeakMap is a map (or dictionary) that accepts objects as keys. However, unlike the otherwise simi... 19 小时前
  233. 233 count WeakMap::count Counts the number of live entries in the map ENTITY public int WeakMap::count Counts the num... 19 小时前
  234. 234 getiterator WeakMap::getIterator Retrieve an external iterator ENTITY public Iterator WeakMap::getIterator Returns an e... 19 小时前
  235. 235 offsetexists WeakMap::offsetExists Checks whether a certain object is in the map ENTITY public bool WeakMap::offsetExist... 19 小时前
  236. 236 offsetget WeakMap::offsetGet Returns the value pointed to by a certain object ENTITY public mixed WeakMap::offsetGet ... 19 小时前
  237. 237 offsetset WeakMap::offsetSet Updates the map with a new key-value pair ENTITY public void WeakMap::offsetSet object o... 19 小时前
  238. 238 offsetunset WeakMap::offsetUnset Removes an entry from the map ENTITY public void WeakMap::offsetUnset object object Re... 19 小时前
  239. 239 weakreference ENTITY Weak references allow the programmer to retain a reference to an object without preventing the objec... 19 小时前
  240. 240 construct WeakReference::__construct Constructor that disallows instantiation ENTITY public WeakReference::__construc... 19 小时前
  241. 241 create WeakReference::create Create a new weak reference ENTITY public static WeakReference WeakReference::create ... 19 小时前
  242. 242 get WeakReference::get Get a weakly referenced Object ENTITY public object null WeakReference::get Gets a weakl... 19 小时前
  243. 243 References Explained What References Are References in PHP are a means to access the same variable content by different names. T... 19 小时前
  244. 244 Types Introduction Every single expression in PHP has one of the following built-in types depending on its value:... 19 小时前
  245. 245 Arrays For a list of all array functions, see the array functions chapter in the documentation. An array in PHP i... 19 小时前
  246. 246 Booleans The bool type only has two values, and is used to express a truth value. It can be either ENTITY or ENTITY... 19 小时前
  247. 247 Callables A callable is a reference to a function or method that is passed to another function as an argument. They a... 19 小时前
  248. 248 Type declarations Type declarations can be added to function arguments, return values, as of PHP 7.4.0, class properties, and... 19 小时前
  249. 249 Enumerations Basic Enumerations Enumerations are a restricting layer on top of classes and class constants, intended to ... 19 小时前
  250. 250 Floating-point numbers Floating-point numbers (also known as "floats", "doubles", or "real numbers") can be specified using any of... 19 小时前
  251. 251 Integers An int is a number of the set ℤ = {..., -2, -1, 0, 1, 2, ...}. ENTITY Floating-point numbers, Arbitrary pr... 19 小时前
  252. 252 Iterables Iterable is a built-in compile-time type alias for array|Traversable. From its introduction in PHP 7.1.0 a... 19 小时前
  253. 253 Mixed The mixed type accepts every value. It is equivalent to the union type object|resource|array|string|float... 19 小时前
  254. 254 Never never is a return-only type indicating the function does not terminate. This means that it either calls ex... 19 小时前
  255. 255 NULL The null type is PHP's unit type, i.e. it has only one value: ENTITY. Undefined and unset variables resol... 19 小时前
  256. 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... 19 小时前
  257. 257 Objects Object Initialization To create a new object, use the new statement to instantiate a class: Object Constr... 19 小时前
  258. 258 Relative class types These type declarations can only be used within classes. self The value must be an ENTITY the same class as... 19 小时前
  259. 259 Resources A resource is a special variable, holding a reference to an external resource. Resources are created and u... 19 小时前
  260. 260 Singleton types Singleton types are those which allow only one value. PHP has support for two singleton types: false as of... 19 小时前
  261. 261 Strings A string is a series of characters, where a character is the same as a byte. This means that PHP only supp... 19 小时前
  262. 262 Type Juggling PHP does not require explicit type definition in variable declaration. In this case, the type of a variable... 19 小时前
  263. 263 Type System PHP uses a nominal type system with a strong behavioral subtyping relation. The subtyping relation is check... 19 小时前
  264. 264 Void void is a return-only type declaration indicating the function does not return a value, but the function ma... 19 小时前
  265. 265 Variables Basics Variables in PHP are represented by a dollar sign followed by the name of the variable. The variable... 19 小时前
  266. 266 wrappers PHP comes with many built-in wrappers for various URL-style protocols for use with the filesystem functions... 19 小时前
  267. 267 audio ogg:// Audio streams ENTITY Files opened for reading via the ogg:// wrapper are treated as compressed audi... 19 小时前
  268. 268 compression zlib:// bzip2:// zip:// Compression Streams ENTITY compress.zlib:// and compress.bzip2:// zlib: works like... 19 小时前
  269. 269 data data:// Data (RFC 2397) ENTITY The data: (RFC 2397) stream wrapper. ENTITY data://text/plain;base64, ENTIT... 19 小时前
  270. 270 expect expect:// Process Interaction Streams ENTITY Streams opened via the expect:// wrapper provide access to pr... 19 小时前
  271. 271 file file:// Accessing local filesystem ENTITY file:// is the default wrapper used with PHP and represents the l... 19 小时前
  272. 272 ftp ftp:// ftps:// Accessing FTP(s) URLs ENTITY Allows read access to existing files and creation of new files ... 19 小时前
  273. 273 glob glob:// Find pathnames matching pattern ENTITY The glob: stream wrapper. ENTITY glob:// ENTITY Attribute S... 19 小时前
  274. 274 http http:// https:// Accessing HTTP(s) URLs ENTITY Allows read-only access to files/resources via HTTP. By defa... 19 小时前
  275. 275 phar phar:// PHP Archive ENTITY The phar:// stream wrapper. See Phar stream wrapper for a detailed description.... 19 小时前
  276. 276 php php:// Accessing various I/O streams ENTITY PHP provides a number of miscellaneous I/O streams that allow a... 19 小时前
  277. 277 rar rar:// RAR ENTITY The wrapper takes the url encoded path to the RAR archive (relative or absolute), an opti... 19 小时前
  278. 278 ssh2 ssh2:// Secure Shell 2 ENTITY ssh2.shell:// ssh2.exec:// ssh2.tunnel:// ssh2.sftp:// ssh2.scp:// (PECL)... 19 小时前