| 1 |
<?php |
| 2 |
|
| 3 |
// Start of standard v.5.6.0 |
| 4 |
|
| 5 |
class __PHP_Incomplete_Class { |
| 6 |
} |
| 7 |
|
| 8 |
class php_user_filter { |
| 9 |
public $filtername; |
| 10 |
public $params; |
| 11 |
|
| 12 |
|
| 13 |
/** |
| 14 |
* Called when applying the filter |
| 15 |
* @link http://www.php.net/manual/en/php-user-filter.filter.php |
| 16 |
* @param in resource <p> |
| 17 |
* in is a resource pointing to a bucket brigade |
| 18 |
* which contains one or more bucket objects containing data to be filtered. |
| 19 |
* </p> |
| 20 |
* @param out resource <p> |
| 21 |
* out is a resource pointing to a second bucket brigade |
| 22 |
* into which your modified buckets should be placed. |
| 23 |
* </p> |
| 24 |
* @param consumed int <p> |
| 25 |
* consumed, which must always |
| 26 |
* be declared by reference, should be incremented by the length of the data |
| 27 |
* which your filter reads in and alters. In most cases this means you will |
| 28 |
* increment consumed by $bucket->datalen |
| 29 |
* for each $bucket. |
| 30 |
* </p> |
| 31 |
* @param closing bool <p> |
| 32 |
* If the stream is in the process of closing |
| 33 |
* (and therefore this is the last pass through the filterchain), |
| 34 |
* the closing parameter will be set to true. |
| 35 |
* </p> |
| 36 |
* @return int The filter method must return one of |
| 37 |
* three values upon completion. |
| 38 |
* |
| 39 |
* |
| 40 |
* |
| 41 |
* <tr valign="top"> |
| 42 |
* <td>Return Value</td> |
| 43 |
* <td>Meaning</td> |
| 44 |
* </tr> |
| 45 |
* |
| 46 |
* |
| 47 |
* <tr valign="top"> |
| 48 |
* <td>PSFS_PASS_ON</td> |
| 49 |
* <td> |
| 50 |
* Filter processed successfully with data available in the |
| 51 |
* out bucket brigade. |
| 52 |
* </td> |
| 53 |
* </tr> |
| 54 |
* <tr valign="top"> |
| 55 |
* <td>PSFS_FEED_ME</td> |
| 56 |
* <td> |
| 57 |
* Filter processed successfully, however no data was available to |
| 58 |
* return. More data is required from the stream or prior filter. |
| 59 |
* </td> |
| 60 |
* </tr> |
| 61 |
* <tr valign="top"> |
| 62 |
* <td>PSFS_ERR_FATAL (default)</td> |
| 63 |
* <td> |
| 64 |
* The filter experienced an unrecoverable error and cannot continue. |
| 65 |
* </td> |
| 66 |
* </tr> |
| 67 |
*/ |
| 68 |
public function filter ($in, $out, &$consumed, $closing) {} |
| 69 |
|
| 70 |
/** |
| 71 |
* Called when creating the filter |
| 72 |
* @link http://www.php.net/manual/en/php-user-filter.oncreate.php |
| 73 |
* @return bool Your implementation of |
| 74 |
* this method should return false on failure, or true on success. |
| 75 |
*/ |
| 76 |
public function onCreate () {} |
| 77 |
|
| 78 |
/** |
| 79 |
* Called when closing the filter |
| 80 |
* @link http://www.php.net/manual/en/php-user-filter.onclose.php |
| 81 |
* @return void Return value is ignored. |
| 82 |
*/ |
| 83 |
public function onClose () {} |
| 84 |
|
| 85 |
} |
| 86 |
|
| 87 |
class Directory { |
| 88 |
|
| 89 |
/** |
| 90 |
* Close directory handle |
| 91 |
* @link http://www.php.net/manual/en/directory.close.php |
| 92 |
* @param dir_handle resource[optional] |
| 93 |
* @return void |
| 94 |
*/ |
| 95 |
public function close ($dir_handle = null) {} |
| 96 |
|
| 97 |
/** |
| 98 |
* Rewind directory handle |
| 99 |
* @link http://www.php.net/manual/en/directory.rewind.php |
| 100 |
* @param dir_handle resource[optional] |
| 101 |
* @return void |
| 102 |
*/ |
| 103 |
public function rewind ($dir_handle = null) {} |
| 104 |
|
| 105 |
/** |
| 106 |
* Read entry from directory handle |
| 107 |
* @link http://www.php.net/manual/en/directory.read.php |
| 108 |
* @param dir_handle resource[optional] |
| 109 |
* @return string |
| 110 |
*/ |
| 111 |
public function read ($dir_handle = null) {} |
| 112 |
|
| 113 |
} |
| 114 |
|
| 115 |
/** |
| 116 |
* Returns the value of a constant |
| 117 |
* @link http://www.php.net/manual/en/function.constant.php |
| 118 |
* @param name string <p> |
| 119 |
* The constant name. |
| 120 |
* </p> |
| 121 |
* @return mixed the value of the constant, or &null; if the constant is not |
| 122 |
* defined. |
| 123 |
*/ |
| 124 |
function constant ($name) {} |
| 125 |
|
| 126 |
/** |
| 127 |
* Convert binary data into hexadecimal representation |
| 128 |
* @link http://www.php.net/manual/en/function.bin2hex.php |
| 129 |
* @param str string <p> |
| 130 |
* A string. |
| 131 |
* </p> |
| 132 |
* @return string the hexadecimal representation of the given string. |
| 133 |
*/ |
| 134 |
function bin2hex ($str) {} |
| 135 |
|
| 136 |
/** |
| 137 |
* Decodes a hexadecimally encoded binary string |
| 138 |
* @link http://www.php.net/manual/en/function.hex2bin.php |
| 139 |
* @param data string <p> |
| 140 |
* Hexadecimal representation of data. |
| 141 |
* </p> |
| 142 |
* @return string the binary representation of the given data &return.falseforfailure;. |
| 143 |
*/ |
| 144 |
function hex2bin ($data) {} |
| 145 |
|
| 146 |
/** |
| 147 |
* Delay execution |
| 148 |
* @link http://www.php.net/manual/en/function.sleep.php |
| 149 |
* @param seconds int <p> |
| 150 |
* Halt time in seconds. |
| 151 |
* </p> |
| 152 |
* @return int zero on success, or false on error. |
| 153 |
* </p> |
| 154 |
* <p> |
| 155 |
* If the call was interrupted by a signal, sleep returns |
| 156 |
* a non-zero value. On Windows, this value will always be |
| 157 |
* 192 (the value of the |
| 158 |
* WAIT_IO_COMPLETION constant within the Windows API). |
| 159 |
* On other platforms, the return value will be the number of seconds left to |
| 160 |
* sleep. |
| 161 |
*/ |
| 162 |
function sleep ($seconds) {} |
| 163 |
|
| 164 |
/** |
| 165 |
* Delay execution in microseconds |
| 166 |
* @link http://www.php.net/manual/en/function.usleep.php |
| 167 |
* @param micro_seconds int <p> |
| 168 |
* Halt time in micro seconds. A micro second is one millionth of a |
| 169 |
* second. |
| 170 |
* </p> |
| 171 |
* @return void |
| 172 |
*/ |
| 173 |
function usleep ($micro_seconds) {} |
| 174 |
|
| 175 |
/** |
| 176 |
* Delay for a number of seconds and nanoseconds |
| 177 |
* @link http://www.php.net/manual/en/function.time-nanosleep.php |
| 178 |
* @param seconds int <p> |
| 179 |
* Must be a non-negative integer. |
| 180 |
* </p> |
| 181 |
* @param nanoseconds int <p> |
| 182 |
* Must be a non-negative integer less than 1 billion. |
| 183 |
* </p> |
| 184 |
* @return mixed Returns true on success, false on failure. |
| 185 |
* </p> |
| 186 |
* <p> |
| 187 |
* If the delay was interrupted by a signal, an associative array will be |
| 188 |
* returned with the components: |
| 189 |
* |
| 190 |
* |
| 191 |
* |
| 192 |
* seconds - number of seconds remaining in |
| 193 |
* the delay |
| 194 |
* |
| 195 |
* |
| 196 |
* |
| 197 |
* |
| 198 |
* nanoseconds - number of nanoseconds |
| 199 |
* remaining in the delay |
| 200 |
*/ |
| 201 |
function time_nanosleep ($seconds, $nanoseconds) {} |
| 202 |
|
| 203 |
/** |
| 204 |
* Make the script sleep until the specified time |
| 205 |
* @link http://www.php.net/manual/en/function.time-sleep-until.php |
| 206 |
* @param timestamp float <p> |
| 207 |
* The timestamp when the script should wake. |
| 208 |
* </p> |
| 209 |
* @return bool Returns true on success, false on failure. |
| 210 |
*/ |
| 211 |
function time_sleep_until ($timestamp) {} |
| 212 |
|
| 213 |
/** |
| 214 |
* Parse a time/date generated with <function>strftime</function> |
| 215 |
* @link http://www.php.net/manual/en/function.strptime.php |
| 216 |
* @param date string <p> |
| 217 |
* The string to parse (e.g. returned from strftime). |
| 218 |
* </p> |
| 219 |
* @param format string <p> |
| 220 |
* The format used in date (e.g. the same as |
| 221 |
* used in strftime). Note that some of the format |
| 222 |
* options available to strftime may not have any |
| 223 |
* effect within strptime; the exact subset that are |
| 224 |
* supported will vary based on the operating system and C library in |
| 225 |
* use. |
| 226 |
* </p> |
| 227 |
* <p> |
| 228 |
* For more information about the format options, read the |
| 229 |
* strftime page. |
| 230 |
* </p> |
| 231 |
* @return array an array&return.falseforfailure;. |
| 232 |
* </p> |
| 233 |
* <p> |
| 234 |
* <table> |
| 235 |
* The following parameters are returned in the array |
| 236 |
* |
| 237 |
* |
| 238 |
* <tr valign="top"> |
| 239 |
* <td>parameters</td> |
| 240 |
* <td>Description</td> |
| 241 |
* </tr> |
| 242 |
* |
| 243 |
* |
| 244 |
* <tr valign="top"> |
| 245 |
* <td>"tm_sec"</td> |
| 246 |
* <td>Seconds after the minute (0-61)</td> |
| 247 |
* </tr> |
| 248 |
* <tr valign="top"> |
| 249 |
* <td>"tm_min"</td> |
| 250 |
* <td>Minutes after the hour (0-59)</td> |
| 251 |
* </tr> |
| 252 |
* <tr valign="top"> |
| 253 |
* <td>"tm_hour"</td> |
| 254 |
* <td>Hour since midnight (0-23)</td> |
| 255 |
* </tr> |
| 256 |
* <tr valign="top"> |
| 257 |
* <td>"tm_mday"</td> |
| 258 |
* <td>Day of the month (1-31)</td> |
| 259 |
* </tr> |
| 260 |
* <tr valign="top"> |
| 261 |
* <td>"tm_mon"</td> |
| 262 |
* <td>Months since January (0-11)</td> |
| 263 |
* </tr> |
| 264 |
* <tr valign="top"> |
| 265 |
* <td>"tm_year"</td> |
| 266 |
* <td>Years since 1900</td> |
| 267 |
* </tr> |
| 268 |
* <tr valign="top"> |
| 269 |
* <td>"tm_wday"</td> |
| 270 |
* <td>Days since Sunday (0-6)</td> |
| 271 |
* </tr> |
| 272 |
* <tr valign="top"> |
| 273 |
* <td>"tm_yday"</td> |
| 274 |
* <td>Days since January 1 (0-365)</td> |
| 275 |
* </tr> |
| 276 |
* <tr valign="top"> |
| 277 |
* <td>"unparsed"</td> |
| 278 |
* <td>the date part which was not |
| 279 |
* recognized using the specified format</td> |
| 280 |
* </tr> |
| 281 |
* |
| 282 |
* |
| 283 |
* </table> |
| 284 |
*/ |
| 285 |
function strptime ($date, $format) {} |
| 286 |
|
| 287 |
/** |
| 288 |
* Flush system output buffer |
| 289 |
* @link http://www.php.net/manual/en/function.flush.php |
| 290 |
* @return void |
| 291 |
*/ |
| 292 |
function flush () {} |
| 293 |
|
| 294 |
/** |
| 295 |
* Wraps a string to a given number of characters |
| 296 |
* @link http://www.php.net/manual/en/function.wordwrap.php |
| 297 |
* @param str string <p> |
| 298 |
* The input string. |
| 299 |
* </p> |
| 300 |
* @param width int[optional] <p> |
| 301 |
* The number of characters at which the string will be wrapped. |
| 302 |
* </p> |
| 303 |
* @param break string[optional] <p> |
| 304 |
* The line is broken using the optional |
| 305 |
* break parameter. |
| 306 |
* </p> |
| 307 |
* @param cut bool[optional] <p> |
| 308 |
* If the cut is set to true, the string is |
| 309 |
* always wrapped at or before the specified width. So if you have |
| 310 |
* a word that is larger than the given width, it is broken apart. |
| 311 |
* (See second example). |
| 312 |
* </p> |
| 313 |
* @return string the given string wrapped at the specified length. |
| 314 |
*/ |
| 315 |
function wordwrap ($str, $width = null, $break = null, $cut = null) {} |
| 316 |
|
| 317 |
/** |
| 318 |
* Convert special characters to HTML entities |
| 319 |
* @link http://www.php.net/manual/en/function.htmlspecialchars.php |
| 320 |
* @param string string <p> |
| 321 |
* The string being converted. |
| 322 |
* </p> |
| 323 |
* @param flags int[optional] <p> |
| 324 |
* A bitmask of one or more of the following flags, which specify how to handle quotes, |
| 325 |
* invalid code unit sequences and the used document type. The default is |
| 326 |
* ENT_COMPAT | ENT_HTML401. |
| 327 |
* <table> |
| 328 |
* Available flags constants |
| 329 |
* |
| 330 |
* |
| 331 |
* <tr valign="top"> |
| 332 |
* <td>Constant Name</td> |
| 333 |
* <td>Description</td> |
| 334 |
* </tr> |
| 335 |
* |
| 336 |
* |
| 337 |
* <tr valign="top"> |
| 338 |
* <td>ENT_COMPAT</td> |
| 339 |
* <td>Will convert double-quotes and leave single-quotes alone.</td> |
| 340 |
* </tr> |
| 341 |
* <tr valign="top"> |
| 342 |
* <td>ENT_QUOTES</td> |
| 343 |
* <td>Will convert both double and single quotes.</td> |
| 344 |
* </tr> |
| 345 |
* <tr valign="top"> |
| 346 |
* <td>ENT_NOQUOTES</td> |
| 347 |
* <td>Will leave both double and single quotes unconverted.</td> |
| 348 |
* </tr> |
| 349 |
* <tr valign="top"> |
| 350 |
* <td>ENT_IGNORE</td> |
| 351 |
* <td> |
| 352 |
* Silently discard invalid code unit sequences instead of returning |
| 353 |
* an empty string. Using this flag is discouraged as it |
| 354 |
* may have security implications. |
| 355 |
* </td> |
| 356 |
* </tr> |
| 357 |
* <tr valign="top"> |
| 358 |
* <td>ENT_SUBSTITUTE</td> |
| 359 |
* <td> |
| 360 |
* Replace invalid code unit sequences with a Unicode Replacement Character |
| 361 |
* U+FFFD (UTF-8) or &#FFFD; (otherwise) instead of returning an empty string. |
| 362 |
* </td> |
| 363 |
* </tr> |
| 364 |
* <tr valign="top"> |
| 365 |
* <td>ENT_DISALLOWED</td> |
| 366 |
* <td> |
| 367 |
* Replace invalid code points for the given document type with a |
| 368 |
* Unicode Replacement Character U+FFFD (UTF-8) or &#FFFD; |
| 369 |
* (otherwise) instead of leaving them as is. This may be useful, for |
| 370 |
* instance, to ensure the well-formedness of XML documents with |
| 371 |
* embedded external content. |
| 372 |
* </td> |
| 373 |
* </tr> |
| 374 |
* <tr valign="top"> |
| 375 |
* <td>ENT_HTML401</td> |
| 376 |
* <td> |
| 377 |
* Handle code as HTML 4.01. |
| 378 |
* </td> |
| 379 |
* </tr> |
| 380 |
* <tr valign="top"> |
| 381 |
* <td>ENT_XML1</td> |
| 382 |
* <td> |
| 383 |
* Handle code as XML 1. |
| 384 |
* </td> |
| 385 |
* </tr> |
| 386 |
* <tr valign="top"> |
| 387 |
* <td>ENT_XHTML</td> |
| 388 |
* <td> |
| 389 |
* Handle code as XHTML. |
| 390 |
* </td> |
| 391 |
* </tr> |
| 392 |
* <tr valign="top"> |
| 393 |
* <td>ENT_HTML5</td> |
| 394 |
* <td> |
| 395 |
* Handle code as HTML 5. |
| 396 |
* </td> |
| 397 |
* </tr> |
| 398 |
* |
| 399 |
* |
| 400 |
* </table> |
| 401 |
* </p> |
| 402 |
* @param encoding string[optional] &strings.parameter.encoding; |
| 403 |
* <p> |
| 404 |
* For the purposes of this function, the encodings |
| 405 |
* ISO-8859-1, ISO-8859-15, |
| 406 |
* UTF-8, cp866, |
| 407 |
* cp1251, cp1252, and |
| 408 |
* KOI8-R are effectively equivalent, provided the |
| 409 |
* string itself is valid for the encoding, as |
| 410 |
* the characters affected by htmlspecialchars occupy |
| 411 |
* the same positions in all of these encodings. |
| 412 |
* </p> |
| 413 |
* &reference.strings.charsets; |
| 414 |
* @param double_encode bool[optional] <p> |
| 415 |
* When double_encode is turned off PHP will not |
| 416 |
* encode existing html entities, the default is to convert everything. |
| 417 |
* </p> |
| 418 |
* @return string The converted string. |
| 419 |
* </p> |
| 420 |
* <p> |
| 421 |
* If the input string contains an invalid code unit |
| 422 |
* sequence within the given encoding an empty string |
| 423 |
* will be returned, unless either the ENT_IGNORE or |
| 424 |
* ENT_SUBSTITUTE flags are set. |
| 425 |
*/ |
| 426 |
function htmlspecialchars ($string, $flags = null, $encoding = null, $double_encode = null) {} |
| 427 |
|
| 428 |
/** |
| 429 |
* Convert all applicable characters to HTML entities |
| 430 |
* @link http://www.php.net/manual/en/function.htmlentities.php |
| 431 |
* @param string string <p> |
| 432 |
* The input string. |
| 433 |
* </p> |
| 434 |
* @param flags int[optional] <p> |
| 435 |
* A bitmask of one or more of the following flags, which specify how to handle quotes, |
| 436 |
* invalid code unit sequences and the used document type. The default is |
| 437 |
* ENT_COMPAT | ENT_HTML401. |
| 438 |
* <table> |
| 439 |
* Available flags constants |
| 440 |
* |
| 441 |
* |
| 442 |
* <tr valign="top"> |
| 443 |
* <td>Constant Name</td> |
| 444 |
* <td>Description</td> |
| 445 |
* </tr> |
| 446 |
* |
| 447 |
* |
| 448 |
* <tr valign="top"> |
| 449 |
* <td>ENT_COMPAT</td> |
| 450 |
* <td>Will convert double-quotes and leave single-quotes alone.</td> |
| 451 |
* </tr> |
| 452 |
* <tr valign="top"> |
| 453 |
* <td>ENT_QUOTES</td> |
| 454 |
* <td>Will convert both double and single quotes.</td> |
| 455 |
* </tr> |
| 456 |
* <tr valign="top"> |
| 457 |
* <td>ENT_NOQUOTES</td> |
| 458 |
* <td>Will leave both double and single quotes unconverted.</td> |
| 459 |
* </tr> |
| 460 |
* <tr valign="top"> |
| 461 |
* <td>ENT_IGNORE</td> |
| 462 |
* <td> |
| 463 |
* Silently discard invalid code unit sequences instead of returning |
| 464 |
* an empty string. Using this flag is discouraged as it |
| 465 |
* may have security implications. |
| 466 |
* </td> |
| 467 |
* </tr> |
| 468 |
* <tr valign="top"> |
| 469 |
* <td>ENT_SUBSTITUTE</td> |
| 470 |
* <td> |
| 471 |
* Replace invalid code unit sequences with a Unicode Replacement Character |
| 472 |
* U+FFFD (UTF-8) or &#FFFD; (otherwise) instead of returning an empty string. |
| 473 |
* </td> |
| 474 |
* </tr> |
| 475 |
* <tr valign="top"> |
| 476 |
* <td>ENT_DISALLOWED</td> |
| 477 |
* <td> |
| 478 |
* Replace invalid code points for the given document type with a |
| 479 |
* Unicode Replacement Character U+FFFD (UTF-8) or &#FFFD; |
| 480 |
* (otherwise) instead of leaving them as is. This may be useful, for |
| 481 |
* instance, to ensure the well-formedness of XML documents with |
| 482 |
* embedded external content. |
| 483 |
* </td> |
| 484 |
* </tr> |
| 485 |
* <tr valign="top"> |
| 486 |
* <td>ENT_HTML401</td> |
| 487 |
* <td> |
| 488 |
* Handle code as HTML 4.01. |
| 489 |
* </td> |
| 490 |
* </tr> |
| 491 |
* <tr valign="top"> |
| 492 |
* <td>ENT_XML1</td> |
| 493 |
* <td> |
| 494 |
* Handle code as XML 1. |
| 495 |
* </td> |
| 496 |
* </tr> |
| 497 |
* <tr valign="top"> |
| 498 |
* <td>ENT_XHTML</td> |
| 499 |
* <td> |
| 500 |
* Handle code as XHTML. |
| 501 |
* </td> |
| 502 |
* </tr> |
| 503 |
* <tr valign="top"> |
| 504 |
* <td>ENT_HTML5</td> |
| 505 |
* <td> |
| 506 |
* Handle code as HTML 5. |
| 507 |
* </td> |
| 508 |
* </tr> |
| 509 |
* |
| 510 |
* |
| 511 |
* </table> |
| 512 |
* </p> |
| 513 |
* @param encoding string[optional] &strings.parameter.encoding; |
| 514 |
* &reference.strings.charsets; |
| 515 |
* @param double_encode bool[optional] <p> |
| 516 |
* When double_encode is turned off PHP will not |
| 517 |
* encode existing html entities. The default is to convert everything. |
| 518 |
* </p> |
| 519 |
* @return string the encoded string. |
| 520 |
* </p> |
| 521 |
* <p> |
| 522 |
* If the input string contains an invalid code unit |
| 523 |
* sequence within the given encoding an empty string |
| 524 |
* will be returned, unless either the ENT_IGNORE or |
| 525 |
* ENT_SUBSTITUTE flags are set. |
| 526 |
*/ |
| 527 |
function htmlentities ($string, $flags = null, $encoding = null, $double_encode = null) {} |
| 528 |
|
| 529 |
/** |
| 530 |
* Convert all HTML entities to their applicable characters |
| 531 |
* @link http://www.php.net/manual/en/function.html-entity-decode.php |
| 532 |
* @param string string <p> |
| 533 |
* The input string. |
| 534 |
* </p> |
| 535 |
* @param flags int[optional] <p> |
| 536 |
* A bitmask of one or more of the following flags, which specify how to handle quotes and |
| 537 |
* which document type to use. The default is ENT_COMPAT | ENT_HTML401. |
| 538 |
* <table> |
| 539 |
* Available flags constants |
| 540 |
* |
| 541 |
* |
| 542 |
* <tr valign="top"> |
| 543 |
* <td>Constant Name</td> |
| 544 |
* <td>Description</td> |
| 545 |
* </tr> |
| 546 |
* |
| 547 |
* |
| 548 |
* <tr valign="top"> |
| 549 |
* <td>ENT_COMPAT</td> |
| 550 |
* <td>Will convert double-quotes and leave single-quotes alone.</td> |
| 551 |
* </tr> |
| 552 |
* <tr valign="top"> |
| 553 |
* <td>ENT_QUOTES</td> |
| 554 |
* <td>Will convert both double and single quotes.</td> |
| 555 |
* </tr> |
| 556 |
* <tr valign="top"> |
| 557 |
* <td>ENT_NOQUOTES</td> |
| 558 |
* <td>Will leave both double and single quotes unconverted.</td> |
| 559 |
* </tr> |
| 560 |
* <tr valign="top"> |
| 561 |
* <td>ENT_HTML401</td> |
| 562 |
* <td> |
| 563 |
* Handle code as HTML 4.01. |
| 564 |
* </td> |
| 565 |
* </tr> |
| 566 |
* <tr valign="top"> |
| 567 |
* <td>ENT_XML1</td> |
| 568 |
* <td> |
| 569 |
* Handle code as XML 1. |
| 570 |
* </td> |
| 571 |
* </tr> |
| 572 |
* <tr valign="top"> |
| 573 |
* <td>ENT_XHTML</td> |
| 574 |
* <td> |
| 575 |
* Handle code as XHTML. |
| 576 |
* </td> |
| 577 |
* </tr> |
| 578 |
* <tr valign="top"> |
| 579 |
* <td>ENT_HTML5</td> |
| 580 |
* <td> |
| 581 |
* Handle code as HTML 5. |
| 582 |
* </td> |
| 583 |
* </tr> |
| 584 |
* |
| 585 |
* |
| 586 |
* </table> |
| 587 |
* </p> |
| 588 |
* @param encoding string[optional] &strings.parameter.encoding; |
| 589 |
* &reference.strings.charsets; |
| 590 |
* @return string the decoded string. |
| 591 |
*/ |
| 592 |
function html_entity_decode ($string, $flags = null, $encoding = null) {} |
| 593 |
|
| 594 |
/** |
| 595 |
* Convert special HTML entities back to characters |
| 596 |
* @link http://www.php.net/manual/en/function.htmlspecialchars-decode.php |
| 597 |
* @param string string <p> |
| 598 |
* The string to decode. |
| 599 |
* </p> |
| 600 |
* @param flags int[optional] <p> |
| 601 |
* A bitmask of one or more of the following flags, which specify how to handle quotes and |
| 602 |
* which document type to use. The default is ENT_COMPAT | ENT_HTML401. |
| 603 |
* <table> |
| 604 |
* Available flags constants |
| 605 |
* |
| 606 |
* |
| 607 |
* <tr valign="top"> |
| 608 |
* <td>Constant Name</td> |
| 609 |
* <td>Description</td> |
| 610 |
* </tr> |
| 611 |
* |
| 612 |
* |
| 613 |
* <tr valign="top"> |
| 614 |
* <td>ENT_COMPAT</td> |
| 615 |
* <td>Will convert double-quotes and leave single-quotes alone.</td> |
| 616 |
* </tr> |
| 617 |
* <tr valign="top"> |
| 618 |
* <td>ENT_QUOTES</td> |
| 619 |
* <td>Will convert both double and single quotes.</td> |
| 620 |
* </tr> |
| 621 |
* <tr valign="top"> |
| 622 |
* <td>ENT_NOQUOTES</td> |
| 623 |
* <td>Will leave both double and single quotes unconverted.</td> |
| 624 |
* </tr> |
| 625 |
* <tr valign="top"> |
| 626 |
* <td>ENT_HTML401</td> |
| 627 |
* <td> |
| 628 |
* Handle code as HTML 4.01. |
| 629 |
* </td> |
| 630 |
* </tr> |
| 631 |
* <tr valign="top"> |
| 632 |
* <td>ENT_XML1</td> |
| 633 |
* <td> |
| 634 |
* Handle code as XML 1. |
| 635 |
* </td> |
| 636 |
* </tr> |
| 637 |
* <tr valign="top"> |
| 638 |
* <td>ENT_XHTML</td> |
| 639 |
* <td> |
| 640 |
* Handle code as XHTML. |
| 641 |
* </td> |
| 642 |
* </tr> |
| 643 |
* <tr valign="top"> |
| 644 |
* <td>ENT_HTML5</td> |
| 645 |
* <td> |
| 646 |
* Handle code as HTML 5. |
| 647 |
* </td> |
| 648 |
* </tr> |
| 649 |
* |
| 650 |
* |
| 651 |
* </table> |
| 652 |
* </p> |
| 653 |
* @return string the decoded string. |
| 654 |
*/ |
| 655 |
function htmlspecialchars_decode ($string, $flags = null) {} |
| 656 |
|
| 657 |
/** |
| 658 |
* Returns the translation table used by <function>htmlspecialchars</function> and <function>htmlentities</function> |
| 659 |
* @link http://www.php.net/manual/en/function.get-html-translation-table.php |
| 660 |
* @param table int[optional] <p> |
| 661 |
* Which table to return. Either HTML_ENTITIES or |
| 662 |
* HTML_SPECIALCHARS. |
| 663 |
* </p> |
| 664 |
* @param flags int[optional] <p> |
| 665 |
* A bitmask of one or more of the following flags, which specify which quotes the |
| 666 |
* table will contain as well as which document type the table is for. The default is |
| 667 |
* ENT_COMPAT | ENT_HTML401. |
| 668 |
* <table> |
| 669 |
* Available flags constants |
| 670 |
* |
| 671 |
* |
| 672 |
* <tr valign="top"> |
| 673 |
* <td>Constant Name</td> |
| 674 |
* <td>Description</td> |
| 675 |
* </tr> |
| 676 |
* |
| 677 |
* |
| 678 |
* <tr valign="top"> |
| 679 |
* <td>ENT_COMPAT</td> |
| 680 |
* <td>Table will contain entities for double-quotes, but not for single-quotes.</td> |
| 681 |
* </tr> |
| 682 |
* <tr valign="top"> |
| 683 |
* <td>ENT_QUOTES</td> |
| 684 |
* <td>Table will contain entities for both double and single quotes.</td> |
| 685 |
* </tr> |
| 686 |
* <tr valign="top"> |
| 687 |
* <td>ENT_NOQUOTES</td> |
| 688 |
* <td>Table will neither contain entities for single quotes nor for double quotes.</td> |
| 689 |
* </tr> |
| 690 |
* <tr valign="top"> |
| 691 |
* <td>ENT_HTML401</td> |
| 692 |
* <td>Table for HTML 4.01.</td> |
| 693 |
* </tr> |
| 694 |
* <tr valign="top"> |
| 695 |
* <td>ENT_XML1</td> |
| 696 |
* <td>Table for XML 1.</td> |
| 697 |
* </tr> |
| 698 |
* <tr valign="top"> |
| 699 |
* <td>ENT_XHTML</td> |
| 700 |
* <td>Table for XHTML.</td> |
| 701 |
* </tr> |
| 702 |
* <tr valign="top"> |
| 703 |
* <td>ENT_HTML5</td> |
| 704 |
* <td>Table for HTML 5.</td> |
| 705 |
* </tr> |
| 706 |
* |
| 707 |
* |
| 708 |
* </table> |
| 709 |
* </p> |
| 710 |
* @param encoding string[optional] <p> |
| 711 |
* Encoding to use. |
| 712 |
* If omitted, the default value for this argument is ISO-8859-1 in |
| 713 |
* versions of PHP prior to 5.4.0, and UTF-8 from PHP 5.4.0 onwards. |
| 714 |
* </p> |
| 715 |
* &reference.strings.charsets; |
| 716 |
* @return array the translation table as an array, with the original characters |
| 717 |
* as keys and entities as values. |
| 718 |
*/ |
| 719 |
function get_html_translation_table ($table = null, $flags = null, $encoding = null) {} |
| 720 |
|
| 721 |
/** |
| 722 |
* Calculate the sha1 hash of a string |
| 723 |
* @link http://www.php.net/manual/en/function.sha1.php |
| 724 |
* @param str string <p> |
| 725 |
* The input string. |
| 726 |
* </p> |
| 727 |
* @param raw_output bool[optional] <p> |
| 728 |
* If the optional raw_output is set to true, |
| 729 |
* then the sha1 digest is instead returned in raw binary format with a |
| 730 |
* length of 20, otherwise the returned value is a 40-character |
| 731 |
* hexadecimal number. |
| 732 |
* </p> |
| 733 |
* @return string the sha1 hash as a string. |
| 734 |
*/ |
| 735 |
function sha1 ($str, $raw_output = null) {} |
| 736 |
|
| 737 |
/** |
| 738 |
* Calculate the sha1 hash of a file |
| 739 |
* @link http://www.php.net/manual/en/function.sha1-file.php |
| 740 |
* @param filename string <p> |
| 741 |
* The filename of the file to hash. |
| 742 |
* </p> |
| 743 |
* @param raw_output bool[optional] <p> |
| 744 |
* When true, returns the digest in raw binary format with a length of |
| 745 |
* 20. |
| 746 |
* </p> |
| 747 |
* @return string a string on success, false otherwise. |
| 748 |
*/ |
| 749 |
function sha1_file ($filename, $raw_output = null) {} |
| 750 |
|
| 751 |
/** |
| 752 |
* Calculate the md5 hash of a string |
| 753 |
* @link http://www.php.net/manual/en/function.md5.php |
| 754 |
* @param str string <p> |
| 755 |
* The string. |
| 756 |
* </p> |
| 757 |
* @param raw_output bool[optional] <p> |
| 758 |
* If the optional raw_output is set to true, |
| 759 |
* then the md5 digest is instead returned in raw binary format with a |
| 760 |
* length of 16. |
| 761 |
* </p> |
| 762 |
* @return string the hash as a 32-character hexadecimal number. |
| 763 |
*/ |
| 764 |
function md5 ($str, $raw_output = null) {} |
| 765 |
|
| 766 |
/** |
| 767 |
* Calculates the md5 hash of a given file |
| 768 |
* @link http://www.php.net/manual/en/function.md5-file.php |
| 769 |
* @param filename string <p> |
| 770 |
* The filename |
| 771 |
* </p> |
| 772 |
* @param raw_output bool[optional] <p> |
| 773 |
* When true, returns the digest in raw binary format with a length of |
| 774 |
* 16. |
| 775 |
* </p> |
| 776 |
* @return string a string on success, false otherwise. |
| 777 |
*/ |
| 778 |
function md5_file ($filename, $raw_output = null) {} |
| 779 |
|
| 780 |
/** |
| 781 |
* Calculates the crc32 polynomial of a string |
| 782 |
* @link http://www.php.net/manual/en/function.crc32.php |
| 783 |
* @param str string <p> |
| 784 |
* The data. |
| 785 |
* </p> |
| 786 |
* @return int the crc32 checksum of str as an integer. |
| 787 |
*/ |
| 788 |
function crc32 ($str) {} |
| 789 |
|
| 790 |
/** |
| 791 |
* Parse a binary IPTC block into single tags. |
| 792 |
* @link http://www.php.net/manual/en/function.iptcparse.php |
| 793 |
* @param iptcblock string <p> |
| 794 |
* A binary IPTC block. |
| 795 |
* </p> |
| 796 |
* @return array an array using the tagmarker as an index and the value as the |
| 797 |
* value. It returns false on error or if no IPTC data was found. |
| 798 |
*/ |
| 799 |
function iptcparse ($iptcblock) {} |
| 800 |
|
| 801 |
/** |
| 802 |
* Embeds binary IPTC data into a JPEG image |
| 803 |
* @link http://www.php.net/manual/en/function.iptcembed.php |
| 804 |
* @param iptcdata string <p> |
| 805 |
* The data to be written. |
| 806 |
* </p> |
| 807 |
* @param jpeg_file_name string <p> |
| 808 |
* Path to the JPEG image. |
| 809 |
* </p> |
| 810 |
* @param spool int[optional] <p> |
| 811 |
* Spool flag. If the spool flag is over 2 then the JPEG will be |
| 812 |
* returned as a string. |
| 813 |
* </p> |
| 814 |
* @return mixed If success and spool flag is lower than 2 then the JPEG will not be |
| 815 |
* returned as a string, false on errors. |
| 816 |
*/ |
| 817 |
function iptcembed ($iptcdata, $jpeg_file_name, $spool = null) {} |
| 818 |
|
| 819 |
/** |
| 820 |
* Get the size of an image |
| 821 |
* @link http://www.php.net/manual/en/function.getimagesize.php |
| 822 |
* @param filename string <p> |
| 823 |
* This parameter specifies the file you wish to retrieve information |
| 824 |
* about. It can reference a local file or (configuration permitting) a |
| 825 |
* remote file using one of the supported streams. |
| 826 |
* </p> |
| 827 |
* @param imageinfo array[optional] <p> |
| 828 |
* This optional parameter allows you to extract some extended |
| 829 |
* information from the image file. Currently, this will return the |
| 830 |
* different JPG APP markers as an associative array. |
| 831 |
* Some programs use these APP markers to embed text information in |
| 832 |
* images. A very common one is to embed |
| 833 |
* IPTC information in the APP13 marker. |
| 834 |
* You can use the iptcparse function to parse the |
| 835 |
* binary APP13 marker into something readable. |
| 836 |
* </p> |
| 837 |
* @return array an array with up to 7 elements. Not all image types will include |
| 838 |
* the channels and bits elements. |
| 839 |
* </p> |
| 840 |
* <p> |
| 841 |
* Index 0 and 1 contains respectively the width and the height of the image. |
| 842 |
* </p> |
| 843 |
* |
| 844 |
* <p> |
| 845 |
* Some formats may contain no image or may contain multiple images. In these |
| 846 |
* cases, getimagesize might not be able to properly |
| 847 |
* determine the image size. getimagesize will return |
| 848 |
* zero for width and height in these cases. |
| 849 |
* </p> |
| 850 |
* |
| 851 |
* <p> |
| 852 |
* Index 2 is one of the IMAGETYPE_XXX constants indicating |
| 853 |
* the type of the image. |
| 854 |
* </p> |
| 855 |
* <p> |
| 856 |
* Index 3 is a text string with the correct |
| 857 |
* height="yyy" width="xxx" string that can be used |
| 858 |
* directly in an IMG tag. |
| 859 |
* </p> |
| 860 |
* <p> |
| 861 |
* mime is the correspondant MIME type of the image. |
| 862 |
* This information can be used to deliver images with the correct HTTP |
| 863 |
* Content-type header: |
| 864 |
* |
| 865 |
* getimagesize and MIME types |
| 866 |
* |
| 867 |
* ]]> |
| 868 |
* |
| 869 |
* |
| 870 |
* </p> |
| 871 |
* <p> |
| 872 |
* channels will be 3 for RGB pictures and 4 for CMYK |
| 873 |
* pictures. |
| 874 |
* </p> |
| 875 |
* <p> |
| 876 |
* bits is the number of bits for each color. |
| 877 |
* </p> |
| 878 |
* <p> |
| 879 |
* For some image types, the presence of channels and |
| 880 |
* bits values can be a bit |
| 881 |
* confusing. As an example, GIF always uses 3 channels |
| 882 |
* per pixel, but the number of bits per pixel cannot be calculated for an |
| 883 |
* animated GIF with a global color table. |
| 884 |
* </p> |
| 885 |
* <p> |
| 886 |
* On failure, false is returned. |
| 887 |
*/ |
| 888 |
function getimagesize ($filename, array &$imageinfo = null) {} |
| 889 |
|
| 890 |
/** |
| 891 |
* Get the size of an image from a string |
| 892 |
* @link http://www.php.net/manual/en/function.getimagesizefromstring.php |
| 893 |
* @param imagedata string <p> |
| 894 |
* The image data, as a string. |
| 895 |
* </p> |
| 896 |
* @param imageinfo array[optional] <p> |
| 897 |
* See getimagesize. |
| 898 |
* </p> |
| 899 |
* @return array See getimagesize. |
| 900 |
*/ |
| 901 |
function getimagesizefromstring ($imagedata, array &$imageinfo = null) {} |
| 902 |
|
| 903 |
/** |
| 904 |
* Get Mime-Type for image-type returned by getimagesize, |
| 905 |
exif_read_data, exif_thumbnail, exif_imagetype |
| 906 |
* @link http://www.php.net/manual/en/function.image-type-to-mime-type.php |
| 907 |
* @param imagetype int <p> |
| 908 |
* One of the IMAGETYPE_XXX constants. |
| 909 |
* </p> |
| 910 |
* @return string The returned values are as follows |
| 911 |
* <table> |
| 912 |
* Returned values Constants |
| 913 |
* |
| 914 |
* |
| 915 |
* <tr valign="top"> |
| 916 |
* <td>imagetype</td> |
| 917 |
* <td>Returned value</td> |
| 918 |
* </tr> |
| 919 |
* |
| 920 |
* |
| 921 |
* <tr valign="top"> |
| 922 |
* <td>IMAGETYPE_GIF</td> |
| 923 |
* <td>image/gif</td> |
| 924 |
* </tr> |
| 925 |
* <tr valign="top"> |
| 926 |
* <td>IMAGETYPE_JPEG</td> |
| 927 |
* <td>image/jpeg</td> |
| 928 |
* </tr> |
| 929 |
* <tr valign="top"> |
| 930 |
* <td>IMAGETYPE_PNG</td> |
| 931 |
* <td>image/png</td> |
| 932 |
* </tr> |
| 933 |
* <tr valign="top"> |
| 934 |
* <td>IMAGETYPE_SWF</td> |
| 935 |
* <td>application/x-shockwave-flash</td> |
| 936 |
* </tr> |
| 937 |
* <tr valign="top"> |
| 938 |
* <td>IMAGETYPE_PSD</td> |
| 939 |
* <td>image/psd</td> |
| 940 |
* </tr> |
| 941 |
* <tr valign="top"> |
| 942 |
* <td>IMAGETYPE_BMP</td> |
| 943 |
* <td>image/bmp</td> |
| 944 |
* </tr> |
| 945 |
* <tr valign="top"> |
| 946 |
* <td>IMAGETYPE_TIFF_II (intel byte order)</td> |
| 947 |
* <td>image/tiff</td> |
| 948 |
* </tr> |
| 949 |
* <tr valign="top"> |
| 950 |
* <td> |
| 951 |
* IMAGETYPE_TIFF_MM (motorola byte order) |
| 952 |
* </td> |
| 953 |
* <td>image/tiff</td> |
| 954 |
* </tr> |
| 955 |
* <tr valign="top"> |
| 956 |
* <td>IMAGETYPE_JPC</td> |
| 957 |
* <td>application/octet-stream</td> |
| 958 |
* </tr> |
| 959 |
* <tr valign="top"> |
| 960 |
* <td>IMAGETYPE_JP2</td> |
| 961 |
* <td>image/jp2</td> |
| 962 |
* </tr> |
| 963 |
* <tr valign="top"> |
| 964 |
* <td>IMAGETYPE_JPX</td> |
| 965 |
* <td>application/octet-stream</td> |
| 966 |
* </tr> |
| 967 |
* <tr valign="top"> |
| 968 |
* <td>IMAGETYPE_JB2</td> |
| 969 |
* <td>application/octet-stream</td> |
| 970 |
* </tr> |
| 971 |
* <tr valign="top"> |
| 972 |
* <td>IMAGETYPE_SWC</td> |
| 973 |
* <td>application/x-shockwave-flash</td> |
| 974 |
* </tr> |
| 975 |
* <tr valign="top"> |
| 976 |
* <td>IMAGETYPE_IFF</td> |
| 977 |
* <td>image/iff</td> |
| 978 |
* </tr> |
| 979 |
* <tr valign="top"> |
| 980 |
* <td>IMAGETYPE_WBMP</td> |
| 981 |
* <td>image/vnd.wap.wbmp</td> |
| 982 |
* </tr> |
| 983 |
* <tr valign="top"> |
| 984 |
* <td>IMAGETYPE_XBM</td> |
| 985 |
* <td>image/xbm</td> |
| 986 |
* </tr> |
| 987 |
* <tr valign="top"> |
| 988 |
* <td>IMAGETYPE_ICO</td> |
| 989 |
* <td>image/vnd.microsoft.icon</td> |
| 990 |
* </tr> |
| 991 |
* |
| 992 |
* |
| 993 |
* </table> |
| 994 |
*/ |
| 995 |
function image_type_to_mime_type ($imagetype) {} |
| 996 |
|
| 997 |
/** |
| 998 |
* Get file extension for image type |
| 999 |
* @link http://www.php.net/manual/en/function.image-type-to-extension.php |
| 1000 |
* @param imagetype int <p> |
| 1001 |
* One of the IMAGETYPE_XXX constant. |
| 1002 |
* </p> |
| 1003 |
* @param include_dot bool[optional] <p> |
| 1004 |
* Whether to prepend a dot to the extension or not. Default to true. |
| 1005 |
* </p> |
| 1006 |
* @return string A string with the extension corresponding to the given image type. |
| 1007 |
*/ |
| 1008 |
function image_type_to_extension ($imagetype, $include_dot = null) {} |
| 1009 |
|
| 1010 |
/** |
| 1011 |
* Outputs information about PHP's configuration |
| 1012 |
* @link http://www.php.net/manual/en/function.phpinfo.php |
| 1013 |
* @param what int[optional] <p> |
| 1014 |
* The output may be customized by passing one or more of the |
| 1015 |
* following constants bitwise values summed |
| 1016 |
* together in the optional what parameter. |
| 1017 |
* One can also combine the respective constants or bitwise values |
| 1018 |
* together with the or operator. |
| 1019 |
* </p> |
| 1020 |
* <p> |
| 1021 |
* <table> |
| 1022 |
* phpinfo options |
| 1023 |
* |
| 1024 |
* |
| 1025 |
* <tr valign="top"> |
| 1026 |
* <td>Name (constant)</td> |
| 1027 |
* <td>Value</td> |
| 1028 |
* <td>Description</td> |
| 1029 |
* </tr> |
| 1030 |
* |
| 1031 |
* |
| 1032 |
* <tr valign="top"> |
| 1033 |
* <td>INFO_GENERAL</td> |
| 1034 |
* <td>1</td> |
| 1035 |
* <td> |
| 1036 |
* The configuration line, &php.ini; location, build date, Web |
| 1037 |
* Server, System and more. |
| 1038 |
* </td> |
| 1039 |
* </tr> |
| 1040 |
* <tr valign="top"> |
| 1041 |
* <td>INFO_CREDITS</td> |
| 1042 |
* <td>2</td> |
| 1043 |
* <td> |
| 1044 |
* PHP Credits. See also phpcredits. |
| 1045 |
* </td> |
| 1046 |
* </tr> |
| 1047 |
* <tr valign="top"> |
| 1048 |
* <td>INFO_CONFIGURATION</td> |
| 1049 |
* <td>4</td> |
| 1050 |
* <td> |
| 1051 |
* Current Local and Master values for PHP directives. See |
| 1052 |
* also ini_get. |
| 1053 |
* </td> |
| 1054 |
* </tr> |
| 1055 |
* <tr valign="top"> |
| 1056 |
* <td>INFO_MODULES</td> |
| 1057 |
* <td>8</td> |
| 1058 |
* <td> |
| 1059 |
* Loaded modules and their respective settings. See also |
| 1060 |
* get_loaded_extensions. |
| 1061 |
* </td> |
| 1062 |
* </tr> |
| 1063 |
* <tr valign="top"> |
| 1064 |
* <td>INFO_ENVIRONMENT</td> |
| 1065 |
* <td>16</td> |
| 1066 |
* <td> |
| 1067 |
* Environment Variable information that's also available in |
| 1068 |
* $_ENV. |
| 1069 |
* </td> |
| 1070 |
* </tr> |
| 1071 |
* <tr valign="top"> |
| 1072 |
* <td>INFO_VARIABLES</td> |
| 1073 |
* <td>32</td> |
| 1074 |
* <td> |
| 1075 |
* Shows all |
| 1076 |
* predefined variables from EGPCS (Environment, GET, |
| 1077 |
* POST, Cookie, Server). |
| 1078 |
* </td> |
| 1079 |
* </tr> |
| 1080 |
* <tr valign="top"> |
| 1081 |
* <td>INFO_LICENSE</td> |
| 1082 |
* <td>64</td> |
| 1083 |
* <td> |
| 1084 |
* PHP License information. See also the license FAQ. |
| 1085 |
* </td> |
| 1086 |
* </tr> |
| 1087 |
* <tr valign="top"> |
| 1088 |
* <td>INFO_ALL</td> |
| 1089 |
* <td>-1</td> |
| 1090 |
* <td> |
| 1091 |
* Shows all of the above. |
| 1092 |
* </td> |
| 1093 |
* </tr> |
| 1094 |
* |
| 1095 |
* |
| 1096 |
* </table> |
| 1097 |
* </p> |
| 1098 |
* @return bool Returns true on success, false on failure. |
| 1099 |
*/ |
| 1100 |
function phpinfo ($what = null) {} |
| 1101 |
|
| 1102 |
/** |
| 1103 |
* Gets the current PHP version |
| 1104 |
* @link http://www.php.net/manual/en/function.phpversion.php |
| 1105 |
* @param extension string[optional] <p> |
| 1106 |
* An optional extension name. |
| 1107 |
* </p> |
| 1108 |
* @return string If the optional extension parameter is |
| 1109 |
* specified, phpversion returns the version of that |
| 1110 |
* extension, or false if there is no version information associated or |
| 1111 |
* the extension isn't enabled. |
| 1112 |
*/ |
| 1113 |
function phpversion ($extension = null) {} |
| 1114 |
|
| 1115 |
/** |
| 1116 |
* Prints out the credits for PHP |
| 1117 |
* @link http://www.php.net/manual/en/function.phpcredits.php |
| 1118 |
* @param flag int[optional] <p> |
| 1119 |
* To generate a custom credits page, you may want to use the |
| 1120 |
* flag parameter. |
| 1121 |
* </p> |
| 1122 |
* <p> |
| 1123 |
* <table> |
| 1124 |
* Pre-defined phpcredits flags |
| 1125 |
* |
| 1126 |
* |
| 1127 |
* <tr valign="top"> |
| 1128 |
* <td>name</td> |
| 1129 |
* <td>description</td> |
| 1130 |
* </tr> |
| 1131 |
* |
| 1132 |
* |
| 1133 |
* <tr valign="top"> |
| 1134 |
* <td>CREDITS_ALL</td> |
| 1135 |
* <td> |
| 1136 |
* All the credits, equivalent to using: CREDITS_DOCS + |
| 1137 |
* CREDITS_GENERAL + CREDITS_GROUP + |
| 1138 |
* CREDITS_MODULES + CREDITS_FULLPAGE. |
| 1139 |
* It generates a complete stand-alone HTML page with the appropriate tags. |
| 1140 |
* </td> |
| 1141 |
* </tr> |
| 1142 |
* <tr valign="top"> |
| 1143 |
* <td>CREDITS_DOCS</td> |
| 1144 |
* <td>The credits for the documentation team</td> |
| 1145 |
* </tr> |
| 1146 |
* <tr valign="top"> |
| 1147 |
* <td>CREDITS_FULLPAGE</td> |
| 1148 |
* <td> |
| 1149 |
* Usually used in combination with the other flags. Indicates |
| 1150 |
* that a complete stand-alone HTML page needs to be |
| 1151 |
* printed including the information indicated by the other |
| 1152 |
* flags. |
| 1153 |
* </td> |
| 1154 |
* </tr> |
| 1155 |
* <tr valign="top"> |
| 1156 |
* <td>CREDITS_GENERAL</td> |
| 1157 |
* <td> |
| 1158 |
* General credits: Language design and concept, PHP authors |
| 1159 |
* and SAPI module. |
| 1160 |
* </td> |
| 1161 |
* </tr> |
| 1162 |
* <tr valign="top"> |
| 1163 |
* <td>CREDITS_GROUP</td> |
| 1164 |
* <td>A list of the core developers</td> |
| 1165 |
* </tr> |
| 1166 |
* <tr valign="top"> |
| 1167 |
* <td>CREDITS_MODULES</td> |
| 1168 |
* <td> |
| 1169 |
* A list of the extension modules for PHP, and their authors |
| 1170 |
* </td> |
| 1171 |
* </tr> |
| 1172 |
* <tr valign="top"> |
| 1173 |
* <td>CREDITS_SAPI</td> |
| 1174 |
* <td> |
| 1175 |
* A list of the server API modules for PHP, and their authors |
| 1176 |
* </td> |
| 1177 |
* </tr> |
| 1178 |
* |
| 1179 |
* |
| 1180 |
* </table> |
| 1181 |
* </p> |
| 1182 |
* @return bool Returns true on success, false on failure. |
| 1183 |
*/ |
| 1184 |
function phpcredits ($flag = null) {} |
| 1185 |
|
| 1186 |
/** |
| 1187 |
* Returns the type of interface between web server and PHP |
| 1188 |
* @link http://www.php.net/manual/en/function.php-sapi-name.php |
| 1189 |
* @return string the interface type, as a lowercase string. |
| 1190 |
* </p> |
| 1191 |
* <p> |
| 1192 |
* Although not exhaustive, the possible return values include |
| 1193 |
* aolserver, apache, |
| 1194 |
* apache2filter, apache2handler, |
| 1195 |
* caudium, cgi (until PHP 5.3), |
| 1196 |
* cgi-fcgi, cli, cli-server, |
| 1197 |
* continuity, embed, |
| 1198 |
* isapi, litespeed, |
| 1199 |
* milter, nsapi, |
| 1200 |
* phttpd, pi3web, roxen, |
| 1201 |
* thttpd, tux, and webjames. |
| 1202 |
*/ |
| 1203 |
function php_sapi_name () {} |
| 1204 |
|
| 1205 |
/** |
| 1206 |
* Returns information about the operating system PHP is running on |
| 1207 |
* @link http://www.php.net/manual/en/function.php-uname.php |
| 1208 |
* @param mode string[optional] <p> |
| 1209 |
* mode is a single character that defines what |
| 1210 |
* information is returned: |
| 1211 |
* |
| 1212 |
* |
| 1213 |
* |
| 1214 |
* 'a': This is the default. Contains all modes in |
| 1215 |
* the sequence "s n r v m". |
| 1216 |
* @return string the description, as a string. |
| 1217 |
*/ |
| 1218 |
function php_uname ($mode = null) {} |
| 1219 |
|
| 1220 |
/** |
| 1221 |
* Return a list of .ini files parsed from the additional ini dir |
| 1222 |
* @link http://www.php.net/manual/en/function.php-ini-scanned-files.php |
| 1223 |
* @return string a comma-separated string of .ini files on success. Each comma is |
| 1224 |
* followed by a newline. If the directive --with-config-file-scan-dir wasn't set, |
| 1225 |
* false is returned. If it was set and the directory was empty, an |
| 1226 |
* empty string is returned. If a file is unrecognizable, the file will |
| 1227 |
* still make it into the returned string but a PHP error will also result. |
| 1228 |
* This PHP error will be seen both at compile time and while using |
| 1229 |
* php_ini_scanned_files. |
| 1230 |
*/ |
| 1231 |
function php_ini_scanned_files () {} |
| 1232 |
|
| 1233 |
/** |
| 1234 |
* Retrieve a path to the loaded php.ini file |
| 1235 |
* @link http://www.php.net/manual/en/function.php-ini-loaded-file.php |
| 1236 |
* @return string The loaded &php.ini; path, or false if one is not loaded. |
| 1237 |
*/ |
| 1238 |
function php_ini_loaded_file () {} |
| 1239 |
|
| 1240 |
/** |
| 1241 |
* String comparisons using a "natural order" algorithm |
| 1242 |
* @link http://www.php.net/manual/en/function.strnatcmp.php |
| 1243 |
* @param str1 string <p> |
| 1244 |
* The first string. |
| 1245 |
* </p> |
| 1246 |
* @param str2 string <p> |
| 1247 |
* The second string. |
| 1248 |
* </p> |
| 1249 |
* @return int Similar to other string comparison functions, this one returns < 0 if |
| 1250 |
* str1 is less than str2; > |
| 1251 |
* 0 if str1 is greater than |
| 1252 |
* str2, and 0 if they are equal. |
| 1253 |
*/ |
| 1254 |
function strnatcmp ($str1, $str2) {} |
| 1255 |
|
| 1256 |
/** |
| 1257 |
* Case insensitive string comparisons using a "natural order" algorithm |
| 1258 |
* @link http://www.php.net/manual/en/function.strnatcasecmp.php |
| 1259 |
* @param str1 string <p> |
| 1260 |
* The first string. |
| 1261 |
* </p> |
| 1262 |
* @param str2 string <p> |
| 1263 |
* The second string. |
| 1264 |
* </p> |
| 1265 |
* @return int Similar to other string comparison functions, this one returns < 0 if |
| 1266 |
* str1 is less than str2 > |
| 1267 |
* 0 if str1 is greater than |
| 1268 |
* str2, and 0 if they are equal. |
| 1269 |
*/ |
| 1270 |
function strnatcasecmp ($str1, $str2) {} |
| 1271 |
|
| 1272 |
/** |
| 1273 |
* Count the number of substring occurrences |
| 1274 |
* @link http://www.php.net/manual/en/function.substr-count.php |
| 1275 |
* @param haystack string <p> |
| 1276 |
* The string to search in |
| 1277 |
* </p> |
| 1278 |
* @param needle string <p> |
| 1279 |
* The substring to search for |
| 1280 |
* </p> |
| 1281 |
* @param offset int[optional] <p> |
| 1282 |
* The offset where to start counting |
| 1283 |
* </p> |
| 1284 |
* @param length int[optional] <p> |
| 1285 |
* The maximum length after the specified offset to search for the |
| 1286 |
* substring. It outputs a warning if the offset plus the length is |
| 1287 |
* greater than the haystack length. |
| 1288 |
* </p> |
| 1289 |
* @return int This function returns an integer. |
| 1290 |
*/ |
| 1291 |
function substr_count ($haystack, $needle, $offset = null, $length = null) {} |
| 1292 |
|
| 1293 |
/** |
| 1294 |
* Finds the length of the initial segment of a string consisting |
| 1295 |
entirely of characters contained within a given mask. |
| 1296 |
* @link http://www.php.net/manual/en/function.strspn.php |
| 1297 |
* @param subject string <p> |
| 1298 |
* The string to examine. |
| 1299 |
* </p> |
| 1300 |
* @param mask string <p> |
| 1301 |
* The list of allowable characters. |
| 1302 |
* </p> |
| 1303 |
* @param start int[optional] <p> |
| 1304 |
* The position in subject to |
| 1305 |
* start searching. |
| 1306 |
* </p> |
| 1307 |
* <p> |
| 1308 |
* If start is given and is non-negative, |
| 1309 |
* then strspn will begin |
| 1310 |
* examining subject at |
| 1311 |
* the start'th position. For instance, in |
| 1312 |
* the string 'abcdef', the character at |
| 1313 |
* position 0 is 'a', the |
| 1314 |
* character at position 2 is |
| 1315 |
* 'c', and so forth. |
| 1316 |
* </p> |
| 1317 |
* <p> |
| 1318 |
* If start is given and is negative, |
| 1319 |
* then strspn will begin |
| 1320 |
* examining subject at |
| 1321 |
* the start'th position from the end |
| 1322 |
* of subject. |
| 1323 |
* </p> |
| 1324 |
* @param length int[optional] <p> |
| 1325 |
* The length of the segment from subject |
| 1326 |
* to examine. |
| 1327 |
* </p> |
| 1328 |
* <p> |
| 1329 |
* If length is given and is non-negative, |
| 1330 |
* then subject will be examined |
| 1331 |
* for length characters after the starting |
| 1332 |
* position. |
| 1333 |
* </p> |
| 1334 |
* <p> |
| 1335 |
* If lengthis given and is negative, |
| 1336 |
* then subject will be examined from the |
| 1337 |
* starting position up to length |
| 1338 |
* characters from the end of subject. |
| 1339 |
* </p> |
| 1340 |
* @return int the length of the initial segment of subject |
| 1341 |
* which consists entirely of characters in mask. |
| 1342 |
*/ |
| 1343 |
function strspn ($subject, $mask, $start = null, $length = null) {} |
| 1344 |
|
| 1345 |
/** |
| 1346 |
* Find length of initial segment not matching mask |
| 1347 |
* @link http://www.php.net/manual/en/function.strcspn.php |
| 1348 |
* @param str1 string <p> |
| 1349 |
* The first string. |
| 1350 |
* </p> |
| 1351 |
* @param str2 string <p> |
| 1352 |
* The second string. |
| 1353 |
* </p> |
| 1354 |
* @param start int[optional] <p> |
| 1355 |
* The start position of the string to examine. |
| 1356 |
* </p> |
| 1357 |
* @param length int[optional] <p> |
| 1358 |
* The length of the string to examine. |
| 1359 |
* </p> |
| 1360 |
* @return int the length of the segment as an integer. |
| 1361 |
*/ |
| 1362 |
function strcspn ($str1, $str2, $start = null, $length = null) {} |
| 1363 |
|
| 1364 |
/** |
| 1365 |
* Tokenize string |
| 1366 |
* @link http://www.php.net/manual/en/function.strtok.php |
| 1367 |
* @param str string <p> |
| 1368 |
* The string being split up into smaller strings (tokens). |
| 1369 |
* </p> |
| 1370 |
* @param token string <p> |
| 1371 |
* The delimiter used when splitting up str. |
| 1372 |
* </p> |
| 1373 |
* @return string A string token. |
| 1374 |
*/ |
| 1375 |
function strtok ($str, $token) {} |
| 1376 |
|
| 1377 |
/** |
| 1378 |
* Make a string uppercase |
| 1379 |
* @link http://www.php.net/manual/en/function.strtoupper.php |
| 1380 |
* @param string string <p> |
| 1381 |
* The input string. |
| 1382 |
* </p> |
| 1383 |
* @return string the uppercased string. |
| 1384 |
*/ |
| 1385 |
function strtoupper ($string) {} |
| 1386 |
|
| 1387 |
/** |
| 1388 |
* Make a string lowercase |
| 1389 |
* @link http://www.php.net/manual/en/function.strtolower.php |
| 1390 |
* @param string string <p> |
| 1391 |
* The input string. |
| 1392 |
* </p> |
| 1393 |
* @return string the lowercased string. |
| 1394 |
*/ |
| 1395 |
function strtolower ($string) {} |
| 1396 |
|
| 1397 |
/** |
| 1398 |
* Find the position of the first occurrence of a substring in a string |
| 1399 |
* @link http://www.php.net/manual/en/function.strpos.php |
| 1400 |
* @param haystack string <p> |
| 1401 |
* The string to search in. |
| 1402 |
* </p> |
| 1403 |
* @param needle mixed <p> |
| 1404 |
* If needle is not a string, it is converted |
| 1405 |
* to an integer and applied as the ordinal value of a character. |
| 1406 |
* </p> |
| 1407 |
* @param offset int[optional] <p> |
| 1408 |
* If specified, search will start this number of characters counted from |
| 1409 |
* the beginning of the string. Unlike strrpos and |
| 1410 |
* strripos, the offset cannot be negative. |
| 1411 |
* </p> |
| 1412 |
* @return mixed the position of where the needle exists relative to the beginning of |
| 1413 |
* the haystack string (independent of offset). |
| 1414 |
* Also note that string positions start at 0, and not 1. |
| 1415 |
* </p> |
| 1416 |
* <p> |
| 1417 |
* Returns false if the needle was not found. |
| 1418 |
*/ |
| 1419 |
function strpos ($haystack, $needle, $offset = null) {} |
| 1420 |
|
| 1421 |
/** |
| 1422 |
* Find the position of the first occurrence of a case-insensitive substring in a string |
| 1423 |
* @link http://www.php.net/manual/en/function.stripos.php |
| 1424 |
* @param haystack string <p> |
| 1425 |
* The string to search in. |
| 1426 |
* </p> |
| 1427 |
* @param needle string <p> |
| 1428 |
* Note that the needle may be a string of one or |
| 1429 |
* more characters. |
| 1430 |
* </p> |
| 1431 |
* <p> |
| 1432 |
* If needle is not a string, it is converted to |
| 1433 |
* an integer and applied as the ordinal value of a character. |
| 1434 |
* </p> |
| 1435 |
* @param offset int[optional] <p> |
| 1436 |
* If specified, search will start this number of characters counted from |
| 1437 |
* the beginning of the string. Unlike strrpos and |
| 1438 |
* strripos, the offset cannot be negative. |
| 1439 |
* </p> |
| 1440 |
* @return int the position of where the needle exists relative to the beginnning of |
| 1441 |
* the haystack string (independent of offset). |
| 1442 |
* Also note that string positions start at 0, and not 1. |
| 1443 |
* </p> |
| 1444 |
* <p> |
| 1445 |
* Returns false if the needle was not found. |
| 1446 |
*/ |
| 1447 |
function stripos ($haystack, $needle, $offset = null) {} |
| 1448 |
|
| 1449 |
/** |
| 1450 |
* Find the position of the last occurrence of a substring in a string |
| 1451 |
* @link http://www.php.net/manual/en/function.strrpos.php |
| 1452 |
* @param haystack string <p> |
| 1453 |
* The string to search in. |
| 1454 |
* </p> |
| 1455 |
* @param needle string <p> |
| 1456 |
* If needle is not a string, it is converted |
| 1457 |
* to an integer and applied as the ordinal value of a character. |
| 1458 |
* </p> |
| 1459 |
* @param offset int[optional] <p> |
| 1460 |
* If specified, search will start this number of characters counted from the |
| 1461 |
* beginning of the string. If the value is negative, search will instead start |
| 1462 |
* from that many characters from the end of the string, searching backwards. |
| 1463 |
* </p> |
| 1464 |
* @return int the position where the needle exists relative to the beginnning of |
| 1465 |
* the haystack string (independent of search direction |
| 1466 |
* or offset). |
| 1467 |
* Also note that string positions start at 0, and not 1. |
| 1468 |
* </p> |
| 1469 |
* <p> |
| 1470 |
* Returns false if the needle was not found. |
| 1471 |
*/ |
| 1472 |
function strrpos ($haystack, $needle, $offset = null) {} |
| 1473 |
|
| 1474 |
/** |
| 1475 |
* Find the position of the last occurrence of a case-insensitive substring in a string |
| 1476 |
* @link http://www.php.net/manual/en/function.strripos.php |
| 1477 |
* @param haystack string <p> |
| 1478 |
* The string to search in. |
| 1479 |
* </p> |
| 1480 |
* @param needle string <p> |
| 1481 |
* If needle is not a string, it is converted |
| 1482 |
* to an integer and applied as the ordinal value of a character. |
| 1483 |
* </p> |
| 1484 |
* @param offset int[optional] <p> |
| 1485 |
* If specified, search will start this number of characters counted from the |
| 1486 |
* beginning of the string. If the value is negative, search will instead start |
| 1487 |
* from that many characters from the end of the string, searching backwards. |
| 1488 |
* </p> |
| 1489 |
* @return int the position where the needle exists relative to the beginnning of |
| 1490 |
* the haystack string (independent of search direction |
| 1491 |
* or offset). |
| 1492 |
* Also note that string positions start at 0, and not 1. |
| 1493 |
* </p> |
| 1494 |
* <p> |
| 1495 |
* Returns false if the needle was not found. |
| 1496 |
*/ |
| 1497 |
function strripos ($haystack, $needle, $offset = null) {} |
| 1498 |
|
| 1499 |
/** |
| 1500 |
* Reverse a string |
| 1501 |
* @link http://www.php.net/manual/en/function.strrev.php |
| 1502 |
* @param string string <p> |
| 1503 |
* The string to be reversed. |
| 1504 |
* </p> |
| 1505 |
* @return string the reversed string. |
| 1506 |
*/ |
| 1507 |
function strrev ($string) {} |
| 1508 |
|
| 1509 |
/** |
| 1510 |
* Convert logical Hebrew text to visual text |
| 1511 |
* @link http://www.php.net/manual/en/function.hebrev.php |
| 1512 |
* @param hebrew_text string <p> |
| 1513 |
* A Hebrew input string. |
| 1514 |
* </p> |
| 1515 |
* @param max_chars_per_line int[optional] <p> |
| 1516 |
* This optional parameter indicates maximum number of characters per |
| 1517 |
* line that will be returned. |
| 1518 |
* </p> |
| 1519 |
* @return string the visual string. |
| 1520 |
*/ |
| 1521 |
function hebrev ($hebrew_text, $max_chars_per_line = null) {} |
| 1522 |
|
| 1523 |
/** |
| 1524 |
* Convert logical Hebrew text to visual text with newline conversion |
| 1525 |
* @link http://www.php.net/manual/en/function.hebrevc.php |
| 1526 |
* @param hebrew_text string <p> |
| 1527 |
* A Hebrew input string. |
| 1528 |
* </p> |
| 1529 |
* @param max_chars_per_line int[optional] <p> |
| 1530 |
* This optional parameter indicates maximum number of characters per |
| 1531 |
* line that will be returned. |
| 1532 |
* </p> |
| 1533 |
* @return string the visual string. |
| 1534 |
*/ |
| 1535 |
function hebrevc ($hebrew_text, $max_chars_per_line = null) {} |
| 1536 |
|
| 1537 |
/** |
| 1538 |
* Inserts HTML line breaks before all newlines in a string |
| 1539 |
* @link http://www.php.net/manual/en/function.nl2br.php |
| 1540 |
* @param string string <p> |
| 1541 |
* The input string. |
| 1542 |
* </p> |
| 1543 |
* @param is_xhtml bool[optional] <p> |
| 1544 |
* Whether to use XHTML compatible line breaks or not. |
| 1545 |
* </p> |
| 1546 |
* @return string the altered string. |
| 1547 |
*/ |
| 1548 |
function nl2br ($string, $is_xhtml = null) {} |
| 1549 |
|
| 1550 |
/** |
| 1551 |
* Returns trailing name component of path |
| 1552 |
* @link http://www.php.net/manual/en/function.basename.php |
| 1553 |
* @param path string <p> |
| 1554 |
* A path. |
| 1555 |
* </p> |
| 1556 |
* <p> |
| 1557 |
* On Windows, both slash (/) and backslash |
| 1558 |
* (\) are used as directory separator character. In |
| 1559 |
* other environments, it is the forward slash (/). |
| 1560 |
* </p> |
| 1561 |
* @param suffix string[optional] <p> |
| 1562 |
* If the name component ends in suffix this will also |
| 1563 |
* be cut off. |
| 1564 |
* </p> |
| 1565 |
* @return string the base name of the given path. |
| 1566 |
*/ |
| 1567 |
function basename ($path, $suffix = null) {} |
| 1568 |
|
| 1569 |
/** |
| 1570 |
* Returns parent directory's path |
| 1571 |
* @link http://www.php.net/manual/en/function.dirname.php |
| 1572 |
* @param path string <p> |
| 1573 |
* A path. |
| 1574 |
* </p> |
| 1575 |
* <p> |
| 1576 |
* On Windows, both slash (/) and backslash |
| 1577 |
* (\) are used as directory separator character. In |
| 1578 |
* other environments, it is the forward slash (/). |
| 1579 |
* </p> |
| 1580 |
* @return string the path of the parent directory. If there are no slashes in |
| 1581 |
* path, a dot ('.') is returned, |
| 1582 |
* indicating the current directory. Otherwise, the returned string is |
| 1583 |
* path with any trailing |
| 1584 |
* /component removed. |
| 1585 |
*/ |
| 1586 |
function dirname ($path) {} |
| 1587 |
|
| 1588 |
/** |
| 1589 |
* Returns information about a file path |
| 1590 |
* @link http://www.php.net/manual/en/function.pathinfo.php |
| 1591 |
* @param path string <p> |
| 1592 |
* The path to be parsed. |
| 1593 |
* </p> |
| 1594 |
* @param options int[optional] <p> |
| 1595 |
* If present, specifies a specific element to be returned; one of |
| 1596 |
* PATHINFO_DIRNAME, |
| 1597 |
* PATHINFO_BASENAME, |
| 1598 |
* PATHINFO_EXTENSION or |
| 1599 |
* PATHINFO_FILENAME. |
| 1600 |
* </p> |
| 1601 |
* <p>If options is not specified, returns all |
| 1602 |
* available elements. |
| 1603 |
* </p> |
| 1604 |
* @return mixed If the options parameter is not passed, an |
| 1605 |
* associative array containing the following elements is |
| 1606 |
* returned: |
| 1607 |
* dirname, basename, |
| 1608 |
* extension (if any), and filename. |
| 1609 |
* </p> |
| 1610 |
* |
| 1611 |
* <p> |
| 1612 |
* If the path has more than one extension, |
| 1613 |
* PATHINFO_EXTENSION returns only the last one and |
| 1614 |
* PATHINFO_FILENAME only strips the last one. |
| 1615 |
* (see first example below). |
| 1616 |
* </p> |
| 1617 |
* |
| 1618 |
* |
| 1619 |
* <p> |
| 1620 |
* If the path does not have an extension, no |
| 1621 |
* extension element will be returned |
| 1622 |
* (see second example below). |
| 1623 |
* </p> |
| 1624 |
* |
| 1625 |
* <p> |
| 1626 |
* If options is present, returns a |
| 1627 |
* string containing the requested element. |
| 1628 |
*/ |
| 1629 |
function pathinfo ($path, $options = null) {} |
| 1630 |
|
| 1631 |
/** |
| 1632 |
* Un-quotes a quoted string |
| 1633 |
* @link http://www.php.net/manual/en/function.stripslashes.php |
| 1634 |
* @param str string <p> |
| 1635 |
* The input string. |
| 1636 |
* </p> |
| 1637 |
* @return string a string with backslashes stripped off. |
| 1638 |
* (\' becomes ' and so on.) |
| 1639 |
* Double backslashes (\\) are made into a single |
| 1640 |
* backslash (\). |
| 1641 |
*/ |
| 1642 |
function stripslashes ($str) {} |
| 1643 |
|
| 1644 |
/** |
| 1645 |
* Un-quote string quoted with <function>addcslashes</function> |
| 1646 |
* @link http://www.php.net/manual/en/function.stripcslashes.php |
| 1647 |
* @param str string <p> |
| 1648 |
* The string to be unescaped. |
| 1649 |
* </p> |
| 1650 |
* @return string the unescaped string. |
| 1651 |
*/ |
| 1652 |
function stripcslashes ($str) {} |
| 1653 |
|
| 1654 |
/** |
| 1655 |
* Find the first occurrence of a string |
| 1656 |
* @link http://www.php.net/manual/en/function.strstr.php |
| 1657 |
* @param haystack string <p> |
| 1658 |
* The input string. |
| 1659 |
* </p> |
| 1660 |
* @param needle mixed <p> |
| 1661 |
* If needle is not a string, it is converted to |
| 1662 |
* an integer and applied as the ordinal value of a character. |
| 1663 |
* </p> |
| 1664 |
* @param before_needle bool[optional] <p> |
| 1665 |
* If true, strstr returns |
| 1666 |
* the part of the haystack before the first |
| 1667 |
* occurrence of the needle (excluding the needle). |
| 1668 |
* </p> |
| 1669 |
* @return string the portion of string, or false if needle |
| 1670 |
* is not found. |
| 1671 |
*/ |
| 1672 |
function strstr ($haystack, $needle, $before_needle = null) {} |
| 1673 |
|
| 1674 |
/** |
| 1675 |
* Case-insensitive <function>strstr</function> |
| 1676 |
* @link http://www.php.net/manual/en/function.stristr.php |
| 1677 |
* @param haystack string <p> |
| 1678 |
* The string to search in |
| 1679 |
* </p> |
| 1680 |
* @param needle mixed <p> |
| 1681 |
* If needle is not a string, it is converted to |
| 1682 |
* an integer and applied as the ordinal value of a character. |
| 1683 |
* </p> |
| 1684 |
* @param before_needle bool[optional] <p> |
| 1685 |
* If true, stristr |
| 1686 |
* returns the part of the haystack before the |
| 1687 |
* first occurrence of the needle (excluding needle). |
| 1688 |
* </p> |
| 1689 |
* @return string the matched substring. If needle is not |
| 1690 |
* found, returns false. |
| 1691 |
*/ |
| 1692 |
function stristr ($haystack, $needle, $before_needle = null) {} |
| 1693 |
|
| 1694 |
/** |
| 1695 |
* Find the last occurrence of a character in a string |
| 1696 |
* @link http://www.php.net/manual/en/function.strrchr.php |
| 1697 |
* @param haystack string <p> |
| 1698 |
* The string to search in |
| 1699 |
* </p> |
| 1700 |
* @param needle mixed <p> |
| 1701 |
* If needle contains more than one character, |
| 1702 |
* only the first is used. This behavior is different from that of |
| 1703 |
* strstr. |
| 1704 |
* </p> |
| 1705 |
* <p> |
| 1706 |
* If needle is not a string, it is converted to |
| 1707 |
* an integer and applied as the ordinal value of a character. |
| 1708 |
* </p> |
| 1709 |
* @return string This function returns the portion of string, or false if |
| 1710 |
* needle is not found. |
| 1711 |
*/ |
| 1712 |
function strrchr ($haystack, $needle) {} |
| 1713 |
|
| 1714 |
/** |
| 1715 |
* Randomly shuffles a string |
| 1716 |
* @link http://www.php.net/manual/en/function.str-shuffle.php |
| 1717 |
* @param str string <p> |
| 1718 |
* The input string. |
| 1719 |
* </p> |
| 1720 |
* @return string the shuffled string. |
| 1721 |
*/ |
| 1722 |
function str_shuffle ($str) {} |
| 1723 |
|
| 1724 |
/** |
| 1725 |
* Return information about words used in a string |
| 1726 |
* @link http://www.php.net/manual/en/function.str-word-count.php |
| 1727 |
* @param string string <p> |
| 1728 |
* The string |
| 1729 |
* </p> |
| 1730 |
* @param format int[optional] <p> |
| 1731 |
* Specify the return value of this function. The current supported values |
| 1732 |
* are: |
| 1733 |
* |
| 1734 |
* |
| 1735 |
* |
| 1736 |
* 0 - returns the number of words found |
| 1737 |
* @param charlist string[optional] <p> |
| 1738 |
* A list of additional characters which will be considered as 'word' |
| 1739 |
* </p> |
| 1740 |
* @return mixed an array or an integer, depending on the |
| 1741 |
* format chosen. |
| 1742 |
*/ |
| 1743 |
function str_word_count ($string, $format = null, $charlist = null) {} |
| 1744 |
|
| 1745 |
/** |
| 1746 |
* Convert a string to an array |
| 1747 |
* @link http://www.php.net/manual/en/function.str-split.php |
| 1748 |
* @param string string <p> |
| 1749 |
* The input string. |
| 1750 |
* </p> |
| 1751 |
* @param split_length int[optional] <p> |
| 1752 |
* Maximum length of the chunk. |
| 1753 |
* </p> |
| 1754 |
* @return array If the optional split_length parameter is |
| 1755 |
* specified, the returned array will be broken down into chunks with each |
| 1756 |
* being split_length in length, otherwise each chunk |
| 1757 |
* will be one character in length. |
| 1758 |
* </p> |
| 1759 |
* <p> |
| 1760 |
* false is returned if split_length is less than 1. |
| 1761 |
* If the split_length length exceeds the length of |
| 1762 |
* string, the entire string is returned as the first |
| 1763 |
* (and only) array element. |
| 1764 |
*/ |
| 1765 |
function str_split ($string, $split_length = null) {} |
| 1766 |
|
| 1767 |
/** |
| 1768 |
* Search a string for any of a set of characters |
| 1769 |
* @link http://www.php.net/manual/en/function.strpbrk.php |
| 1770 |
* @param haystack string <p> |
| 1771 |
* The string where char_list is looked for. |
| 1772 |
* </p> |
| 1773 |
* @param char_list string <p> |
| 1774 |
* This parameter is case sensitive. |
| 1775 |
* </p> |
| 1776 |
* @return string a string starting from the character found, or false if it is |
| 1777 |
* not found. |
| 1778 |
*/ |
| 1779 |
function strpbrk ($haystack, $char_list) {} |
| 1780 |
|
| 1781 |
/** |
| 1782 |
* Binary safe comparison of two strings from an offset, up to length characters |
| 1783 |
* @link http://www.php.net/manual/en/function.substr-compare.php |
| 1784 |
* @param main_str string <p> |
| 1785 |
* The main string being compared. |
| 1786 |
* </p> |
| 1787 |
* @param str string <p> |
| 1788 |
* The secondary string being compared. |
| 1789 |
* </p> |
| 1790 |
* @param offset int <p> |
| 1791 |
* The start position for the comparison. If negative, it starts counting |
| 1792 |
* from the end of the string. |
| 1793 |
* </p> |
| 1794 |
* @param length int[optional] <p> |
| 1795 |
* The length of the comparison. The default value is the largest of the |
| 1796 |
* length of the str compared to the length of |
| 1797 |
* main_str less the |
| 1798 |
* offset. |
| 1799 |
* </p> |
| 1800 |
* @param case_insensitivity bool[optional] <p> |
| 1801 |
* If case_insensitivity is true, comparison is |
| 1802 |
* case insensitive. |
| 1803 |
* </p> |
| 1804 |
* @return int < 0 if main_str from position |
| 1805 |
* offset is less than str, > |
| 1806 |
* 0 if it is greater than str, and 0 if they are equal. |
| 1807 |
* If offset is equal to or greater than the length of |
| 1808 |
* main_str, or the length is |
| 1809 |
* set and is less than 1 (prior to PHP 5.6), |
| 1810 |
* substr_compare prints a warning and returns |
| 1811 |
* false. |
| 1812 |
*/ |
| 1813 |
function substr_compare ($main_str, $str, $offset, $length = null, $case_insensitivity = null) {} |
| 1814 |
|
| 1815 |
/** |
| 1816 |
* Locale based string comparison |
| 1817 |
* @link http://www.php.net/manual/en/function.strcoll.php |
| 1818 |
* @param str1 string <p> |
| 1819 |
* The first string. |
| 1820 |
* </p> |
| 1821 |
* @param str2 string <p> |
| 1822 |
* The second string. |
| 1823 |
* </p> |
| 1824 |
* @return int < 0 if str1 is less than |
| 1825 |
* str2; > 0 if |
| 1826 |
* str1 is greater than |
| 1827 |
* str2, and 0 if they are equal. |
| 1828 |
*/ |
| 1829 |
function strcoll ($str1, $str2) {} |
| 1830 |
|
| 1831 |
/** |
| 1832 |
* Formats a number as a currency string |
| 1833 |
* @link http://www.php.net/manual/en/function.money-format.php |
| 1834 |
* @param format string <p> |
| 1835 |
* The format specification consists of the following sequence: |
| 1836 |
* |
| 1837 |
* <p>a % character</p> |
| 1838 |
* @param number float <p> |
| 1839 |
* The number to be formatted. |
| 1840 |
* </p> |
| 1841 |
* @return string the formatted string. Characters before and after the formatting |
| 1842 |
* string will be returned unchanged. |
| 1843 |
* Non-numeric number causes returning &null; and |
| 1844 |
* emitting E_WARNING. |
| 1845 |
*/ |
| 1846 |
function money_format ($format, $number) {} |
| 1847 |
|
| 1848 |
/** |
| 1849 |
* Return part of a string |
| 1850 |
* @link http://www.php.net/manual/en/function.substr.php |
| 1851 |
* @param string string <p> |
| 1852 |
* The input string. Must be one character or longer. |
| 1853 |
* </p> |
| 1854 |
* @param start int <p> |
| 1855 |
* If start is non-negative, the returned string |
| 1856 |
* will start at the start'th position in |
| 1857 |
* string, counting from zero. For instance, |
| 1858 |
* in the string 'abcdef', the character at |
| 1859 |
* position 0 is 'a', the |
| 1860 |
* character at position 2 is |
| 1861 |
* 'c', and so forth. |
| 1862 |
* </p> |
| 1863 |
* <p> |
| 1864 |
* If start is negative, the returned string |
| 1865 |
* will start at the start'th character |
| 1866 |
* from the end of string. |
| 1867 |
* </p> |
| 1868 |
* <p> |
| 1869 |
* If string is less than or equal to |
| 1870 |
* start characters long, false will be returned. |
| 1871 |
* </p> |
| 1872 |
* <p> |
| 1873 |
* |
| 1874 |
* Using a negative start |
| 1875 |
* |
| 1876 |
* ]]> |
| 1877 |
* |
| 1878 |
* |
| 1879 |
* </p> |
| 1880 |
* @param length int[optional] <p> |
| 1881 |
* If length is given and is positive, the string |
| 1882 |
* returned will contain at most length characters |
| 1883 |
* beginning from start (depending on the length of |
| 1884 |
* string). |
| 1885 |
* </p> |
| 1886 |
* <p> |
| 1887 |
* If length is given and is negative, then that many |
| 1888 |
* characters will be omitted from the end of string |
| 1889 |
* (after the start position has been calculated when a |
| 1890 |
* start is negative). If |
| 1891 |
* start denotes the position of this truncation or |
| 1892 |
* beyond, false will be returned. |
| 1893 |
* </p> |
| 1894 |
* <p> |
| 1895 |
* If length is given and is 0, |
| 1896 |
* false or &null; an empty string will be returned. |
| 1897 |
* </p> |
| 1898 |
* <p> |
| 1899 |
* If length is omitted, the substring starting from |
| 1900 |
* start until the end of the string will be |
| 1901 |
* returned. |
| 1902 |
* </p> |
| 1903 |
* |
| 1904 |
* Using a negative length |
| 1905 |
* |
| 1906 |
* ]]> |
| 1907 |
* @return string the extracted part of string; &return.falseforfailure;, or |
| 1908 |
* an empty string. |
| 1909 |
*/ |
| 1910 |
function substr ($string, $start, $length = null) {} |
| 1911 |
|
| 1912 |
/** |
| 1913 |
* Replace text within a portion of a string |
| 1914 |
* @link http://www.php.net/manual/en/function.substr-replace.php |
| 1915 |
* @param string mixed <p> |
| 1916 |
* The input string. |
| 1917 |
* </p> |
| 1918 |
* <p> |
| 1919 |
* An array of strings can be provided, in which |
| 1920 |
* case the replacements will occur on each string in turn. In this case, |
| 1921 |
* the replacement, start |
| 1922 |
* and length parameters may be provided either as |
| 1923 |
* scalar values to be applied to each input string in turn, or as |
| 1924 |
* arrays, in which case the corresponding array element will |
| 1925 |
* be used for each input string. |
| 1926 |
* </p> |
| 1927 |
* @param replacement mixed <p> |
| 1928 |
* The replacement string. |
| 1929 |
* </p> |
| 1930 |
* @param start mixed <p> |
| 1931 |
* If start is positive, the replacing will |
| 1932 |
* begin at the start'th offset into |
| 1933 |
* string. |
| 1934 |
* </p> |
| 1935 |
* <p> |
| 1936 |
* If start is negative, the replacing will |
| 1937 |
* begin at the start'th character from the |
| 1938 |
* end of string. |
| 1939 |
* </p> |
| 1940 |
* @param length mixed[optional] <p> |
| 1941 |
* If given and is positive, it represents the length of the portion of |
| 1942 |
* string which is to be replaced. If it is |
| 1943 |
* negative, it represents the number of characters from the end of |
| 1944 |
* string at which to stop replacing. If it |
| 1945 |
* is not given, then it will default to strlen( |
| 1946 |
* string ); i.e. end the replacing at the |
| 1947 |
* end of string. Of course, if |
| 1948 |
* length is zero then this function will have the |
| 1949 |
* effect of inserting replacement into |
| 1950 |
* string at the given |
| 1951 |
* start offset. |
| 1952 |
* </p> |
| 1953 |
* @return mixed The result string is returned. If string is an |
| 1954 |
* array then array is returned. |
| 1955 |
*/ |
| 1956 |
function substr_replace ($string, $replacement, $start, $length = null) {} |
| 1957 |
|
| 1958 |
/** |
| 1959 |
* Quote meta characters |
| 1960 |
* @link http://www.php.net/manual/en/function.quotemeta.php |
| 1961 |
* @param str string <p> |
| 1962 |
* The input string. |
| 1963 |
* </p> |
| 1964 |
* @return string the string with meta characters quoted, or false if an empty |
| 1965 |
* string is given as str. |
| 1966 |
*/ |
| 1967 |
function quotemeta ($str) {} |
| 1968 |
|
| 1969 |
/** |
| 1970 |
* Make a string's first character uppercase |
| 1971 |
* @link http://www.php.net/manual/en/function.ucfirst.php |
| 1972 |
* @param str string <p> |
| 1973 |
* The input string. |
| 1974 |
* </p> |
| 1975 |
* @return string the resulting string. |
| 1976 |
*/ |
| 1977 |
function ucfirst ($str) {} |
| 1978 |
|
| 1979 |
/** |
| 1980 |
* Make a string's first character lowercase |
| 1981 |
* @link http://www.php.net/manual/en/function.lcfirst.php |
| 1982 |
* @param str string <p> |
| 1983 |
* The input string. |
| 1984 |
* </p> |
| 1985 |
* @return string the resulting string. |
| 1986 |
*/ |
| 1987 |
function lcfirst ($str) {} |
| 1988 |
|
| 1989 |
/** |
| 1990 |
* Uppercase the first character of each word in a string |
| 1991 |
* @link http://www.php.net/manual/en/function.ucwords.php |
| 1992 |
* @param str string <p> |
| 1993 |
* The input string. |
| 1994 |
* </p> |
| 1995 |
* @return string the modified string. |
| 1996 |
*/ |
| 1997 |
function ucwords ($str) {} |
| 1998 |
|
| 1999 |
/** |
| 2000 |
* Translate characters or replace substrings |
| 2001 |
* @link http://www.php.net/manual/en/function.strtr.php |
| 2002 |
* @param str string <p> |
| 2003 |
* The string being translated. |
| 2004 |
* </p> |
| 2005 |
* @param from string <p> |
| 2006 |
* The string being translated to to. |
| 2007 |
* </p> |
| 2008 |
* @param to string <p> |
| 2009 |
* The string replacing from. |
| 2010 |
* </p> |
| 2011 |
* @return string the translated string. |
| 2012 |
* </p> |
| 2013 |
* <p> |
| 2014 |
* If replace_pairs contains a key which |
| 2015 |
* is an empty string (""), |
| 2016 |
* false will be returned. If the str is not a scalar |
| 2017 |
* then it is not typecasted into a string, instead a warning is raised and |
| 2018 |
* &null; is returned. |
| 2019 |
*/ |
| 2020 |
function strtr ($str, $from, $to) {} |
| 2021 |
|
| 2022 |
/** |
| 2023 |
* Quote string with slashes |
| 2024 |
* @link http://www.php.net/manual/en/function.addslashes.php |
| 2025 |
* @param str string <p> |
| 2026 |
* The string to be escaped. |
| 2027 |
* </p> |
| 2028 |
* @return string the escaped string. |
| 2029 |
*/ |
| 2030 |
function addslashes ($str) {} |
| 2031 |
|
| 2032 |
/** |
| 2033 |
* Quote string with slashes in a C style |
| 2034 |
* @link http://www.php.net/manual/en/function.addcslashes.php |
| 2035 |
* @param str string <p> |
| 2036 |
* The string to be escaped. |
| 2037 |
* </p> |
| 2038 |
* @param charlist string <p> |
| 2039 |
* A list of characters to be escaped. If |
| 2040 |
* charlist contains characters |
| 2041 |
* \n, \r etc., they are |
| 2042 |
* converted in C-like style, while other non-alphanumeric characters |
| 2043 |
* with ASCII codes lower than 32 and higher than 126 converted to |
| 2044 |
* octal representation. |
| 2045 |
* </p> |
| 2046 |
* <p> |
| 2047 |
* When you define a sequence of characters in the charlist argument |
| 2048 |
* make sure that you know what characters come between the |
| 2049 |
* characters that you set as the start and end of the range. |
| 2050 |
* |
| 2051 |
* |
| 2052 |
* ]]> |
| 2053 |
* |
| 2054 |
* |
| 2055 |
* Also, if the first character in a range has a higher ASCII value |
| 2056 |
* than the second character in the range, no range will be |
| 2057 |
* constructed. Only the start, end and period characters will be |
| 2058 |
* escaped. Use the ord function to find the |
| 2059 |
* ASCII value for a character. |
| 2060 |
* |
| 2061 |
* |
| 2062 |
* ]]> |
| 2063 |
* |
| 2064 |
* |
| 2065 |
* </p> |
| 2066 |
* <p> |
| 2067 |
* Be careful if you choose to escape characters 0, a, b, f, n, r, t and |
| 2068 |
* v. They will be converted to \0, \a, \b, \f, \n, \r, \t and \v, all of |
| 2069 |
* which are predefined escape sequences in C. Many of these sequences are |
| 2070 |
* also defined in other C-derived languages, including PHP, meaning that |
| 2071 |
* you may not get the desired result if you use the output of |
| 2072 |
* addcslashes to generate code in those languages |
| 2073 |
* with these characters defined in charlist. |
| 2074 |
* </p> |
| 2075 |
* @return string the escaped string. |
| 2076 |
*/ |
| 2077 |
function addcslashes ($str, $charlist) {} |
| 2078 |
|
| 2079 |
/** |
| 2080 |
* Strip whitespace (or other characters) from the end of a string |
| 2081 |
* @link http://www.php.net/manual/en/function.rtrim.php |
| 2082 |
* @param str string <p> |
| 2083 |
* The input string. |
| 2084 |
* </p> |
| 2085 |
* @param character_mask string[optional] <p> |
| 2086 |
* You can also specify the characters you want to strip, by means |
| 2087 |
* of the character_mask parameter. |
| 2088 |
* Simply list all characters that you want to be stripped. With |
| 2089 |
* .. you can specify a range of characters. |
| 2090 |
* </p> |
| 2091 |
* @return string the modified string. |
| 2092 |
*/ |
| 2093 |
function rtrim ($str, $character_mask = null) {} |
| 2094 |
|
| 2095 |
/** |
| 2096 |
* Replace all occurrences of the search string with the replacement string |
| 2097 |
* @link http://www.php.net/manual/en/function.str-replace.php |
| 2098 |
* @param search mixed <p> |
| 2099 |
* The value being searched for, otherwise known as the needle. |
| 2100 |
* An array may be used to designate multiple needles. |
| 2101 |
* </p> |
| 2102 |
* @param replace mixed <p> |
| 2103 |
* The replacement value that replaces found search |
| 2104 |
* values. An array may be used to designate multiple replacements. |
| 2105 |
* </p> |
| 2106 |
* @param subject mixed <p> |
| 2107 |
* The string or array being searched and replaced on, |
| 2108 |
* otherwise known as the haystack. |
| 2109 |
* </p> |
| 2110 |
* <p> |
| 2111 |
* If subject is an array, then the search and |
| 2112 |
* replace is performed with every entry of |
| 2113 |
* subject, and the return value is an array as |
| 2114 |
* well. |
| 2115 |
* </p> |
| 2116 |
* @param count int[optional] <p> |
| 2117 |
* If passed, this will be set to the number of replacements performed. |
| 2118 |
* </p> |
| 2119 |
* @return mixed This function returns a string or an array with the replaced values. |
| 2120 |
*/ |
| 2121 |
function str_replace ($search, $replace, $subject, &$count = null) {} |
| 2122 |
|
| 2123 |
/** |
| 2124 |
* Case-insensitive version of <function>str_replace</function>. |
| 2125 |
* @link http://www.php.net/manual/en/function.str-ireplace.php |
| 2126 |
* @param search mixed <p> |
| 2127 |
* The value being searched for, otherwise known as the |
| 2128 |
* needle. An array may be used to designate |
| 2129 |
* multiple needles. |
| 2130 |
* </p> |
| 2131 |
* @param replace mixed <p> |
| 2132 |
* The replacement value that replaces found search |
| 2133 |
* values. An array may be used to designate multiple replacements. |
| 2134 |
* </p> |
| 2135 |
* @param subject mixed <p> |
| 2136 |
* The string or array being searched and replaced on, |
| 2137 |
* otherwise known as the haystack. |
| 2138 |
* </p> |
| 2139 |
* <p> |
| 2140 |
* If subject is an array, then the search and |
| 2141 |
* replace is performed with every entry of |
| 2142 |
* subject, and the return value is an array as |
| 2143 |
* well. |
| 2144 |
* </p> |
| 2145 |
* @param count int[optional] <p> |
| 2146 |
* If passed, this will be set to the number of replacements performed. |
| 2147 |
* </p> |
| 2148 |
* @return mixed a string or an array of replacements. |
| 2149 |
*/ |
| 2150 |
function str_ireplace ($search, $replace, $subject, &$count = null) {} |
| 2151 |
|
| 2152 |
/** |
| 2153 |
* Repeat a string |
| 2154 |
* @link http://www.php.net/manual/en/function.str-repeat.php |
| 2155 |
* @param input string <p> |
| 2156 |
* The string to be repeated. |
| 2157 |
* </p> |
| 2158 |
* @param multiplier int <p> |
| 2159 |
* Number of time the input string should be |
| 2160 |
* repeated. |
| 2161 |
* </p> |
| 2162 |
* <p> |
| 2163 |
* multiplier has to be greater than or equal to 0. |
| 2164 |
* If the multiplier is set to 0, the function |
| 2165 |
* will return an empty string. |
| 2166 |
* </p> |
| 2167 |
* @return string the repeated string. |
| 2168 |
*/ |
| 2169 |
function str_repeat ($input, $multiplier) {} |
| 2170 |
|
| 2171 |
/** |
| 2172 |
* Return information about characters used in a string |
| 2173 |
* @link http://www.php.net/manual/en/function.count-chars.php |
| 2174 |
* @param string string <p> |
| 2175 |
* The examined string. |
| 2176 |
* </p> |
| 2177 |
* @param mode int[optional] <p> |
| 2178 |
* See return values. |
| 2179 |
* </p> |
| 2180 |
* @return mixed Depending on mode |
| 2181 |
* count_chars returns one of the following: |
| 2182 |
* |
| 2183 |
* |
| 2184 |
* |
| 2185 |
* 0 - an array with the byte-value as key and the frequency of |
| 2186 |
* every byte as value. |
| 2187 |
* |
| 2188 |
* |
| 2189 |
* |
| 2190 |
* |
| 2191 |
* 1 - same as 0 but only byte-values with a frequency greater |
| 2192 |
* than zero are listed. |
| 2193 |
* |
| 2194 |
* |
| 2195 |
* |
| 2196 |
* |
| 2197 |
* 2 - same as 0 but only byte-values with a frequency equal to |
| 2198 |
* zero are listed. |
| 2199 |
* |
| 2200 |
* |
| 2201 |
* |
| 2202 |
* |
| 2203 |
* 3 - a string containing all unique characters is returned. |
| 2204 |
* |
| 2205 |
* |
| 2206 |
* |
| 2207 |
* |
| 2208 |
* 4 - a string containing all not used characters is returned. |
| 2209 |
*/ |
| 2210 |
function count_chars ($string, $mode = null) {} |
| 2211 |
|
| 2212 |
/** |
| 2213 |
* Split a string into smaller chunks |
| 2214 |
* @link http://www.php.net/manual/en/function.chunk-split.php |
| 2215 |
* @param body string <p> |
| 2216 |
* The string to be chunked. |
| 2217 |
* </p> |
| 2218 |
* @param chunklen int[optional] <p> |
| 2219 |
* The chunk length. |
| 2220 |
* </p> |
| 2221 |
* @param end string[optional] <p> |
| 2222 |
* The line ending sequence. |
| 2223 |
* </p> |
| 2224 |
* @return string the chunked string. |
| 2225 |
*/ |
| 2226 |
function chunk_split ($body, $chunklen = null, $end = null) {} |
| 2227 |
|
| 2228 |
/** |
| 2229 |
* Strip whitespace (or other characters) from the beginning and end of a string |
| 2230 |
* @link http://www.php.net/manual/en/function.trim.php |
| 2231 |
* @param str string <p> |
| 2232 |
* The string that will be trimmed. |
| 2233 |
* </p> |
| 2234 |
* @param character_mask string[optional] <p> |
| 2235 |
* Optionally, the stripped characters can also be specified using |
| 2236 |
* the character_mask parameter. |
| 2237 |
* Simply list all characters that you want to be stripped. With |
| 2238 |
* .. you can specify a range of characters. |
| 2239 |
* </p> |
| 2240 |
* @return string The trimmed string. |
| 2241 |
*/ |
| 2242 |
function trim ($str, $character_mask = null) {} |
| 2243 |
|
| 2244 |
/** |
| 2245 |
* Strip whitespace (or other characters) from the beginning of a string |
| 2246 |
* @link http://www.php.net/manual/en/function.ltrim.php |
| 2247 |
* @param str string <p> |
| 2248 |
* The input string. |
| 2249 |
* </p> |
| 2250 |
* @param character_mask string[optional] <p> |
| 2251 |
* You can also specify the characters you want to strip, by means of the |
| 2252 |
* character_mask parameter. |
| 2253 |
* Simply list all characters that you want to be stripped. With |
| 2254 |
* .. you can specify a range of characters. |
| 2255 |
* </p> |
| 2256 |
* @return string This function returns a string with whitespace stripped from the |
| 2257 |
* beginning of str. |
| 2258 |
* Without the second parameter, |
| 2259 |
* ltrim will strip these characters: |
| 2260 |
* |
| 2261 |
* |
| 2262 |
* |
| 2263 |
* |
| 2264 |
* " " (ASCII 32 |
| 2265 |
* (0x20)), an ordinary space. |
| 2266 |
* |
| 2267 |
* |
| 2268 |
* |
| 2269 |
* |
| 2270 |
* "\t" (ASCII 9 |
| 2271 |
* (0x09)), a tab. |
| 2272 |
* |
| 2273 |
* |
| 2274 |
* |
| 2275 |
* |
| 2276 |
* "\n" (ASCII 10 |
| 2277 |
* (0x0A)), a new line (line feed). |
| 2278 |
* |
| 2279 |
* |
| 2280 |
* |
| 2281 |
* |
| 2282 |
* "\r" (ASCII 13 |
| 2283 |
* (0x0D)), a carriage return. |
| 2284 |
* |
| 2285 |
* |
| 2286 |
* |
| 2287 |
* |
| 2288 |
* "\0" (ASCII 0 |
| 2289 |
* (0x00)), the NUL-byte. |
| 2290 |
* |
| 2291 |
* |
| 2292 |
* |
| 2293 |
* |
| 2294 |
* "\x0B" (ASCII 11 |
| 2295 |
* (0x0B)), a vertical tab. |
| 2296 |
*/ |
| 2297 |
function ltrim ($str, $character_mask = null) {} |
| 2298 |
|
| 2299 |
/** |
| 2300 |
* Strip HTML and PHP tags from a string |
| 2301 |
* @link http://www.php.net/manual/en/function.strip-tags.php |
| 2302 |
* @param str string <p> |
| 2303 |
* The input string. |
| 2304 |
* </p> |
| 2305 |
* @param allowable_tags string[optional] <p> |
| 2306 |
* You can use the optional second parameter to specify tags which should |
| 2307 |
* not be stripped. |
| 2308 |
* </p> |
| 2309 |
* |
| 2310 |
* <p> |
| 2311 |
* HTML comments and PHP tags are also stripped. This is hardcoded and |
| 2312 |
* can not be changed with allowable_tags. |
| 2313 |
* </p> |
| 2314 |
* |
| 2315 |
* |
| 2316 |
* <p> |
| 2317 |
* This parameter should not contain whitespace. |
| 2318 |
* strip_tags sees a tag as a case-insensitive |
| 2319 |
* string between . It means that |
| 2320 |
* strip_tags("", "") returns an |
| 2321 |
* empty string. |
| 2322 |
* </p> |
| 2323 |
* @return string the stripped string. |
| 2324 |
*/ |
| 2325 |
function strip_tags ($str, $allowable_tags = null) {} |
| 2326 |
|
| 2327 |
/** |
| 2328 |
* Calculate the similarity between two strings |
| 2329 |
* @link http://www.php.net/manual/en/function.similar-text.php |
| 2330 |
* @param first string <p> |
| 2331 |
* The first string. |
| 2332 |
* </p> |
| 2333 |
* @param second string <p> |
| 2334 |
* The second string. |
| 2335 |
* </p> |
| 2336 |
* @param percent float[optional] <p> |
| 2337 |
* By passing a reference as third argument, |
| 2338 |
* similar_text will calculate the similarity in |
| 2339 |
* percent for you. |
| 2340 |
* </p> |
| 2341 |
* @return int the number of matching chars in both strings. |
| 2342 |
*/ |
| 2343 |
function similar_text ($first, $second, &$percent = null) {} |
| 2344 |
|
| 2345 |
/** |
| 2346 |
* Split a string by string |
| 2347 |
* @link http://www.php.net/manual/en/function.explode.php |
| 2348 |
* @param delimiter string <p> |
| 2349 |
* The boundary string. |
| 2350 |
* </p> |
| 2351 |
* @param string string <p> |
| 2352 |
* The input string. |
| 2353 |
* </p> |
| 2354 |
* @param limit int[optional] <p> |
| 2355 |
* If limit is set and positive, the returned array will contain |
| 2356 |
* a maximum of limit elements with the last |
| 2357 |
* element containing the rest of string. |
| 2358 |
* </p> |
| 2359 |
* <p> |
| 2360 |
* If the limit parameter is negative, all components |
| 2361 |
* except the last -limit are returned. |
| 2362 |
* </p> |
| 2363 |
* <p> |
| 2364 |
* If the limit parameter is zero, then this is treated as 1. |
| 2365 |
* </p> |
| 2366 |
* @return array an array of strings |
| 2367 |
* created by splitting the string parameter on |
| 2368 |
* boundaries formed by the delimiter. |
| 2369 |
* </p> |
| 2370 |
* <p> |
| 2371 |
* If delimiter is an empty string (""), |
| 2372 |
* explode will return false. |
| 2373 |
* If delimiter contains a value that is not |
| 2374 |
* contained in string and a negative |
| 2375 |
* limit is used, then an empty array will be |
| 2376 |
* returned, otherwise an array containing |
| 2377 |
* string will be returned. |
| 2378 |
*/ |
| 2379 |
function explode ($delimiter, $string, $limit = null) {} |
| 2380 |
|
| 2381 |
/** |
| 2382 |
* Join array elements with a string |
| 2383 |
* @link http://www.php.net/manual/en/function.implode.php |
| 2384 |
* @param glue string <p> |
| 2385 |
* Defaults to an empty string. |
| 2386 |
* </p> |
| 2387 |
* @param pieces array <p> |
| 2388 |
* The array of strings to implode. |
| 2389 |
* </p> |
| 2390 |
* @return string a string containing a string representation of all the array |
| 2391 |
* elements in the same order, with the glue string between each element. |
| 2392 |
*/ |
| 2393 |
function implode ($glue, array $pieces) {} |
| 2394 |
|
| 2395 |
/** |
| 2396 |
* &Alias; <function>implode</function> |
| 2397 |
* @link http://www.php.net/manual/en/function.join.php |
| 2398 |
* @param glue |
| 2399 |
* @param pieces |
| 2400 |
*/ |
| 2401 |
function join ($glue, $pieces) {} |
| 2402 |
|
| 2403 |
/** |
| 2404 |
* Set locale information |
| 2405 |
* @link http://www.php.net/manual/en/function.setlocale.php |
| 2406 |
* @param category int <p> |
| 2407 |
* category is a named constant specifying the |
| 2408 |
* category of the functions affected by the locale setting: |
| 2409 |
* |
| 2410 |
* |
| 2411 |
* |
| 2412 |
* LC_ALL for all of the below |
| 2413 |
* @param locale string <p> |
| 2414 |
* If locale is &null; or the empty string |
| 2415 |
* "", the locale names will be set from the |
| 2416 |
* values of environment variables with the same names as the above |
| 2417 |
* categories, or from "LANG". |
| 2418 |
* </p> |
| 2419 |
* <p> |
| 2420 |
* If locale is "0", |
| 2421 |
* the locale setting is not affected, only the current setting is returned. |
| 2422 |
* </p> |
| 2423 |
* <p> |
| 2424 |
* If locale is an array or followed by additional |
| 2425 |
* parameters then each array element or parameter is tried to be set as |
| 2426 |
* new locale until success. This is useful if a locale is known under |
| 2427 |
* different names on different systems or for providing a fallback |
| 2428 |
* for a possibly not available locale. |
| 2429 |
* </p> |
| 2430 |
* @param _ string[optional] |
| 2431 |
* @return string the new current locale, or false if the locale functionality is |
| 2432 |
* not implemented on your platform, the specified locale does not exist or |
| 2433 |
* the category name is invalid. |
| 2434 |
* </p> |
| 2435 |
* <p> |
| 2436 |
* An invalid category name also causes a warning message. Category/locale |
| 2437 |
* names can be found in RFC 1766 |
| 2438 |
* and ISO 639. |
| 2439 |
* Different systems have different naming schemes for locales. |
| 2440 |
* </p> |
| 2441 |
* |
| 2442 |
* <p> |
| 2443 |
* The return value of setlocale depends |
| 2444 |
* on the system that PHP is running. It returns exactly |
| 2445 |
* what the system setlocale function returns. |
| 2446 |
*/ |
| 2447 |
function setlocale ($category, $locale, $_ = null) {} |
| 2448 |
|
| 2449 |
/** |
| 2450 |
* Get numeric formatting information |
| 2451 |
* @link http://www.php.net/manual/en/function.localeconv.php |
| 2452 |
* @return array localeconv returns data based upon the current locale |
| 2453 |
* as set by setlocale. The associative array that is |
| 2454 |
* returned contains the following fields: |
| 2455 |
* |
| 2456 |
* |
| 2457 |
* |
| 2458 |
* <tr valign="top"> |
| 2459 |
* <td>Array element</td> |
| 2460 |
* <td>Description</td> |
| 2461 |
* </tr> |
| 2462 |
* |
| 2463 |
* |
| 2464 |
* <tr valign="top"> |
| 2465 |
* <td>decimal_point</td> |
| 2466 |
* <td>Decimal point character</td> |
| 2467 |
* </tr> |
| 2468 |
* <tr valign="top"> |
| 2469 |
* <td>thousands_sep</td> |
| 2470 |
* <td>Thousands separator</td> |
| 2471 |
* </tr> |
| 2472 |
* <tr valign="top"> |
| 2473 |
* <td>grouping</td> |
| 2474 |
* <td>Array containing numeric groupings</td> |
| 2475 |
* </tr> |
| 2476 |
* <tr valign="top"> |
| 2477 |
* <td>int_curr_symbol</td> |
| 2478 |
* <td>International currency symbol (i.e. USD)</td> |
| 2479 |
* </tr> |
| 2480 |
* <tr valign="top"> |
| 2481 |
* <td>currency_symbol</td> |
| 2482 |
* <td>Local currency symbol (i.e. $)</td> |
| 2483 |
* </tr> |
| 2484 |
* <tr valign="top"> |
| 2485 |
* <td>mon_decimal_point</td> |
| 2486 |
* <td>Monetary decimal point character</td> |
| 2487 |
* </tr> |
| 2488 |
* <tr valign="top"> |
| 2489 |
* <td>mon_thousands_sep</td> |
| 2490 |
* <td>Monetary thousands separator</td> |
| 2491 |
* </tr> |
| 2492 |
* <tr valign="top"> |
| 2493 |
* <td>mon_grouping</td> |
| 2494 |
* <td>Array containing monetary groupings</td> |
| 2495 |
* </tr> |
| 2496 |
* <tr valign="top"> |
| 2497 |
* <td>positive_sign</td> |
| 2498 |
* <td>Sign for positive values</td> |
| 2499 |
* </tr> |
| 2500 |
* <tr valign="top"> |
| 2501 |
* <td>negative_sign</td> |
| 2502 |
* <td>Sign for negative values</td> |
| 2503 |
* </tr> |
| 2504 |
* <tr valign="top"> |
| 2505 |
* <td>int_frac_digits</td> |
| 2506 |
* <td>International fractional digits</td> |
| 2507 |
* </tr> |
| 2508 |
* <tr valign="top"> |
| 2509 |
* <td>frac_digits</td> |
| 2510 |
* <td>Local fractional digits</td> |
| 2511 |
* </tr> |
| 2512 |
* <tr valign="top"> |
| 2513 |
* <td>p_cs_precedes</td> |
| 2514 |
* <td> |
| 2515 |
* true if currency_symbol precedes a positive value, false |
| 2516 |
* if it succeeds one |
| 2517 |
* </td> |
| 2518 |
* </tr> |
| 2519 |
* <tr valign="top"> |
| 2520 |
* <td>p_sep_by_space</td> |
| 2521 |
* <td> |
| 2522 |
* true if a space separates currency_symbol from a positive |
| 2523 |
* value, false otherwise |
| 2524 |
* </td> |
| 2525 |
* </tr> |
| 2526 |
* <tr valign="top"> |
| 2527 |
* <td>n_cs_precedes</td> |
| 2528 |
* <td> |
| 2529 |
* true if currency_symbol precedes a negative value, false |
| 2530 |
* if it succeeds one |
| 2531 |
* </td> |
| 2532 |
* </tr> |
| 2533 |
* <tr valign="top"> |
| 2534 |
* <td>n_sep_by_space</td> |
| 2535 |
* <td> |
| 2536 |
* true if a space separates currency_symbol from a negative |
| 2537 |
* value, false otherwise |
| 2538 |
* </td> |
| 2539 |
* </tr> |
| 2540 |
* |
| 2541 |
* <td>p_sign_posn</td> |
| 2542 |
* <td> |
| 2543 |
* |
| 2544 |
* 0 - Parentheses surround the quantity and currency_symbol |
| 2545 |
* 1 - The sign string precedes the quantity and currency_symbol |
| 2546 |
* 2 - The sign string succeeds the quantity and currency_symbol |
| 2547 |
* 3 - The sign string immediately precedes the currency_symbol |
| 2548 |
* 4 - The sign string immediately succeeds the currency_symbol |
| 2549 |
* |
| 2550 |
* </td> |
| 2551 |
* </tr> |
| 2552 |
* |
| 2553 |
* <td>n_sign_posn</td> |
| 2554 |
* <td> |
| 2555 |
* |
| 2556 |
* 0 - Parentheses surround the quantity and currency_symbol |
| 2557 |
* 1 - The sign string precedes the quantity and currency_symbol |
| 2558 |
* 2 - The sign string succeeds the quantity and currency_symbol |
| 2559 |
* 3 - The sign string immediately precedes the currency_symbol |
| 2560 |
* 4 - The sign string immediately succeeds the currency_symbol |
| 2561 |
* |
| 2562 |
* </td> |
| 2563 |
* </tr> |
| 2564 |
* |
| 2565 |
* |
| 2566 |
* |
| 2567 |
* </p> |
| 2568 |
* <p> |
| 2569 |
* The p_sign_posn, and n_sign_posn contain a string |
| 2570 |
* of formatting options. Each number representing one of the above listed conditions. |
| 2571 |
* </p> |
| 2572 |
* <p> |
| 2573 |
* The grouping fields contain arrays that define the way numbers should be |
| 2574 |
* grouped. For example, the monetary grouping field for the nl_NL locale (in |
| 2575 |
* UTF-8 mode with the euro sign), would contain a 2 item array with the |
| 2576 |
* values 3 and 3. The higher the index in the array, the farther left the |
| 2577 |
* grouping is. If an array element is equal to CHAR_MAX, |
| 2578 |
* no further grouping is done. If an array element is equal to 0, the previous |
| 2579 |
* element should be used. |
| 2580 |
*/ |
| 2581 |
function localeconv () {} |
| 2582 |
|
| 2583 |
/** |
| 2584 |
* Query language and locale information |
| 2585 |
* @link http://www.php.net/manual/en/function.nl-langinfo.php |
| 2586 |
* @param item int <p> |
| 2587 |
* item may be an integer value of the element or the |
| 2588 |
* constant name of the element. The following is a list of constant names |
| 2589 |
* for item that may be used and their description. |
| 2590 |
* Some of these constants may not be defined or hold no value for certain |
| 2591 |
* locales. |
| 2592 |
* <table> |
| 2593 |
* nl_langinfo Constants |
| 2594 |
* |
| 2595 |
* |
| 2596 |
* |
| 2597 |
* |
| 2598 |
* <tr valign="top"> |
| 2599 |
* <td>Constant</td> |
| 2600 |
* <td>Description</td> |
| 2601 |
* </tr> |
| 2602 |
* |
| 2603 |
* |
| 2604 |
* <tr valign="top"> |
| 2605 |
* LC_TIME Category Constants</td> |
| 2606 |
* </tr> |
| 2607 |
* <tr valign="top"> |
| 2608 |
* <td>ABDAY_(1-7)</td> |
| 2609 |
* <td>Abbreviated name of n-th day of the week.</td> |
| 2610 |
* </tr> |
| 2611 |
* <tr valign="top"> |
| 2612 |
* <td>DAY_(1-7)</td> |
| 2613 |
* <td>Name of the n-th day of the week (DAY_1 = Sunday).</td> |
| 2614 |
* </tr> |
| 2615 |
* <tr valign="top"> |
| 2616 |
* <td>ABMON_(1-12)</td> |
| 2617 |
* <td>Abbreviated name of the n-th month of the year.</td> |
| 2618 |
* </tr> |
| 2619 |
* <tr valign="top"> |
| 2620 |
* <td>MON_(1-12)</td> |
| 2621 |
* <td>Name of the n-th month of the year.</td> |
| 2622 |
* </tr> |
| 2623 |
* <tr valign="top"> |
| 2624 |
* <td>AM_STR</td> |
| 2625 |
* <td>String for Ante meridian.</td> |
| 2626 |
* </tr> |
| 2627 |
* <tr valign="top"> |
| 2628 |
* <td>PM_STR</td> |
| 2629 |
* <td>String for Post meridian.</td> |
| 2630 |
* </tr> |
| 2631 |
* <tr valign="top"> |
| 2632 |
* <td>D_T_FMT</td> |
| 2633 |
* <td>String that can be used as the format string for strftime to represent time and date.</td> |
| 2634 |
* </tr> |
| 2635 |
* <tr valign="top"> |
| 2636 |
* <td>D_FMT</td> |
| 2637 |
* <td>String that can be used as the format string for strftime to represent date.</td> |
| 2638 |
* </tr> |
| 2639 |
* <tr valign="top"> |
| 2640 |
* <td>T_FMT</td> |
| 2641 |
* <td>String that can be used as the format string for strftime to represent time.</td> |
| 2642 |
* </tr> |
| 2643 |
* <tr valign="top"> |
| 2644 |
* <td>T_FMT_AMPM</td> |
| 2645 |
* <td>String that can be used as the format string for strftime to represent time in 12-hour format with ante/post meridian.</td> |
| 2646 |
* </tr> |
| 2647 |
* <tr valign="top"> |
| 2648 |
* <td>ERA</td> |
| 2649 |
* <td>Alternate era.</td> |
| 2650 |
* </tr> |
| 2651 |
* <tr valign="top"> |
| 2652 |
* <td>ERA_YEAR</td> |
| 2653 |
* <td>Year in alternate era format.</td> |
| 2654 |
* </tr> |
| 2655 |
* <tr valign="top"> |
| 2656 |
* <td>ERA_D_T_FMT</td> |
| 2657 |
* <td>Date and time in alternate era format (string can be used in strftime).</td> |
| 2658 |
* </tr> |
| 2659 |
* <tr valign="top"> |
| 2660 |
* <td>ERA_D_FMT</td> |
| 2661 |
* <td>Date in alternate era format (string can be used in strftime).</td> |
| 2662 |
* </tr> |
| 2663 |
* <tr valign="top"> |
| 2664 |
* <td>ERA_T_FMT</td> |
| 2665 |
* <td>Time in alternate era format (string can be used in strftime).</td> |
| 2666 |
* </tr> |
| 2667 |
* <tr valign="top"> |
| 2668 |
* LC_MONETARY Category Constants</td> |
| 2669 |
* </tr> |
| 2670 |
* <tr valign="top"> |
| 2671 |
* <td>INT_CURR_SYMBOL</td> |
| 2672 |
* <td>International currency symbol.</td> |
| 2673 |
* </tr> |
| 2674 |
* <tr valign="top"> |
| 2675 |
* <td>CURRENCY_SYMBOL</td> |
| 2676 |
* <td>Local currency symbol.</td> |
| 2677 |
* </tr> |
| 2678 |
* <tr valign="top"> |
| 2679 |
* <td>CRNCYSTR</td> |
| 2680 |
* <td>Same value as CURRENCY_SYMBOL.</td> |
| 2681 |
* </tr> |
| 2682 |
* <tr valign="top"> |
| 2683 |
* <td>MON_DECIMAL_POINT</td> |
| 2684 |
* <td>Decimal point character.</td> |
| 2685 |
* </tr> |
| 2686 |
* <tr valign="top"> |
| 2687 |
* <td>MON_THOUSANDS_SEP</td> |
| 2688 |
* <td>Thousands separator (groups of three digits).</td> |
| 2689 |
* </tr> |
| 2690 |
* <tr valign="top"> |
| 2691 |
* <td>MON_GROUPING</td> |
| 2692 |
* <td>Like "grouping" element.</td> |
| 2693 |
* </tr> |
| 2694 |
* <tr valign="top"> |
| 2695 |
* <td>POSITIVE_SIGN</td> |
| 2696 |
* <td>Sign for positive values.</td> |
| 2697 |
* </tr> |
| 2698 |
* <tr valign="top"> |
| 2699 |
* <td>NEGATIVE_SIGN</td> |
| 2700 |
* <td>Sign for negative values.</td> |
| 2701 |
* </tr> |
| 2702 |
* <tr valign="top"> |
| 2703 |
* <td>INT_FRAC_DIGITS</td> |
| 2704 |
* <td>International fractional digits.</td> |
| 2705 |
* </tr> |
| 2706 |
* <tr valign="top"> |
| 2707 |
* <td>FRAC_DIGITS</td> |
| 2708 |
* <td>Local fractional digits.</td> |
| 2709 |
* </tr> |
| 2710 |
* <tr valign="top"> |
| 2711 |
* <td>P_CS_PRECEDES</td> |
| 2712 |
* <td>Returns 1 if CURRENCY_SYMBOL precedes a positive value.</td> |
| 2713 |
* </tr> |
| 2714 |
* <tr valign="top"> |
| 2715 |
* <td>P_SEP_BY_SPACE</td> |
| 2716 |
* <td>Returns 1 if a space separates CURRENCY_SYMBOL from a positive value.</td> |
| 2717 |
* </tr> |
| 2718 |
* <tr valign="top"> |
| 2719 |
* <td>N_CS_PRECEDES</td> |
| 2720 |
* <td>Returns 1 if CURRENCY_SYMBOL precedes a negative value.</td> |
| 2721 |
* </tr> |
| 2722 |
* <tr valign="top"> |
| 2723 |
* <td>N_SEP_BY_SPACE</td> |
| 2724 |
* <td>Returns 1 if a space separates CURRENCY_SYMBOL from a negative value.</td> |
| 2725 |
* </tr> |
| 2726 |
* <tr valign="top"> |
| 2727 |
* <td>P_SIGN_POSN</td> |
| 2728 |
* |
| 2729 |
* |
| 2730 |
* |
| 2731 |
* |
| 2732 |
* Returns 0 if parentheses surround the quantity and CURRENCY_SYMBOL. |
| 2733 |
* @return string the element as a string, or false if item |
| 2734 |
* is not valid. |
| 2735 |
*/ |
| 2736 |
function nl_langinfo ($item) {} |
| 2737 |
|
| 2738 |
/** |
| 2739 |
* Calculate the soundex key of a string |
| 2740 |
* @link http://www.php.net/manual/en/function.soundex.php |
| 2741 |
* @param str string <p> |
| 2742 |
* The input string. |
| 2743 |
* </p> |
| 2744 |
* @return string the soundex key as a string. |
| 2745 |
*/ |
| 2746 |
function soundex ($str) {} |
| 2747 |
|
| 2748 |
/** |
| 2749 |
* Calculate Levenshtein distance between two strings |
| 2750 |
* @link http://www.php.net/manual/en/function.levenshtein.php |
| 2751 |
* @param str1 string <p> |
| 2752 |
* One of the strings being evaluated for Levenshtein distance. |
| 2753 |
* </p> |
| 2754 |
* @param str2 string <p> |
| 2755 |
* One of the strings being evaluated for Levenshtein distance. |
| 2756 |
* </p> |
| 2757 |
* @return int This function returns the Levenshtein-Distance between the |
| 2758 |
* two argument strings or -1, if one of the argument strings |
| 2759 |
* is longer than the limit of 255 characters. |
| 2760 |
*/ |
| 2761 |
function levenshtein ($str1, $str2) {} |
| 2762 |
|
| 2763 |
/** |
| 2764 |
* Return a specific character |
| 2765 |
* @link http://www.php.net/manual/en/function.chr.php |
| 2766 |
* @param ascii int <p> |
| 2767 |
* The ascii code. |
| 2768 |
* </p> |
| 2769 |
* @return string the specified character. |
| 2770 |
*/ |
| 2771 |
function chr ($ascii) {} |
| 2772 |
|
| 2773 |
/** |
| 2774 |
* Return ASCII value of character |
| 2775 |
* @link http://www.php.net/manual/en/function.ord.php |
| 2776 |
* @param string string <p> |
| 2777 |
* A character. |
| 2778 |
* </p> |
| 2779 |
* @return int the ASCII value as an integer. |
| 2780 |
*/ |
| 2781 |
function ord ($string) {} |
| 2782 |
|
| 2783 |
/** |
| 2784 |
* Parses the string into variables |
| 2785 |
* @link http://www.php.net/manual/en/function.parse-str.php |
| 2786 |
* @param str string <p> |
| 2787 |
* The input string. |
| 2788 |
* </p> |
| 2789 |
* @param arr array[optional] <p> |
| 2790 |
* If the second parameter arr is present, |
| 2791 |
* variables are stored in this variable as array elements instead. |
| 2792 |
* </p> |
| 2793 |
* @return void |
| 2794 |
*/ |
| 2795 |
function parse_str ($str, array &$arr = null) {} |
| 2796 |
|
| 2797 |
/** |
| 2798 |
* Parse a CSV string into an array |
| 2799 |
* @link http://www.php.net/manual/en/function.str-getcsv.php |
| 2800 |
* @param input string <p> |
| 2801 |
* The string to parse. |
| 2802 |
* </p> |
| 2803 |
* @param delimiter string[optional] <p> |
| 2804 |
* Set the field delimiter (one character only). |
| 2805 |
* </p> |
| 2806 |
* @param enclosure string[optional] <p> |
| 2807 |
* Set the field enclosure character (one character only). |
| 2808 |
* </p> |
| 2809 |
* @param escape string[optional] <p> |
| 2810 |
* Set the escape character (one character only). Defaults as a backslash |
| 2811 |
* (\) |
| 2812 |
* </p> |
| 2813 |
* @return array an indexed array containing the fields read. |
| 2814 |
*/ |
| 2815 |
function str_getcsv ($input, $delimiter = null, $enclosure = null, $escape = null) {} |
| 2816 |
|
| 2817 |
/** |
| 2818 |
* Pad a string to a certain length with another string |
| 2819 |
* @link http://www.php.net/manual/en/function.str-pad.php |
| 2820 |
* @param input string <p> |
| 2821 |
* The input string. |
| 2822 |
* </p> |
| 2823 |
* @param pad_length int <p> |
| 2824 |
* If the value of pad_length is negative, |
| 2825 |
* less than, or equal to the length of the input string, no padding |
| 2826 |
* takes place. |
| 2827 |
* </p> |
| 2828 |
* @param pad_string string[optional] <p> |
| 2829 |
* The pad_string may be truncated if the |
| 2830 |
* required number of padding characters can't be evenly divided by the |
| 2831 |
* pad_string's length. |
| 2832 |
* </p> |
| 2833 |
* @param pad_type int[optional] <p> |
| 2834 |
* Optional argument pad_type can be |
| 2835 |
* STR_PAD_RIGHT, STR_PAD_LEFT, |
| 2836 |
* or STR_PAD_BOTH. If |
| 2837 |
* pad_type is not specified it is assumed to be |
| 2838 |
* STR_PAD_RIGHT. |
| 2839 |
* </p> |
| 2840 |
* @return string the padded string. |
| 2841 |
*/ |
| 2842 |
function str_pad ($input, $pad_length, $pad_string = null, $pad_type = null) {} |
| 2843 |
|
| 2844 |
/** |
| 2845 |
* &Alias; <function>rtrim</function> |
| 2846 |
* @link http://www.php.net/manual/en/function.chop.php |
| 2847 |
* @param str |
| 2848 |
* @param character_mask[optional] |
| 2849 |
*/ |
| 2850 |
function chop ($str, $character_mask) {} |
| 2851 |
|
| 2852 |
/** |
| 2853 |
* &Alias; <function>strstr</function> |
| 2854 |
* @link http://www.php.net/manual/en/function.strchr.php |
| 2855 |
* @param haystack |
| 2856 |
* @param needle |
| 2857 |
* @param part[optional] |
| 2858 |
*/ |
| 2859 |
function strchr ($haystack, $needle, $part) {} |
| 2860 |
|
| 2861 |
/** |
| 2862 |
* Return a formatted string |
| 2863 |
* @link http://www.php.net/manual/en/function.sprintf.php |
| 2864 |
* @param format string <p> |
| 2865 |
* The format string is composed of zero or more directives: |
| 2866 |
* ordinary characters (excluding %) that are |
| 2867 |
* copied directly to the result, and conversion |
| 2868 |
* specifications, each of which results in fetching its |
| 2869 |
* own parameter. This applies to both sprintf |
| 2870 |
* and printf. |
| 2871 |
* </p> |
| 2872 |
* <p> |
| 2873 |
* Each conversion specification consists of a percent sign |
| 2874 |
* (%), followed by one or more of these |
| 2875 |
* elements, in order: |
| 2876 |
* |
| 2877 |
* |
| 2878 |
* |
| 2879 |
* An optional sign specifier that forces a sign |
| 2880 |
* (- or +) to be used on a number. By default, only the - sign is used |
| 2881 |
* on a number if it's negative. This specifier forces positive numbers |
| 2882 |
* to have the + sign attached as well, and was added in PHP 4.3.0. |
| 2883 |
* @param args mixed[optional] <p> |
| 2884 |
* </p> |
| 2885 |
* @param _ mixed[optional] |
| 2886 |
* @return string a string produced according to the formatting string |
| 2887 |
* format. |
| 2888 |
*/ |
| 2889 |
function sprintf ($format, $args = null, $_ = null) {} |
| 2890 |
|
| 2891 |
/** |
| 2892 |
* Output a formatted string |
| 2893 |
* @link http://www.php.net/manual/en/function.printf.php |
| 2894 |
* @param format string <p> |
| 2895 |
* See sprintf for a description of |
| 2896 |
* format. |
| 2897 |
* </p> |
| 2898 |
* @param args mixed[optional] <p> |
| 2899 |
* </p> |
| 2900 |
* @param _ mixed[optional] |
| 2901 |
* @return int the length of the outputted string. |
| 2902 |
*/ |
| 2903 |
function printf ($format, $args = null, $_ = null) {} |
| 2904 |
|
| 2905 |
/** |
| 2906 |
* Output a formatted string |
| 2907 |
* @link http://www.php.net/manual/en/function.vprintf.php |
| 2908 |
* @param format string <p> |
| 2909 |
* See sprintf for a description of |
| 2910 |
* format. |
| 2911 |
* </p> |
| 2912 |
* @param args array <p> |
| 2913 |
* </p> |
| 2914 |
* @return int the length of the outputted string. |
| 2915 |
*/ |
| 2916 |
function vprintf ($format, array $args) {} |
| 2917 |
|
| 2918 |
/** |
| 2919 |
* Return a formatted string |
| 2920 |
* @link http://www.php.net/manual/en/function.vsprintf.php |
| 2921 |
* @param format string <p> |
| 2922 |
* See sprintf for a description of |
| 2923 |
* format. |
| 2924 |
* </p> |
| 2925 |
* @param args array <p> |
| 2926 |
* </p> |
| 2927 |
* @return string Return array values as a formatted string according to |
| 2928 |
* format (which is described in the documentation |
| 2929 |
* for sprintf). |
| 2930 |
*/ |
| 2931 |
function vsprintf ($format, array $args) {} |
| 2932 |
|
| 2933 |
/** |
| 2934 |
* Write a formatted string to a stream |
| 2935 |
* @link http://www.php.net/manual/en/function.fprintf.php |
| 2936 |
* @param handle resource &fs.file.pointer; |
| 2937 |
* @param format string <p> |
| 2938 |
* See sprintf for a description of |
| 2939 |
* format. |
| 2940 |
* </p> |
| 2941 |
* @param args mixed[optional] <p> |
| 2942 |
* </p> |
| 2943 |
* @param _ mixed[optional] |
| 2944 |
* @return int the length of the string written. |
| 2945 |
*/ |
| 2946 |
function fprintf ($handle, $format, $args = null, $_ = null) {} |
| 2947 |
|
| 2948 |
/** |
| 2949 |
* Write a formatted string to a stream |
| 2950 |
* @link http://www.php.net/manual/en/function.vfprintf.php |
| 2951 |
* @param handle resource <p> |
| 2952 |
* </p> |
| 2953 |
* @param format string <p> |
| 2954 |
* See sprintf for a description of |
| 2955 |
* format. |
| 2956 |
* </p> |
| 2957 |
* @param args array <p> |
| 2958 |
* </p> |
| 2959 |
* @return int the length of the outputted string. |
| 2960 |
*/ |
| 2961 |
function vfprintf ($handle, $format, array $args) {} |
| 2962 |
|
| 2963 |
/** |
| 2964 |
* Parses input from a string according to a format |
| 2965 |
* @link http://www.php.net/manual/en/function.sscanf.php |
| 2966 |
* @param str string <p> |
| 2967 |
* The input string being parsed. |
| 2968 |
* </p> |
| 2969 |
* @param format string <p> |
| 2970 |
* The interpreted format for str, which is |
| 2971 |
* described in the documentation for sprintf with |
| 2972 |
* following differences: |
| 2973 |
* |
| 2974 |
* |
| 2975 |
* Function is not locale-aware. |
| 2976 |
* |
| 2977 |
* |
| 2978 |
* F, g, G and |
| 2979 |
* b are not supported. |
| 2980 |
* |
| 2981 |
* |
| 2982 |
* D stands for decimal number. |
| 2983 |
* |
| 2984 |
* |
| 2985 |
* i stands for integer with base detection. |
| 2986 |
* |
| 2987 |
* |
| 2988 |
* n stands for number of characters processed so far. |
| 2989 |
* |
| 2990 |
* |
| 2991 |
* </p> |
| 2992 |
* @param _ mixed[optional] |
| 2993 |
* @return mixed If only two parameters were passed to this function, the values parsed will |
| 2994 |
* be returned as an array. Otherwise, if optional parameters are passed, the |
| 2995 |
* function will return the number of assigned values. The optional parameters |
| 2996 |
* must be passed by reference. |
| 2997 |
* </p> |
| 2998 |
* <p> |
| 2999 |
* If there are more substrings expected in the format |
| 3000 |
* than there are available within str, |
| 3001 |
* -1 will be returned. |
| 3002 |
*/ |
| 3003 |
function sscanf ($str, $format, &$_ = null) {} |
| 3004 |
|
| 3005 |
/** |
| 3006 |
* Parses input from a file according to a format |
| 3007 |
* @link http://www.php.net/manual/en/function.fscanf.php |
| 3008 |
* @param handle resource &fs.file.pointer; |
| 3009 |
* @param format string <p> |
| 3010 |
* The specified format as described in the |
| 3011 |
* sprintf documentation. |
| 3012 |
* </p> |
| 3013 |
* @param _ mixed[optional] |
| 3014 |
* @return mixed If only two parameters were passed to this function, the values parsed will be |
| 3015 |
* returned as an array. Otherwise, if optional parameters are passed, the |
| 3016 |
* function will return the number of assigned values. The optional |
| 3017 |
* parameters must be passed by reference. |
| 3018 |
*/ |
| 3019 |
function fscanf ($handle, $format, &$_ = null) {} |
| 3020 |
|
| 3021 |
/** |
| 3022 |
* Parse a URL and return its components |
| 3023 |
* @link http://www.php.net/manual/en/function.parse-url.php |
| 3024 |
* @param url string <p> |
| 3025 |
* The URL to parse. Invalid characters are replaced by |
| 3026 |
* _. |
| 3027 |
* </p> |
| 3028 |
* @param component int[optional] <p> |
| 3029 |
* Specify one of PHP_URL_SCHEME, |
| 3030 |
* PHP_URL_HOST, PHP_URL_PORT, |
| 3031 |
* PHP_URL_USER, PHP_URL_PASS, |
| 3032 |
* PHP_URL_PATH, PHP_URL_QUERY |
| 3033 |
* or PHP_URL_FRAGMENT to retrieve just a specific |
| 3034 |
* URL component as a string (except when |
| 3035 |
* PHP_URL_PORT is given, in which case the return |
| 3036 |
* value will be an integer). |
| 3037 |
* </p> |
| 3038 |
* @return mixed On seriously malformed URLs, parse_url may return |
| 3039 |
* false. |
| 3040 |
* </p> |
| 3041 |
* <p> |
| 3042 |
* If the component parameter is omitted, an |
| 3043 |
* associative array is returned. At least one element will be |
| 3044 |
* present within the array. Potential keys within this array are: |
| 3045 |
* |
| 3046 |
* |
| 3047 |
* |
| 3048 |
* scheme - e.g. http |
| 3049 |
* |
| 3050 |
* |
| 3051 |
* |
| 3052 |
* |
| 3053 |
* host |
| 3054 |
* |
| 3055 |
* |
| 3056 |
* |
| 3057 |
* |
| 3058 |
* port |
| 3059 |
* |
| 3060 |
* |
| 3061 |
* |
| 3062 |
* |
| 3063 |
* user |
| 3064 |
* |
| 3065 |
* |
| 3066 |
* |
| 3067 |
* |
| 3068 |
* pass |
| 3069 |
* |
| 3070 |
* |
| 3071 |
* |
| 3072 |
* |
| 3073 |
* path |
| 3074 |
* |
| 3075 |
* |
| 3076 |
* |
| 3077 |
* |
| 3078 |
* query - after the question mark ? |
| 3079 |
* |
| 3080 |
* |
| 3081 |
* |
| 3082 |
* |
| 3083 |
* fragment - after the hashmark # |
| 3084 |
* |
| 3085 |
* |
| 3086 |
* |
| 3087 |
* </p> |
| 3088 |
* <p> |
| 3089 |
* If the component parameter is specified, |
| 3090 |
* parse_url returns a string (or an |
| 3091 |
* integer, in the case of PHP_URL_PORT) |
| 3092 |
* instead of an array. If the requested component doesn't exist |
| 3093 |
* within the given URL, &null; will be returned. |
| 3094 |
*/ |
| 3095 |
function parse_url ($url, $component = null) {} |
| 3096 |
|
| 3097 |
/** |
| 3098 |
* URL-encodes string |
| 3099 |
* @link http://www.php.net/manual/en/function.urlencode.php |
| 3100 |
* @param str string <p> |
| 3101 |
* The string to be encoded. |
| 3102 |
* </p> |
| 3103 |
* @return string a string in which all non-alphanumeric characters except |
| 3104 |
* -_. have been replaced with a percent |
| 3105 |
* (%) sign followed by two hex digits and spaces encoded |
| 3106 |
* as plus (+) signs. It is encoded the same way that the |
| 3107 |
* posted data from a WWW form is encoded, that is the same way as in |
| 3108 |
* application/x-www-form-urlencoded media type. This |
| 3109 |
* differs from the RFC 3986 encoding (see |
| 3110 |
* rawurlencode) in that for historical reasons, spaces |
| 3111 |
* are encoded as plus (+) signs. |
| 3112 |
*/ |
| 3113 |
function urlencode ($str) {} |
| 3114 |
|
| 3115 |
/** |
| 3116 |
* Decodes URL-encoded string |
| 3117 |
* @link http://www.php.net/manual/en/function.urldecode.php |
| 3118 |
* @param str string <p> |
| 3119 |
* The string to be decoded. |
| 3120 |
* </p> |
| 3121 |
* @return string the decoded string. |
| 3122 |
*/ |
| 3123 |
function urldecode ($str) {} |
| 3124 |
|
| 3125 |
/** |
| 3126 |
* URL-encode according to RFC 3986 |
| 3127 |
* @link http://www.php.net/manual/en/function.rawurlencode.php |
| 3128 |
* @param str string <p> |
| 3129 |
* The URL to be encoded. |
| 3130 |
* </p> |
| 3131 |
* @return string a string in which all non-alphanumeric characters except |
| 3132 |
* -_.~ have been replaced with a percent |
| 3133 |
* (%) sign followed by two hex digits. This is the |
| 3134 |
* encoding described in RFC 3986 for |
| 3135 |
* protecting literal characters from being interpreted as special URL |
| 3136 |
* delimiters, and for protecting URLs from being mangled by transmission |
| 3137 |
* media with character conversions (like some email systems). |
| 3138 |
* |
| 3139 |
* <p> |
| 3140 |
* Prior to PHP 5.3.0, rawurlencode encoded tildes (~) as per |
| 3141 |
* RFC 1738. |
| 3142 |
* </p> |
| 3143 |
*/ |
| 3144 |
function rawurlencode ($str) {} |
| 3145 |
|
| 3146 |
/** |
| 3147 |
* Decode URL-encoded strings |
| 3148 |
* @link http://www.php.net/manual/en/function.rawurldecode.php |
| 3149 |
* @param str string <p> |
| 3150 |
* The URL to be decoded. |
| 3151 |
* </p> |
| 3152 |
* @return string the decoded URL, as a string. |
| 3153 |
*/ |
| 3154 |
function rawurldecode ($str) {} |
| 3155 |
|
| 3156 |
/** |
| 3157 |
* Generate URL-encoded query string |
| 3158 |
* @link http://www.php.net/manual/en/function.http-build-query.php |
| 3159 |
* @param query_data mixed <p> |
| 3160 |
* May be an array or object containing properties. |
| 3161 |
* </p> |
| 3162 |
* <p> |
| 3163 |
* If query_data is an array, it may be a simple |
| 3164 |
* one-dimensional structure, or an array of arrays (which in |
| 3165 |
* turn may contain other arrays). |
| 3166 |
* </p> |
| 3167 |
* <p> |
| 3168 |
* If query_data is an object, then only public |
| 3169 |
* properties will be incorporated into the result. |
| 3170 |
* </p> |
| 3171 |
* @param numeric_prefix string[optional] <p> |
| 3172 |
* If numeric indices are used in the base array and this parameter is |
| 3173 |
* provided, it will be prepended to the numeric index for elements in |
| 3174 |
* the base array only. |
| 3175 |
* </p> |
| 3176 |
* <p> |
| 3177 |
* This is meant to allow for legal variable names when the data is |
| 3178 |
* decoded by PHP or another CGI application later on. |
| 3179 |
* </p> |
| 3180 |
* @param arg_separator string[optional] <p> |
| 3181 |
* arg_separator.output |
| 3182 |
* is used to separate arguments, unless this parameter is specified, |
| 3183 |
* and is then used. |
| 3184 |
* </p> |
| 3185 |
* @param enc_type int[optional] <p> |
| 3186 |
* By default, PHP_QUERY_RFC1738. |
| 3187 |
* </p> |
| 3188 |
* <p> |
| 3189 |
* If enc_type is |
| 3190 |
* PHP_QUERY_RFC1738, then encoding is performed per |
| 3191 |
* RFC 1738 and the |
| 3192 |
* application/x-www-form-urlencoded media type, which |
| 3193 |
* implies that spaces are encoded as plus (+) signs. |
| 3194 |
* </p> |
| 3195 |
* <p> |
| 3196 |
* If enc_type is |
| 3197 |
* PHP_QUERY_RFC3986, then encoding is performed |
| 3198 |
* according to RFC 3986, and |
| 3199 |
* spaces will be percent encoded (%20). |
| 3200 |
* </p> |
| 3201 |
* @return string a URL-encoded string. |
| 3202 |
*/ |
| 3203 |
function http_build_query ($query_data, $numeric_prefix = null, $arg_separator = null, $enc_type = null) {} |
| 3204 |
|
| 3205 |
/** |
| 3206 |
* Returns the target of a symbolic link |
| 3207 |
* @link http://www.php.net/manual/en/function.readlink.php |
| 3208 |
* @param path string <p> |
| 3209 |
* The symbolic link path. |
| 3210 |
* </p> |
| 3211 |
* @return string the contents of the symbolic link path or false on error. |
| 3212 |
*/ |
| 3213 |
function readlink ($path) {} |
| 3214 |
|
| 3215 |
/** |
| 3216 |
* Gets information about a link |
| 3217 |
* @link http://www.php.net/manual/en/function.linkinfo.php |
| 3218 |
* @param path string <p> |
| 3219 |
* Path to the link. |
| 3220 |
* </p> |
| 3221 |
* @return int linkinfo returns the st_dev field |
| 3222 |
* of the Unix C stat structure returned by the lstat |
| 3223 |
* system call. Returns 0 or false in case of error. |
| 3224 |
*/ |
| 3225 |
function linkinfo ($path) {} |
| 3226 |
|
| 3227 |
/** |
| 3228 |
* Creates a symbolic link |
| 3229 |
* @link http://www.php.net/manual/en/function.symlink.php |
| 3230 |
* @param target string <p> |
| 3231 |
* Target of the link. |
| 3232 |
* </p> |
| 3233 |
* @param link string <p> |
| 3234 |
* The link name. |
| 3235 |
* </p> |
| 3236 |
* @return bool Returns true on success, false on failure. |
| 3237 |
*/ |
| 3238 |
function symlink ($target, $link) {} |
| 3239 |
|
| 3240 |
/** |
| 3241 |
* Create a hard link |
| 3242 |
* @link http://www.php.net/manual/en/function.link.php |
| 3243 |
* @param target string <p> |
| 3244 |
* Target of the link. |
| 3245 |
* </p> |
| 3246 |
* @param link string <p> |
| 3247 |
* The link name. |
| 3248 |
* </p> |
| 3249 |
* @return bool Returns true on success, false on failure. |
| 3250 |
*/ |
| 3251 |
function link ($target, $link) {} |
| 3252 |
|
| 3253 |
/** |
| 3254 |
* Deletes a file |
| 3255 |
* @link http://www.php.net/manual/en/function.unlink.php |
| 3256 |
* @param filename string <p> |
| 3257 |
* Path to the file. |
| 3258 |
* </p> |
| 3259 |
* @param context resource[optional] ¬e.context-support; |
| 3260 |
* @return bool Returns true on success, false on failure. |
| 3261 |
*/ |
| 3262 |
function unlink ($filename, $context = null) {} |
| 3263 |
|
| 3264 |
/** |
| 3265 |
* Execute an external program |
| 3266 |
* @link http://www.php.net/manual/en/function.exec.php |
| 3267 |
* @param command string <p> |
| 3268 |
* The command that will be executed. |
| 3269 |
* </p> |
| 3270 |
* @param output array[optional] <p> |
| 3271 |
* If the output argument is present, then the |
| 3272 |
* specified array will be filled with every line of output from the |
| 3273 |
* command. Trailing whitespace, such as \n, is not |
| 3274 |
* included in this array. Note that if the array already contains some |
| 3275 |
* elements, exec will append to the end of the array. |
| 3276 |
* If you do not want the function to append elements, call |
| 3277 |
* unset on the array before passing it to |
| 3278 |
* exec. |
| 3279 |
* </p> |
| 3280 |
* @param return_var int[optional] <p> |
| 3281 |
* If the return_var argument is present |
| 3282 |
* along with the output argument, then the |
| 3283 |
* return status of the executed command will be written to this |
| 3284 |
* variable. |
| 3285 |
* </p> |
| 3286 |
* @return string The last line from the result of the command. If you need to execute a |
| 3287 |
* command and have all the data from the command passed directly back without |
| 3288 |
* any interference, use the passthru function. |
| 3289 |
* </p> |
| 3290 |
* <p> |
| 3291 |
* To get the output of the executed command, be sure to set and use the |
| 3292 |
* output parameter. |
| 3293 |
*/ |
| 3294 |
function exec ($command, array &$output = null, &$return_var = null) {} |
| 3295 |
|
| 3296 |
/** |
| 3297 |
* Execute an external program and display the output |
| 3298 |
* @link http://www.php.net/manual/en/function.system.php |
| 3299 |
* @param command string <p> |
| 3300 |
* The command that will be executed. |
| 3301 |
* </p> |
| 3302 |
* @param return_var int[optional] <p> |
| 3303 |
* If the return_var argument is present, then the |
| 3304 |
* return status of the executed command will be written to this |
| 3305 |
* variable. |
| 3306 |
* </p> |
| 3307 |
* @return string the last line of the command output on success, and false |
| 3308 |
* on failure. |
| 3309 |
*/ |
| 3310 |
function system ($command, &$return_var = null) {} |
| 3311 |
|
| 3312 |
/** |
| 3313 |
* Escape shell metacharacters |
| 3314 |
* @link http://www.php.net/manual/en/function.escapeshellcmd.php |
| 3315 |
* @param command string <p> |
| 3316 |
* The command that will be escaped. |
| 3317 |
* </p> |
| 3318 |
* @return string The escaped string. |
| 3319 |
*/ |
| 3320 |
function escapeshellcmd ($command) {} |
| 3321 |
|
| 3322 |
/** |
| 3323 |
* Escape a string to be used as a shell argument |
| 3324 |
* @link http://www.php.net/manual/en/function.escapeshellarg.php |
| 3325 |
* @param arg string <p> |
| 3326 |
* The argument that will be escaped. |
| 3327 |
* </p> |
| 3328 |
* @return string The escaped string. |
| 3329 |
*/ |
| 3330 |
function escapeshellarg ($arg) {} |
| 3331 |
|
| 3332 |
/** |
| 3333 |
* Execute an external program and display raw output |
| 3334 |
* @link http://www.php.net/manual/en/function.passthru.php |
| 3335 |
* @param command string <p> |
| 3336 |
* The command that will be executed. |
| 3337 |
* </p> |
| 3338 |
* @param return_var int[optional] <p> |
| 3339 |
* If the return_var argument is present, the |
| 3340 |
* return status of the Unix command will be placed here. |
| 3341 |
* </p> |
| 3342 |
* @return void |
| 3343 |
*/ |
| 3344 |
function passthru ($command, &$return_var = null) {} |
| 3345 |
|
| 3346 |
/** |
| 3347 |
* Execute command via shell and return the complete output as a string |
| 3348 |
* @link http://www.php.net/manual/en/function.shell-exec.php |
| 3349 |
* @param cmd string <p> |
| 3350 |
* The command that will be executed. |
| 3351 |
* </p> |
| 3352 |
* @return string The output from the executed command or &null; if an error occurred or the |
| 3353 |
* command produces no output. |
| 3354 |
* </p> |
| 3355 |
* |
| 3356 |
* <p> |
| 3357 |
* This function can return &null; both when an error occurs or the program |
| 3358 |
* produces no output. It is not possible to detect execution failures using |
| 3359 |
* this function. exec should be used when access to the |
| 3360 |
* program exit code is required. |
| 3361 |
*/ |
| 3362 |
function shell_exec ($cmd) {} |
| 3363 |
|
| 3364 |
/** |
| 3365 |
* Execute a command and open file pointers for input/output |
| 3366 |
* @link http://www.php.net/manual/en/function.proc-open.php |
| 3367 |
* @param cmd string <p> |
| 3368 |
* The command to execute |
| 3369 |
* </p> |
| 3370 |
* @param descriptorspec array <p> |
| 3371 |
* An indexed array where the key represents the descriptor number and the |
| 3372 |
* value represents how PHP will pass that descriptor to the child |
| 3373 |
* process. 0 is stdin, 1 is stdout, while 2 is stderr. |
| 3374 |
* </p> |
| 3375 |
* <p> |
| 3376 |
* Each element can be: |
| 3377 |
* |
| 3378 |
* An array describing the pipe to pass to the process. The first |
| 3379 |
* element is the descriptor type and the second element is an option for |
| 3380 |
* the given type. Valid types are pipe (the second |
| 3381 |
* element is either r to pass the read end of the pipe |
| 3382 |
* to the process, or w to pass the write end) and |
| 3383 |
* file (the second element is a filename). |
| 3384 |
* |
| 3385 |
* |
| 3386 |
* A stream resource representing a real file descriptor (e.g. opened file, |
| 3387 |
* a socket, STDIN). |
| 3388 |
* |
| 3389 |
* |
| 3390 |
* </p> |
| 3391 |
* <p> |
| 3392 |
* The file descriptor numbers are not limited to 0, 1 and 2 - you may |
| 3393 |
* specify any valid file descriptor number and it will be passed to the |
| 3394 |
* child process. This allows your script to interoperate with other |
| 3395 |
* scripts that run as "co-processes". In particular, this is useful for |
| 3396 |
* passing passphrases to programs like PGP, GPG and openssl in a more |
| 3397 |
* secure manner. It is also useful for reading status information |
| 3398 |
* provided by those programs on auxiliary file descriptors. |
| 3399 |
* </p> |
| 3400 |
* @param pipes array <p> |
| 3401 |
* Will be set to an indexed array of file pointers that correspond to |
| 3402 |
* PHP's end of any pipes that are created. |
| 3403 |
* </p> |
| 3404 |
* @param cwd string[optional] <p> |
| 3405 |
* The initial working dir for the command. This must be an |
| 3406 |
* absolute directory path, or &null; |
| 3407 |
* if you want to use the default value (the working dir of the current |
| 3408 |
* PHP process) |
| 3409 |
* </p> |
| 3410 |
* @param env array[optional] <p> |
| 3411 |
* An array with the environment variables for the command that will be |
| 3412 |
* run, or &null; to use the same environment as the current PHP process |
| 3413 |
* </p> |
| 3414 |
* @param other_options array[optional] <p> |
| 3415 |
* Allows you to specify additional options. Currently supported options |
| 3416 |
* include: |
| 3417 |
* |
| 3418 |
* |
| 3419 |
* suppress_errors (windows only): suppresses errors |
| 3420 |
* generated by this function when it's set to true |
| 3421 |
* |
| 3422 |
* |
| 3423 |
* bypass_shell (windows only): bypass |
| 3424 |
* cmd.exe shell when set to true |
| 3425 |
* |
| 3426 |
* |
| 3427 |
* </p> |
| 3428 |
* @return resource a resource representing the process, which should be freed using |
| 3429 |
* proc_close when you are finished with it. On failure |
| 3430 |
* returns false. |
| 3431 |
*/ |
| 3432 |
function proc_open ($cmd, array $descriptorspec, array &$pipes, $cwd = null, array $env = null, array $other_options = null) {} |
| 3433 |
|
| 3434 |
/** |
| 3435 |
* Close a process opened by <function>proc_open</function> and return the exit code of that process |
| 3436 |
* @link http://www.php.net/manual/en/function.proc-close.php |
| 3437 |
* @param process resource <p> |
| 3438 |
* The proc_open resource that will |
| 3439 |
* be closed. |
| 3440 |
* </p> |
| 3441 |
* @return int the termination status of the process that was run. In case of |
| 3442 |
* an error then -1 is returned. |
| 3443 |
*/ |
| 3444 |
function proc_close ($process) {} |
| 3445 |
|
| 3446 |
/** |
| 3447 |
* Kills a process opened by proc_open |
| 3448 |
* @link http://www.php.net/manual/en/function.proc-terminate.php |
| 3449 |
* @param process resource <p> |
| 3450 |
* The proc_open resource that will |
| 3451 |
* be closed. |
| 3452 |
* </p> |
| 3453 |
* @param signal int[optional] <p> |
| 3454 |
* This optional parameter is only useful on POSIX |
| 3455 |
* operating systems; you may specify a signal to send to the process |
| 3456 |
* using the kill(2) system call. The default is |
| 3457 |
* SIGTERM. |
| 3458 |
* </p> |
| 3459 |
* @return bool the termination status of the process that was run. |
| 3460 |
*/ |
| 3461 |
function proc_terminate ($process, $signal = null) {} |
| 3462 |
|
| 3463 |
/** |
| 3464 |
* Get information about a process opened by <function>proc_open</function> |
| 3465 |
* @link http://www.php.net/manual/en/function.proc-get-status.php |
| 3466 |
* @param process resource <p> |
| 3467 |
* The proc_open resource that will |
| 3468 |
* be evaluated. |
| 3469 |
* </p> |
| 3470 |
* @return array An array of collected information on success, and false |
| 3471 |
* on failure. The returned array contains the following elements: |
| 3472 |
* </p> |
| 3473 |
* <p> |
| 3474 |
* |
| 3475 |
* |
| 3476 |
* |
| 3477 |
* <tr valign="top"><td>element</td><td>type</td><td>description</td></tr> |
| 3478 |
* |
| 3479 |
* |
| 3480 |
* <tr valign="top"> |
| 3481 |
* <td>command</td> |
| 3482 |
* <td>string</td> |
| 3483 |
* <td> |
| 3484 |
* The command string that was passed to proc_open. |
| 3485 |
* </td> |
| 3486 |
* </tr> |
| 3487 |
* <tr valign="top"> |
| 3488 |
* <td>pid</td> |
| 3489 |
* <td>int</td> |
| 3490 |
* <td>process id</td> |
| 3491 |
* </tr> |
| 3492 |
* <tr valign="top"> |
| 3493 |
* <td>running</td> |
| 3494 |
* <td>bool</td> |
| 3495 |
* <td> |
| 3496 |
* true if the process is still running, false if it has |
| 3497 |
* terminated. |
| 3498 |
* </td> |
| 3499 |
* </tr> |
| 3500 |
* <tr valign="top"> |
| 3501 |
* <td>signaled</td> |
| 3502 |
* <td>bool</td> |
| 3503 |
* <td> |
| 3504 |
* true if the child process has been terminated by |
| 3505 |
* an uncaught signal. Always set to false on Windows. |
| 3506 |
* </td> |
| 3507 |
* </tr> |
| 3508 |
* <tr valign="top"> |
| 3509 |
* <td>stopped</td> |
| 3510 |
* <td>bool</td> |
| 3511 |
* <td> |
| 3512 |
* true if the child process has been stopped by a |
| 3513 |
* signal. Always set to false on Windows. |
| 3514 |
* </td> |
| 3515 |
* </tr> |
| 3516 |
* <tr valign="top"> |
| 3517 |
* <td>exitcode</td> |
| 3518 |
* <td>int</td> |
| 3519 |
* <td> |
| 3520 |
* The exit code returned by the process (which is only |
| 3521 |
* meaningful if running is false). |
| 3522 |
* Only first call of this function return real value, next calls return |
| 3523 |
* -1. |
| 3524 |
* </td> |
| 3525 |
* </tr> |
| 3526 |
* <tr valign="top"> |
| 3527 |
* <td>termsig</td> |
| 3528 |
* <td>int</td> |
| 3529 |
* <td> |
| 3530 |
* The number of the signal that caused the child process to terminate |
| 3531 |
* its execution (only meaningful if signaled is true). |
| 3532 |
* </td> |
| 3533 |
* </tr> |
| 3534 |
* <tr valign="top"> |
| 3535 |
* <td>stopsig</td> |
| 3536 |
* <td>int</td> |
| 3537 |
* <td> |
| 3538 |
* The number of the signal that caused the child process to stop its |
| 3539 |
* execution (only meaningful if stopped is true). |
| 3540 |
* </td> |
| 3541 |
* </tr> |
| 3542 |
*/ |
| 3543 |
function proc_get_status ($process) {} |
| 3544 |
|
| 3545 |
/** |
| 3546 |
* Change the priority of the current process |
| 3547 |
* @link http://www.php.net/manual/en/function.proc-nice.php |
| 3548 |
* @param increment int <p> |
| 3549 |
* The increment value of the priority change. |
| 3550 |
* </p> |
| 3551 |
* @return bool Returns true on success, false on failure. |
| 3552 |
* If an error occurs, like the user lacks permission to change the priority, |
| 3553 |
* an error of level E_WARNING is also generated. |
| 3554 |
*/ |
| 3555 |
function proc_nice ($increment) {} |
| 3556 |
|
| 3557 |
/** |
| 3558 |
* Generate a random integer |
| 3559 |
* @link http://www.php.net/manual/en/function.rand.php |
| 3560 |
* @param min[optional] |
| 3561 |
* @param max[optional] |
| 3562 |
* @return int A pseudo random value between min |
| 3563 |
* (or 0) and max (or getrandmax, inclusive). |
| 3564 |
*/ |
| 3565 |
function rand ($min, $max) {} |
| 3566 |
|
| 3567 |
/** |
| 3568 |
* Seed the random number generator |
| 3569 |
* @link http://www.php.net/manual/en/function.srand.php |
| 3570 |
* @param seed int[optional] <p> |
| 3571 |
* Optional seed value |
| 3572 |
* </p> |
| 3573 |
* @return void |
| 3574 |
*/ |
| 3575 |
function srand ($seed = null) {} |
| 3576 |
|
| 3577 |
/** |
| 3578 |
* Show largest possible random value |
| 3579 |
* @link http://www.php.net/manual/en/function.getrandmax.php |
| 3580 |
* @return int The largest possible random value returned by rand |
| 3581 |
*/ |
| 3582 |
function getrandmax () {} |
| 3583 |
|
| 3584 |
/** |
| 3585 |
* Generate a better random value |
| 3586 |
* @link http://www.php.net/manual/en/function.mt-rand.php |
| 3587 |
* @param min[optional] |
| 3588 |
* @param max[optional] |
| 3589 |
* @return int A random integer value between min (or 0) |
| 3590 |
* and max (or mt_getrandmax, inclusive), |
| 3591 |
* or false if max is less than min. |
| 3592 |
*/ |
| 3593 |
function mt_rand ($min, $max) {} |
| 3594 |
|
| 3595 |
/** |
| 3596 |
* Seed the better random number generator |
| 3597 |
* @link http://www.php.net/manual/en/function.mt-srand.php |
| 3598 |
* @param seed int[optional] <p> |
| 3599 |
* An optional seed value |
| 3600 |
* </p> |
| 3601 |
* @return void |
| 3602 |
*/ |
| 3603 |
function mt_srand ($seed = null) {} |
| 3604 |
|
| 3605 |
/** |
| 3606 |
* Show largest possible random value |
| 3607 |
* @link http://www.php.net/manual/en/function.mt-getrandmax.php |
| 3608 |
* @return int the maximum random value returned by mt_rand |
| 3609 |
*/ |
| 3610 |
function mt_getrandmax () {} |
| 3611 |
|
| 3612 |
/** |
| 3613 |
* Get port number associated with an Internet service and protocol |
| 3614 |
* @link http://www.php.net/manual/en/function.getservbyname.php |
| 3615 |
* @param service string <p> |
| 3616 |
* The Internet service name, as a string. |
| 3617 |
* </p> |
| 3618 |
* @param protocol string <p> |
| 3619 |
* protocol is either "tcp" |
| 3620 |
* or "udp" (in lowercase). |
| 3621 |
* </p> |
| 3622 |
* @return int the port number, or false if service or |
| 3623 |
* protocol is not found. |
| 3624 |
*/ |
| 3625 |
function getservbyname ($service, $protocol) {} |
| 3626 |
|
| 3627 |
/** |
| 3628 |
* Get Internet service which corresponds to port and protocol |
| 3629 |
* @link http://www.php.net/manual/en/function.getservbyport.php |
| 3630 |
* @param port int <p> |
| 3631 |
* The port number. |
| 3632 |
* </p> |
| 3633 |
* @param protocol string <p> |
| 3634 |
* protocol is either "tcp" |
| 3635 |
* or "udp" (in lowercase). |
| 3636 |
* </p> |
| 3637 |
* @return string the Internet service name as a string. |
| 3638 |
*/ |
| 3639 |
function getservbyport ($port, $protocol) {} |
| 3640 |
|
| 3641 |
/** |
| 3642 |
* Get protocol number associated with protocol name |
| 3643 |
* @link http://www.php.net/manual/en/function.getprotobyname.php |
| 3644 |
* @param name string <p> |
| 3645 |
* The protocol name. |
| 3646 |
* </p> |
| 3647 |
* @return int the protocol number, &return.falseforfailure;. |
| 3648 |
*/ |
| 3649 |
function getprotobyname ($name) {} |
| 3650 |
|
| 3651 |
/** |
| 3652 |
* Get protocol name associated with protocol number |
| 3653 |
* @link http://www.php.net/manual/en/function.getprotobynumber.php |
| 3654 |
* @param number int <p> |
| 3655 |
* The protocol number. |
| 3656 |
* </p> |
| 3657 |
* @return string the protocol name as a string, &return.falseforfailure;. |
| 3658 |
*/ |
| 3659 |
function getprotobynumber ($number) {} |
| 3660 |
|
| 3661 |
/** |
| 3662 |
* Gets PHP script owner's UID |
| 3663 |
* @link http://www.php.net/manual/en/function.getmyuid.php |
| 3664 |
* @return int the user ID of the current script, or false on error. |
| 3665 |
*/ |
| 3666 |
function getmyuid () {} |
| 3667 |
|
| 3668 |
/** |
| 3669 |
* Get PHP script owner's GID |
| 3670 |
* @link http://www.php.net/manual/en/function.getmygid.php |
| 3671 |
* @return int the group ID of the current script, or false on error. |
| 3672 |
*/ |
| 3673 |
function getmygid () {} |
| 3674 |
|
| 3675 |
/** |
| 3676 |
* Gets PHP's process ID |
| 3677 |
* @link http://www.php.net/manual/en/function.getmypid.php |
| 3678 |
* @return int the current PHP process ID, or false on error. |
| 3679 |
*/ |
| 3680 |
function getmypid () {} |
| 3681 |
|
| 3682 |
/** |
| 3683 |
* Gets the inode of the current script |
| 3684 |
* @link http://www.php.net/manual/en/function.getmyinode.php |
| 3685 |
* @return int the current script's inode as an integer, or false on error. |
| 3686 |
*/ |
| 3687 |
function getmyinode () {} |
| 3688 |
|
| 3689 |
/** |
| 3690 |
* Gets time of last page modification |
| 3691 |
* @link http://www.php.net/manual/en/function.getlastmod.php |
| 3692 |
* @return int the time of the last modification of the current |
| 3693 |
* page. The value returned is a Unix timestamp, suitable for |
| 3694 |
* feeding to date. Returns false on error. |
| 3695 |
*/ |
| 3696 |
function getlastmod () {} |
| 3697 |
|
| 3698 |
/** |
| 3699 |
* Decodes data encoded with MIME base64 |
| 3700 |
* @link http://www.php.net/manual/en/function.base64-decode.php |
| 3701 |
* @param data string <p> |
| 3702 |
* The encoded data. |
| 3703 |
* </p> |
| 3704 |
* @param strict bool[optional] <p> |
| 3705 |
* Returns false if input contains character from outside the base64 |
| 3706 |
* alphabet. |
| 3707 |
* </p> |
| 3708 |
* @return string the original data&return.falseforfailure;. The returned data may be |
| 3709 |
* binary. |
| 3710 |
*/ |
| 3711 |
function base64_decode ($data, $strict = null) {} |
| 3712 |
|
| 3713 |
/** |
| 3714 |
* Encodes data with MIME base64 |
| 3715 |
* @link http://www.php.net/manual/en/function.base64-encode.php |
| 3716 |
* @param data string <p> |
| 3717 |
* The data to encode. |
| 3718 |
* </p> |
| 3719 |
* @return string The encoded data, as a string&return.falseforfailure;. |
| 3720 |
*/ |
| 3721 |
function base64_encode ($data) {} |
| 3722 |
|
| 3723 |
/** |
| 3724 |
* Creates a password hash |
| 3725 |
* @link http://www.php.net/manual/en/function.password-hash.php |
| 3726 |
* @param password string <p> |
| 3727 |
* &password.parameter.password; |
| 3728 |
* </p> |
| 3729 |
* |
| 3730 |
* <p> |
| 3731 |
* Using the PASSWORD_BCRYPT for the |
| 3732 |
* algo parameter, will result |
| 3733 |
* in the password parameter being truncated to a |
| 3734 |
* maximum length of 72 characters. |
| 3735 |
* </p> |
| 3736 |
* @param algo integer <p> |
| 3737 |
* &password.parameter.algo; |
| 3738 |
* </p> |
| 3739 |
* @param options array[optional] <p> |
| 3740 |
* &password.parameter.options; |
| 3741 |
* </p> |
| 3742 |
* <p> |
| 3743 |
* If omitted, a random salt will be created and the default cost will be |
| 3744 |
* used. |
| 3745 |
* </p> |
| 3746 |
* @return string the hashed password, &return.falseforfailure;. |
| 3747 |
* </p> |
| 3748 |
* <p> |
| 3749 |
* The used algorithm, cost and salt are returned as part of the hash. Therefore, |
| 3750 |
* all information that's needed to verify the hash is included in it. This allows |
| 3751 |
* the password_verify function to verify the hash without |
| 3752 |
* needing separate storage for the salt or algorithm information. |
| 3753 |
*/ |
| 3754 |
function password_hash ($password, $algo, array $options = null) {} |
| 3755 |
|
| 3756 |
/** |
| 3757 |
* Returns information about the given hash |
| 3758 |
* @link http://www.php.net/manual/en/function.password-get-info.php |
| 3759 |
* @param hash string <p> |
| 3760 |
* &password.parameter.hash; |
| 3761 |
* </p> |
| 3762 |
* @return array an associative array with three elements: |
| 3763 |
* |
| 3764 |
* |
| 3765 |
* |
| 3766 |
* algo, which will match a |
| 3767 |
* password algorithm constant |
| 3768 |
* |
| 3769 |
* |
| 3770 |
* |
| 3771 |
* |
| 3772 |
* algoName, which has the human readable name of the |
| 3773 |
* algorithm |
| 3774 |
* |
| 3775 |
* |
| 3776 |
* |
| 3777 |
* |
| 3778 |
* options, which includes the options |
| 3779 |
* provided when calling password_hash |
| 3780 |
*/ |
| 3781 |
function password_get_info ($hash) {} |
| 3782 |
|
| 3783 |
/** |
| 3784 |
* Checks if the given hash matches the given options |
| 3785 |
* @link http://www.php.net/manual/en/function.password-needs-rehash.php |
| 3786 |
* @param hash string <p> |
| 3787 |
* &password.parameter.hash; |
| 3788 |
* </p> |
| 3789 |
* @param algo integer <p> |
| 3790 |
* &password.parameter.algo; |
| 3791 |
* </p> |
| 3792 |
* @param options array[optional] <p> |
| 3793 |
* &password.parameter.options; |
| 3794 |
* </p> |
| 3795 |
* @return boolean true if the hash should be rehashed to match the given |
| 3796 |
* algo and options, or false |
| 3797 |
* otherwise. |
| 3798 |
*/ |
| 3799 |
function password_needs_rehash ($hash, $algo, array $options = null) {} |
| 3800 |
|
| 3801 |
/** |
| 3802 |
* Verifies that a password matches a hash |
| 3803 |
* @link http://www.php.net/manual/en/function.password-verify.php |
| 3804 |
* @param password string <p> |
| 3805 |
* &password.parameter.password; |
| 3806 |
* </p> |
| 3807 |
* @param hash string <p> |
| 3808 |
* &password.parameter.hash; |
| 3809 |
* </p> |
| 3810 |
* @return boolean true if the password and hash match, or false otherwise. |
| 3811 |
*/ |
| 3812 |
function password_verify ($password, $hash) {} |
| 3813 |
|
| 3814 |
/** |
| 3815 |
* Uuencode a string |
| 3816 |
* @link http://www.php.net/manual/en/function.convert-uuencode.php |
| 3817 |
* @param data string <p> |
| 3818 |
* The data to be encoded &return.falseforfailure;. |
| 3819 |
* </p> |
| 3820 |
* @return string the uuencoded data. |
| 3821 |
*/ |
| 3822 |
function convert_uuencode ($data) {} |
| 3823 |
|
| 3824 |
/** |
| 3825 |
* Decode a uuencoded string |
| 3826 |
* @link http://www.php.net/manual/en/function.convert-uudecode.php |
| 3827 |
* @param data string <p> |
| 3828 |
* The uuencoded data. |
| 3829 |
* </p> |
| 3830 |
* @return string the decoded data as a string &return.falseforfailure;. |
| 3831 |
*/ |
| 3832 |
function convert_uudecode ($data) {} |
| 3833 |
|
| 3834 |
/** |
| 3835 |
* Absolute value |
| 3836 |
* @link http://www.php.net/manual/en/function.abs.php |
| 3837 |
* @param number mixed <p> |
| 3838 |
* The numeric value to process |
| 3839 |
* </p> |
| 3840 |
* @return number The absolute value of number. If the |
| 3841 |
* argument number is |
| 3842 |
* of type float, the return type is also float, |
| 3843 |
* otherwise it is integer (as float usually has a |
| 3844 |
* bigger value range than integer). |
| 3845 |
*/ |
| 3846 |
function abs ($number) {} |
| 3847 |
|
| 3848 |
/** |
| 3849 |
* Round fractions up |
| 3850 |
* @link http://www.php.net/manual/en/function.ceil.php |
| 3851 |
* @param value float <p> |
| 3852 |
* The value to round |
| 3853 |
* </p> |
| 3854 |
* @return float value rounded up to the next highest |
| 3855 |
* integer. |
| 3856 |
* The return value of ceil is still of type |
| 3857 |
* float as the value range of float is |
| 3858 |
* usually bigger than that of integer. |
| 3859 |
*/ |
| 3860 |
function ceil ($value) {} |
| 3861 |
|
| 3862 |
/** |
| 3863 |
* Round fractions down |
| 3864 |
* @link http://www.php.net/manual/en/function.floor.php |
| 3865 |
* @param value float <p> |
| 3866 |
* The numeric value to round |
| 3867 |
* </p> |
| 3868 |
* @return float value rounded to the next lowest integer. |
| 3869 |
* The return value of floor is still of type |
| 3870 |
* float because the value range of float is |
| 3871 |
* usually bigger than that of integer. |
| 3872 |
*/ |
| 3873 |
function floor ($value) {} |
| 3874 |
|
| 3875 |
/** |
| 3876 |
* Rounds a float |
| 3877 |
* @link http://www.php.net/manual/en/function.round.php |
| 3878 |
* @param val float <p> |
| 3879 |
* The value to round |
| 3880 |
* </p> |
| 3881 |
* @param precision int[optional] <p> |
| 3882 |
* The optional number of decimal digits to round to. |
| 3883 |
* </p> |
| 3884 |
* @param mode int[optional] <p> |
| 3885 |
* Use one of the following constants to specify the mode in which rounding occurs. |
| 3886 |
* |
| 3887 |
* |
| 3888 |
* |
| 3889 |
* <tr valign="top"> |
| 3890 |
* <td>Constant</td> |
| 3891 |
* <td>&Description;</td> |
| 3892 |
* </tr> |
| 3893 |
* |
| 3894 |
* |
| 3895 |
* <tr valign="top"> |
| 3896 |
* <td>PHP_ROUND_HALF_UP</td> |
| 3897 |
* <td> |
| 3898 |
* Round val up to precision decimal places |
| 3899 |
* away from zero, when it is half way there. Making 1.5 into 2 and -1.5 into -2. |
| 3900 |
* </td> |
| 3901 |
* </tr> |
| 3902 |
* <tr valign="top"> |
| 3903 |
* <td>PHP_ROUND_HALF_DOWN</td> |
| 3904 |
* <td> |
| 3905 |
* Round val down to precision decimal places |
| 3906 |
* towards zero, when it is half way there. Making 1.5 into 1 and -1.5 into -1. |
| 3907 |
* </td> |
| 3908 |
* </tr> |
| 3909 |
* <tr valign="top"> |
| 3910 |
* <td>PHP_ROUND_HALF_EVEN</td> |
| 3911 |
* <td> |
| 3912 |
* Round val to precision decimal places |
| 3913 |
* towards the next even value. |
| 3914 |
* </td> |
| 3915 |
* </tr> |
| 3916 |
* <tr valign="top"> |
| 3917 |
* <td>PHP_ROUND_HALF_ODD</td> |
| 3918 |
* <td> |
| 3919 |
* Round val to precision decimal places |
| 3920 |
* towards the next odd value. |
| 3921 |
* </td> |
| 3922 |
* </tr> |
| 3923 |
* |
| 3924 |
* |
| 3925 |
* |
| 3926 |
* </p> |
| 3927 |
* @return float The rounded value |
| 3928 |
*/ |
| 3929 |
function round ($val, $precision = null, $mode = null) {} |
| 3930 |
|
| 3931 |
/** |
| 3932 |
* Sine |
| 3933 |
* @link http://www.php.net/manual/en/function.sin.php |
| 3934 |
* @param arg float <p> |
| 3935 |
* A value in radians |
| 3936 |
* </p> |
| 3937 |
* @return float The sine of arg |
| 3938 |
*/ |
| 3939 |
function sin ($arg) {} |
| 3940 |
|
| 3941 |
/** |
| 3942 |
* Cosine |
| 3943 |
* @link http://www.php.net/manual/en/function.cos.php |
| 3944 |
* @param arg float <p> |
| 3945 |
* An angle in radians |
| 3946 |
* </p> |
| 3947 |
* @return float The cosine of arg |
| 3948 |
*/ |
| 3949 |
function cos ($arg) {} |
| 3950 |
|
| 3951 |
/** |
| 3952 |
* Tangent |
| 3953 |
* @link http://www.php.net/manual/en/function.tan.php |
| 3954 |
* @param arg float <p> |
| 3955 |
* The argument to process in radians |
| 3956 |
* </p> |
| 3957 |
* @return float The tangent of arg |
| 3958 |
*/ |
| 3959 |
function tan ($arg) {} |
| 3960 |
|
| 3961 |
/** |
| 3962 |
* Arc sine |
| 3963 |
* @link http://www.php.net/manual/en/function.asin.php |
| 3964 |
* @param arg float <p> |
| 3965 |
* The argument to process |
| 3966 |
* </p> |
| 3967 |
* @return float The arc sine of arg in radians |
| 3968 |
*/ |
| 3969 |
function asin ($arg) {} |
| 3970 |
|
| 3971 |
/** |
| 3972 |
* Arc cosine |
| 3973 |
* @link http://www.php.net/manual/en/function.acos.php |
| 3974 |
* @param arg float <p> |
| 3975 |
* The argument to process |
| 3976 |
* </p> |
| 3977 |
* @return float The arc cosine of arg in radians. |
| 3978 |
*/ |
| 3979 |
function acos ($arg) {} |
| 3980 |
|
| 3981 |
/** |
| 3982 |
* Arc tangent |
| 3983 |
* @link http://www.php.net/manual/en/function.atan.php |
| 3984 |
* @param arg float <p> |
| 3985 |
* The argument to process |
| 3986 |
* </p> |
| 3987 |
* @return float The arc tangent of arg in radians. |
| 3988 |
*/ |
| 3989 |
function atan ($arg) {} |
| 3990 |
|
| 3991 |
/** |
| 3992 |
* Inverse hyperbolic tangent |
| 3993 |
* @link http://www.php.net/manual/en/function.atanh.php |
| 3994 |
* @param arg float <p> |
| 3995 |
* The argument to process |
| 3996 |
* </p> |
| 3997 |
* @return float Inverse hyperbolic tangent of arg |
| 3998 |
*/ |
| 3999 |
function atanh ($arg) {} |
| 4000 |
|
| 4001 |
/** |
| 4002 |
* Arc tangent of two variables |
| 4003 |
* @link http://www.php.net/manual/en/function.atan2.php |
| 4004 |
* @param y float <p> |
| 4005 |
* Dividend parameter |
| 4006 |
* </p> |
| 4007 |
* @param x float <p> |
| 4008 |
* Divisor parameter |
| 4009 |
* </p> |
| 4010 |
* @return float The arc tangent of y/x |
| 4011 |
* in radians. |
| 4012 |
*/ |
| 4013 |
function atan2 ($y, $x) {} |
| 4014 |
|
| 4015 |
/** |
| 4016 |
* Hyperbolic sine |
| 4017 |
* @link http://www.php.net/manual/en/function.sinh.php |
| 4018 |
* @param arg float <p> |
| 4019 |
* The argument to process |
| 4020 |
* </p> |
| 4021 |
* @return float The hyperbolic sine of arg |
| 4022 |
*/ |
| 4023 |
function sinh ($arg) {} |
| 4024 |
|
| 4025 |
/** |
| 4026 |
* Hyperbolic cosine |
| 4027 |
* @link http://www.php.net/manual/en/function.cosh.php |
| 4028 |
* @param arg float <p> |
| 4029 |
* The argument to process |
| 4030 |
* </p> |
| 4031 |
* @return float The hyperbolic cosine of arg |
| 4032 |
*/ |
| 4033 |
function cosh ($arg) {} |
| 4034 |
|
| 4035 |
/** |
| 4036 |
* Hyperbolic tangent |
| 4037 |
* @link http://www.php.net/manual/en/function.tanh.php |
| 4038 |
* @param arg float <p> |
| 4039 |
* The argument to process |
| 4040 |
* </p> |
| 4041 |
* @return float The hyperbolic tangent of arg |
| 4042 |
*/ |
| 4043 |
function tanh ($arg) {} |
| 4044 |
|
| 4045 |
/** |
| 4046 |
* Inverse hyperbolic sine |
| 4047 |
* @link http://www.php.net/manual/en/function.asinh.php |
| 4048 |
* @param arg float <p> |
| 4049 |
* The argument to process |
| 4050 |
* </p> |
| 4051 |
* @return float The inverse hyperbolic sine of arg |
| 4052 |
*/ |
| 4053 |
function asinh ($arg) {} |
| 4054 |
|
| 4055 |
/** |
| 4056 |
* Inverse hyperbolic cosine |
| 4057 |
* @link http://www.php.net/manual/en/function.acosh.php |
| 4058 |
* @param arg float <p> |
| 4059 |
* The value to process |
| 4060 |
* </p> |
| 4061 |
* @return float The inverse hyperbolic cosine of arg |
| 4062 |
*/ |
| 4063 |
function acosh ($arg) {} |
| 4064 |
|
| 4065 |
/** |
| 4066 |
* Returns exp(number) - 1, computed in a way that is accurate even |
| 4067 |
when the value of number is close to zero |
| 4068 |
* @link http://www.php.net/manual/en/function.expm1.php |
| 4069 |
* @param arg float <p> |
| 4070 |
* The argument to process |
| 4071 |
* </p> |
| 4072 |
* @return float 'e' to the power of arg minus one |
| 4073 |
*/ |
| 4074 |
function expm1 ($arg) {} |
| 4075 |
|
| 4076 |
/** |
| 4077 |
* Returns log(1 + number), computed in a way that is accurate even when |
| 4078 |
the value of number is close to zero |
| 4079 |
* @link http://www.php.net/manual/en/function.log1p.php |
| 4080 |
* @param number float <p> |
| 4081 |
* The argument to process |
| 4082 |
* </p> |
| 4083 |
* @return float log(1 + number) |
| 4084 |
*/ |
| 4085 |
function log1p ($number) {} |
| 4086 |
|
| 4087 |
/** |
| 4088 |
* Get value of pi |
| 4089 |
* @link http://www.php.net/manual/en/function.pi.php |
| 4090 |
* @return float The value of pi as float. |
| 4091 |
*/ |
| 4092 |
function pi () {} |
| 4093 |
|
| 4094 |
/** |
| 4095 |
* Finds whether a value is a legal finite number |
| 4096 |
* @link http://www.php.net/manual/en/function.is-finite.php |
| 4097 |
* @param val float <p> |
| 4098 |
* The value to check |
| 4099 |
* </p> |
| 4100 |
* @return bool true if val is a legal finite |
| 4101 |
* number within the allowed range for a PHP float on this platform, |
| 4102 |
* else false. |
| 4103 |
*/ |
| 4104 |
function is_finite ($val) {} |
| 4105 |
|
| 4106 |
/** |
| 4107 |
* Finds whether a value is not a number |
| 4108 |
* @link http://www.php.net/manual/en/function.is-nan.php |
| 4109 |
* @param val float <p> |
| 4110 |
* The value to check |
| 4111 |
* </p> |
| 4112 |
* @return bool true if val is 'not a number', |
| 4113 |
* else false. |
| 4114 |
*/ |
| 4115 |
function is_nan ($val) {} |
| 4116 |
|
| 4117 |
/** |
| 4118 |
* Finds whether a value is infinite |
| 4119 |
* @link http://www.php.net/manual/en/function.is-infinite.php |
| 4120 |
* @param val float <p> |
| 4121 |
* The value to check |
| 4122 |
* </p> |
| 4123 |
* @return bool true if val is infinite, else false. |
| 4124 |
*/ |
| 4125 |
function is_infinite ($val) {} |
| 4126 |
|
| 4127 |
/** |
| 4128 |
* Exponential expression |
| 4129 |
* @link http://www.php.net/manual/en/function.pow.php |
| 4130 |
* @param base number <p> |
| 4131 |
* The base to use |
| 4132 |
* </p> |
| 4133 |
* @param exp number <p> |
| 4134 |
* The exponent |
| 4135 |
* </p> |
| 4136 |
* @return number base raised to the power of exp. |
| 4137 |
* If both arguments are non-negative integers and the result can be represented |
| 4138 |
* as an integer, the result will be returned with integer type, |
| 4139 |
* otherwise it will be returned as a float. |
| 4140 |
*/ |
| 4141 |
function pow ($base, $exp) {} |
| 4142 |
|
| 4143 |
/** |
| 4144 |
* Calculates the exponent of <constant>e</constant> |
| 4145 |
* @link http://www.php.net/manual/en/function.exp.php |
| 4146 |
* @param arg float <p> |
| 4147 |
* The argument to process |
| 4148 |
* </p> |
| 4149 |
* @return float 'e' raised to the power of arg |
| 4150 |
*/ |
| 4151 |
function exp ($arg) {} |
| 4152 |
|
| 4153 |
/** |
| 4154 |
* Natural logarithm |
| 4155 |
* @link http://www.php.net/manual/en/function.log.php |
| 4156 |
* @param arg float <p> |
| 4157 |
* The value to calculate the logarithm for |
| 4158 |
* </p> |
| 4159 |
* @param base float[optional] <p> |
| 4160 |
* The optional logarithmic base to use |
| 4161 |
* (defaults to 'e' and so to the natural logarithm). |
| 4162 |
* </p> |
| 4163 |
* @return float The logarithm of arg to |
| 4164 |
* base, if given, or the |
| 4165 |
* natural logarithm. |
| 4166 |
*/ |
| 4167 |
function log ($arg, $base = null) {} |
| 4168 |
|
| 4169 |
/** |
| 4170 |
* Base-10 logarithm |
| 4171 |
* @link http://www.php.net/manual/en/function.log10.php |
| 4172 |
* @param arg float <p> |
| 4173 |
* The argument to process |
| 4174 |
* </p> |
| 4175 |
* @return float The base-10 logarithm of arg |
| 4176 |
*/ |
| 4177 |
function log10 ($arg) {} |
| 4178 |
|
| 4179 |
/** |
| 4180 |
* Square root |
| 4181 |
* @link http://www.php.net/manual/en/function.sqrt.php |
| 4182 |
* @param arg float <p> |
| 4183 |
* The argument to process |
| 4184 |
* </p> |
| 4185 |
* @return float The square root of arg |
| 4186 |
* or the special value NAN for negative numbers. |
| 4187 |
*/ |
| 4188 |
function sqrt ($arg) {} |
| 4189 |
|
| 4190 |
/** |
| 4191 |
* Calculate the length of the hypotenuse of a right-angle triangle |
| 4192 |
* @link http://www.php.net/manual/en/function.hypot.php |
| 4193 |
* @param x float <p> |
| 4194 |
* Length of first side |
| 4195 |
* </p> |
| 4196 |
* @param y float <p> |
| 4197 |
* Length of second side |
| 4198 |
* </p> |
| 4199 |
* @return float Calculated length of the hypotenuse |
| 4200 |
*/ |
| 4201 |
function hypot ($x, $y) {} |
| 4202 |
|
| 4203 |
/** |
| 4204 |
* Converts the number in degrees to the radian equivalent |
| 4205 |
* @link http://www.php.net/manual/en/function.deg2rad.php |
| 4206 |
* @param number float <p> |
| 4207 |
* Angular value in degrees |
| 4208 |
* </p> |
| 4209 |
* @return float The radian equivalent of number |
| 4210 |
*/ |
| 4211 |
function deg2rad ($number) {} |
| 4212 |
|
| 4213 |
/** |
| 4214 |
* Converts the radian number to the equivalent number in degrees |
| 4215 |
* @link http://www.php.net/manual/en/function.rad2deg.php |
| 4216 |
* @param number float <p> |
| 4217 |
* A radian value |
| 4218 |
* </p> |
| 4219 |
* @return float The equivalent of number in degrees |
| 4220 |
*/ |
| 4221 |
function rad2deg ($number) {} |
| 4222 |
|
| 4223 |
/** |
| 4224 |
* Binary to decimal |
| 4225 |
* @link http://www.php.net/manual/en/function.bindec.php |
| 4226 |
* @param binary_string string <p> |
| 4227 |
* The binary string to convert |
| 4228 |
* </p> |
| 4229 |
* @return number The decimal value of binary_string |
| 4230 |
*/ |
| 4231 |
function bindec ($binary_string) {} |
| 4232 |
|
| 4233 |
/** |
| 4234 |
* Hexadecimal to decimal |
| 4235 |
* @link http://www.php.net/manual/en/function.hexdec.php |
| 4236 |
* @param hex_string string <p> |
| 4237 |
* The hexadecimal string to convert |
| 4238 |
* </p> |
| 4239 |
* @return number The decimal representation of hex_string |
| 4240 |
*/ |
| 4241 |
function hexdec ($hex_string) {} |
| 4242 |
|
| 4243 |
/** |
| 4244 |
* Octal to decimal |
| 4245 |
* @link http://www.php.net/manual/en/function.octdec.php |
| 4246 |
* @param octal_string string <p> |
| 4247 |
* The octal string to convert |
| 4248 |
* </p> |
| 4249 |
* @return number The decimal representation of octal_string |
| 4250 |
*/ |
| 4251 |
function octdec ($octal_string) {} |
| 4252 |
|
| 4253 |
/** |
| 4254 |
* Decimal to binary |
| 4255 |
* @link http://www.php.net/manual/en/function.decbin.php |
| 4256 |
* @param number int <p> |
| 4257 |
* Decimal value to convert |
| 4258 |
* </p> |
| 4259 |
* <table> |
| 4260 |
* Range of inputs on 32-bit machines |
| 4261 |
* |
| 4262 |
* |
| 4263 |
* |
| 4264 |
* |
| 4265 |
* |
| 4266 |
* <tr valign="top"> |
| 4267 |
* <td>positive number</td> |
| 4268 |
* <td>negative number</td> |
| 4269 |
* <td>return value</td> |
| 4270 |
* </tr> |
| 4271 |
* |
| 4272 |
* |
| 4273 |
* <tr valign="top"> |
| 4274 |
* <td>0</td> |
| 4275 |
* <td></td> |
| 4276 |
* <td>0</td> |
| 4277 |
* </tr> |
| 4278 |
* <tr valign="top"> |
| 4279 |
* <td>1</td> |
| 4280 |
* <td></td> |
| 4281 |
* <td>1</td> |
| 4282 |
* </tr> |
| 4283 |
* <tr valign="top"> |
| 4284 |
* <td>2</td> |
| 4285 |
* <td></td> |
| 4286 |
* <td>10</td> |
| 4287 |
* </tr> |
| 4288 |
* <tr valign="top"> |
| 4289 |
* ... normal progression ...</td> |
| 4290 |
* </tr> |
| 4291 |
* <tr valign="top"> |
| 4292 |
* <td>2147483646</td> |
| 4293 |
* <td></td> |
| 4294 |
* <td>1111111111111111111111111111110</td> |
| 4295 |
* </tr> |
| 4296 |
* <tr valign="top"> |
| 4297 |
* <td>2147483647 (largest signed integer)</td> |
| 4298 |
* <td></td> |
| 4299 |
* <td>1111111111111111111111111111111 (31 1's)</td> |
| 4300 |
* </tr> |
| 4301 |
* <tr valign="top"> |
| 4302 |
* <td>2147483648</td> |
| 4303 |
* <td>-2147483648</td> |
| 4304 |
* <td>10000000000000000000000000000000</td> |
| 4305 |
* </tr> |
| 4306 |
* <tr valign="top"> |
| 4307 |
* ... normal progression ...</td> |
| 4308 |
* </tr> |
| 4309 |
* <tr valign="top"> |
| 4310 |
* <td>4294967294</td> |
| 4311 |
* <td>-2</td> |
| 4312 |
* <td>11111111111111111111111111111110</td> |
| 4313 |
* </tr> |
| 4314 |
* <tr valign="top"> |
| 4315 |
* <td>4294967295 (largest unsigned integer)</td> |
| 4316 |
* <td>-1</td> |
| 4317 |
* <td>11111111111111111111111111111111 (32 1's)</td> |
| 4318 |
* </tr> |
| 4319 |
* |
| 4320 |
* |
| 4321 |
* </table> |
| 4322 |
* <table> |
| 4323 |
* Range of inputs on 64-bit machines |
| 4324 |
* |
| 4325 |
* |
| 4326 |
* |
| 4327 |
* |
| 4328 |
* |
| 4329 |
* <tr valign="top"> |
| 4330 |
* <td>positive number</td> |
| 4331 |
* <td>negative number</td> |
| 4332 |
* <td>return value</td> |
| 4333 |
* </tr> |
| 4334 |
* |
| 4335 |
* |
| 4336 |
* <tr valign="top"> |
| 4337 |
* <td>0</td> |
| 4338 |
* <td></td> |
| 4339 |
* <td>0</td> |
| 4340 |
* </tr> |
| 4341 |
* <tr valign="top"> |
| 4342 |
* <td>1</td> |
| 4343 |
* <td></td> |
| 4344 |
* <td>1</td> |
| 4345 |
* </tr> |
| 4346 |
* <tr valign="top"> |
| 4347 |
* <td>2</td> |
| 4348 |
* <td></td> |
| 4349 |
* <td>10</td> |
| 4350 |
* </tr> |
| 4351 |
* <tr valign="top"> |
| 4352 |
* ... normal progression ...</td> |
| 4353 |
* </tr> |
| 4354 |
* <tr valign="top"> |
| 4355 |
* <td>9223372036854775806</td> |
| 4356 |
* <td></td> |
| 4357 |
* <td>111111111111111111111111111111111111111111111111111111111111110</td> |
| 4358 |
* </tr> |
| 4359 |
* <tr valign="top"> |
| 4360 |
* <td>9223372036854775807 (largest signed integer)</td> |
| 4361 |
* <td></td> |
| 4362 |
* <td>111111111111111111111111111111111111111111111111111111111111111 (63 1's)</td> |
| 4363 |
* </tr> |
| 4364 |
* <tr valign="top"> |
| 4365 |
* <td></td> |
| 4366 |
* <td>-9223372036854775808</td> |
| 4367 |
* <td>1000000000000000000000000000000000000000000000000000000000000000</td> |
| 4368 |
* </tr> |
| 4369 |
* <tr valign="top"> |
| 4370 |
* ... normal progression ...</td> |
| 4371 |
* </tr> |
| 4372 |
* <tr valign="top"> |
| 4373 |
* <td></td> |
| 4374 |
* <td>-2</td> |
| 4375 |
* <td>1111111111111111111111111111111111111111111111111111111111111110</td> |
| 4376 |
* </tr> |
| 4377 |
* <tr valign="top"> |
| 4378 |
* <td></td> |
| 4379 |
* <td>-1</td> |
| 4380 |
* <td>1111111111111111111111111111111111111111111111111111111111111111 (64 1's)</td> |
| 4381 |
* </tr> |
| 4382 |
* |
| 4383 |
* |
| 4384 |
* </table> |
| 4385 |
* @return string Binary string representation of number |
| 4386 |
*/ |
| 4387 |
function decbin ($number) {} |
| 4388 |
|
| 4389 |
/** |
| 4390 |
* Decimal to octal |
| 4391 |
* @link http://www.php.net/manual/en/function.decoct.php |
| 4392 |
* @param number int <p> |
| 4393 |
* Decimal value to convert |
| 4394 |
* </p> |
| 4395 |
* @return string Octal string representation of number |
| 4396 |
*/ |
| 4397 |
function decoct ($number) {} |
| 4398 |
|
| 4399 |
/** |
| 4400 |
* Decimal to hexadecimal |
| 4401 |
* @link http://www.php.net/manual/en/function.dechex.php |
| 4402 |
* @param number int <p> |
| 4403 |
* The decimal value to convert. |
| 4404 |
* </p> |
| 4405 |
* <p> |
| 4406 |
* As PHP's integer type is signed, but |
| 4407 |
* dechex deals with unsigned integers, negative |
| 4408 |
* integers will be treated as though they were unsigned. |
| 4409 |
* </p> |
| 4410 |
* @return string Hexadecimal string representation of number. |
| 4411 |
*/ |
| 4412 |
function dechex ($number) {} |
| 4413 |
|
| 4414 |
/** |
| 4415 |
* Convert a number between arbitrary bases |
| 4416 |
* @link http://www.php.net/manual/en/function.base-convert.php |
| 4417 |
* @param number string <p> |
| 4418 |
* The number to convert |
| 4419 |
* </p> |
| 4420 |
* @param frombase int <p> |
| 4421 |
* The base number is in |
| 4422 |
* </p> |
| 4423 |
* @param tobase int <p> |
| 4424 |
* The base to convert number to |
| 4425 |
* </p> |
| 4426 |
* @return string number converted to base tobase |
| 4427 |
*/ |
| 4428 |
function base_convert ($number, $frombase, $tobase) {} |
| 4429 |
|
| 4430 |
/** |
| 4431 |
* Format a number with grouped thousands |
| 4432 |
* @link http://www.php.net/manual/en/function.number-format.php |
| 4433 |
* @param number float <p> |
| 4434 |
* The number being formatted. |
| 4435 |
* </p> |
| 4436 |
* @param decimals int[optional] <p> |
| 4437 |
* Sets the number of decimal points. |
| 4438 |
* </p> |
| 4439 |
* @return string A formatted version of number. |
| 4440 |
*/ |
| 4441 |
function number_format ($number, $decimals = null) {} |
| 4442 |
|
| 4443 |
/** |
| 4444 |
* Returns the floating point remainder (modulo) of the division |
| 4445 |
of the arguments |
| 4446 |
* @link http://www.php.net/manual/en/function.fmod.php |
| 4447 |
* @param x float <p> |
| 4448 |
* The dividend |
| 4449 |
* </p> |
| 4450 |
* @param y float <p> |
| 4451 |
* The divisor |
| 4452 |
* </p> |
| 4453 |
* @return float The floating point remainder of |
| 4454 |
* x/y |
| 4455 |
*/ |
| 4456 |
function fmod ($x, $y) {} |
| 4457 |
|
| 4458 |
/** |
| 4459 |
* Converts a packed internet address to a human readable representation |
| 4460 |
* @link http://www.php.net/manual/en/function.inet-ntop.php |
| 4461 |
* @param in_addr string <p> |
| 4462 |
* A 32bit IPv4, or 128bit IPv6 address. |
| 4463 |
* </p> |
| 4464 |
* @return string a string representation of the address&return.falseforfailure;. |
| 4465 |
*/ |
| 4466 |
function inet_ntop ($in_addr) {} |
| 4467 |
|
| 4468 |
/** |
| 4469 |
* Converts a human readable IP address to its packed in_addr representation |
| 4470 |
* @link http://www.php.net/manual/en/function.inet-pton.php |
| 4471 |
* @param address string <p> |
| 4472 |
* A human readable IPv4 or IPv6 address. |
| 4473 |
* </p> |
| 4474 |
* @return string the in_addr representation of the given |
| 4475 |
* address, or false if a syntactically invalid |
| 4476 |
* address is given (for example, an IPv4 address |
| 4477 |
* without dots or an IPv6 address without colons). |
| 4478 |
*/ |
| 4479 |
function inet_pton ($address) {} |
| 4480 |
|
| 4481 |
/** |
| 4482 |
* Converts a string containing an (IPv4) Internet Protocol dotted address into a proper address |
| 4483 |
* @link http://www.php.net/manual/en/function.ip2long.php |
| 4484 |
* @param ip_address string <p> |
| 4485 |
* A standard format address. |
| 4486 |
* </p> |
| 4487 |
* @return int the IPv4 address or false if ip_address |
| 4488 |
* is invalid. |
| 4489 |
*/ |
| 4490 |
function ip2long ($ip_address) {} |
| 4491 |
|
| 4492 |
/** |
| 4493 |
* Converts an (IPv4) Internet network address into a string in Internet standard dotted format |
| 4494 |
* @link http://www.php.net/manual/en/function.long2ip.php |
| 4495 |
* @param proper_address string <p> |
| 4496 |
* A proper address representation. |
| 4497 |
* </p> |
| 4498 |
* @return string the Internet IP address as a string. |
| 4499 |
*/ |
| 4500 |
function long2ip ($proper_address) {} |
| 4501 |
|
| 4502 |
/** |
| 4503 |
* Gets the value of an environment variable |
| 4504 |
* @link http://www.php.net/manual/en/function.getenv.php |
| 4505 |
* @param varname string <p> |
| 4506 |
* The variable name. |
| 4507 |
* </p> |
| 4508 |
* @return string the value of the environment variable |
| 4509 |
* varname, or false if the environment |
| 4510 |
* variable varname does not exist. |
| 4511 |
*/ |
| 4512 |
function getenv ($varname) {} |
| 4513 |
|
| 4514 |
/** |
| 4515 |
* Sets the value of an environment variable |
| 4516 |
* @link http://www.php.net/manual/en/function.putenv.php |
| 4517 |
* @param setting string <p> |
| 4518 |
* The setting, like "FOO=BAR" |
| 4519 |
* </p> |
| 4520 |
* @return bool Returns true on success, false on failure. |
| 4521 |
*/ |
| 4522 |
function putenv ($setting) {} |
| 4523 |
|
| 4524 |
/** |
| 4525 |
* Gets options from the command line argument list |
| 4526 |
* @link http://www.php.net/manual/en/function.getopt.php |
| 4527 |
* @param options string Each character in this string will be used as option characters and |
| 4528 |
* matched against options passed to the script starting with a single |
| 4529 |
* hyphen (-). |
| 4530 |
* |
| 4531 |
* |
| 4532 |
* For example, an option string "x" recognizes an |
| 4533 |
* option -x. |
| 4534 |
* |
| 4535 |
* |
| 4536 |
* Only a-z, A-Z and 0-9 are allowed. |
| 4537 |
* @param longopts array[optional] An array of options. Each element in this array will be used as option |
| 4538 |
* strings and matched against options passed to the script starting with |
| 4539 |
* two hyphens (--). |
| 4540 |
* |
| 4541 |
* |
| 4542 |
* For example, an longopts element "opt" recognizes an |
| 4543 |
* option --opt. |
| 4544 |
* @return array This function will return an array of option / argument pairs or false on |
| 4545 |
* failure. |
| 4546 |
* </p> |
| 4547 |
* |
| 4548 |
* <p> |
| 4549 |
* The parsing of options will end at the first non-option found, anything |
| 4550 |
* that follows is discarded. |
| 4551 |
*/ |
| 4552 |
function getopt ($options, array $longopts = null) {} |
| 4553 |
|
| 4554 |
/** |
| 4555 |
* Gets system load average |
| 4556 |
* @link http://www.php.net/manual/en/function.sys-getloadavg.php |
| 4557 |
* @return array an array with three samples (last 1, 5 and 15 |
| 4558 |
* minutes). |
| 4559 |
*/ |
| 4560 |
function sys_getloadavg () {} |
| 4561 |
|
| 4562 |
/** |
| 4563 |
* Return current Unix timestamp with microseconds |
| 4564 |
* @link http://www.php.net/manual/en/function.microtime.php |
| 4565 |
* @param get_as_float bool[optional] <p> |
| 4566 |
* If used and set to true, microtime will return a |
| 4567 |
* float instead of a string, as described in |
| 4568 |
* the return values section below. |
| 4569 |
* </p> |
| 4570 |
* @return mixed By default, microtime returns a string in |
| 4571 |
* the form "msec sec", where sec is the number of seconds |
| 4572 |
* since the Unix epoch (0:00:00 January 1,1970 GMT), and msec |
| 4573 |
* measures microseconds that have elapsed since sec |
| 4574 |
* and is also expressed in seconds. |
| 4575 |
* </p> |
| 4576 |
* <p> |
| 4577 |
* If get_as_float is set to true, then |
| 4578 |
* microtime returns a float, which |
| 4579 |
* represents the current time in seconds since the Unix epoch accurate to the |
| 4580 |
* nearest microsecond. |
| 4581 |
*/ |
| 4582 |
function microtime ($get_as_float = null) {} |
| 4583 |
|
| 4584 |
/** |
| 4585 |
* Get current time |
| 4586 |
* @link http://www.php.net/manual/en/function.gettimeofday.php |
| 4587 |
* @param return_float bool[optional] <p> |
| 4588 |
* When set to true, a float instead of an array is returned. |
| 4589 |
* </p> |
| 4590 |
* @return mixed By default an array is returned. If return_float |
| 4591 |
* is set, then a float is returned. |
| 4592 |
* </p> |
| 4593 |
* <p> |
| 4594 |
* Array keys: |
| 4595 |
* |
| 4596 |
* |
| 4597 |
* |
| 4598 |
* "sec" - seconds since the Unix Epoch |
| 4599 |
* |
| 4600 |
* |
| 4601 |
* |
| 4602 |
* |
| 4603 |
* "usec" - microseconds |
| 4604 |
* |
| 4605 |
* |
| 4606 |
* |
| 4607 |
* |
| 4608 |
* "minuteswest" - minutes west of Greenwich |
| 4609 |
* |
| 4610 |
* |
| 4611 |
* |
| 4612 |
* |
| 4613 |
* "dsttime" - type of dst correction |
| 4614 |
*/ |
| 4615 |
function gettimeofday ($return_float = null) {} |
| 4616 |
|
| 4617 |
/** |
| 4618 |
* Gets the current resource usages |
| 4619 |
* @link http://www.php.net/manual/en/function.getrusage.php |
| 4620 |
* @param who int[optional] <p> |
| 4621 |
* If who is 1, getrusage will be called with |
| 4622 |
* RUSAGE_CHILDREN. |
| 4623 |
* </p> |
| 4624 |
* @return array an associative array containing the data returned from the system |
| 4625 |
* call. All entries are accessible by using their documented field names. |
| 4626 |
*/ |
| 4627 |
function getrusage ($who = null) {} |
| 4628 |
|
| 4629 |
/** |
| 4630 |
* Generate a unique ID |
| 4631 |
* @link http://www.php.net/manual/en/function.uniqid.php |
| 4632 |
* @param prefix string[optional] <p> |
| 4633 |
* Can be useful, for instance, if you generate identifiers |
| 4634 |
* simultaneously on several hosts that might happen to generate the |
| 4635 |
* identifier at the same microsecond. |
| 4636 |
* </p> |
| 4637 |
* <p> |
| 4638 |
* With an empty prefix, the returned string will |
| 4639 |
* be 13 characters long. If more_entropy is |
| 4640 |
* true, it will be 23 characters. |
| 4641 |
* </p> |
| 4642 |
* @param more_entropy bool[optional] <p> |
| 4643 |
* If set to true, uniqid will add additional |
| 4644 |
* entropy (using the combined linear congruential generator) at the end |
| 4645 |
* of the return value, which increases the likelihood that the result |
| 4646 |
* will be unique. |
| 4647 |
* </p> |
| 4648 |
* @return string the unique identifier, as a string. |
| 4649 |
*/ |
| 4650 |
function uniqid ($prefix = null, $more_entropy = null) {} |
| 4651 |
|
| 4652 |
/** |
| 4653 |
* Convert a quoted-printable string to an 8 bit string |
| 4654 |
* @link http://www.php.net/manual/en/function.quoted-printable-decode.php |
| 4655 |
* @param str string <p> |
| 4656 |
* The input string. |
| 4657 |
* </p> |
| 4658 |
* @return string the 8-bit binary string. |
| 4659 |
*/ |
| 4660 |
function quoted_printable_decode ($str) {} |
| 4661 |
|
| 4662 |
/** |
| 4663 |
* Convert a 8 bit string to a quoted-printable string |
| 4664 |
* @link http://www.php.net/manual/en/function.quoted-printable-encode.php |
| 4665 |
* @param str string <p> |
| 4666 |
* The input string. |
| 4667 |
* </p> |
| 4668 |
* @return string the encoded string. |
| 4669 |
*/ |
| 4670 |
function quoted_printable_encode ($str) {} |
| 4671 |
|
| 4672 |
/** |
| 4673 |
* Convert from one Cyrillic character set to another |
| 4674 |
* @link http://www.php.net/manual/en/function.convert-cyr-string.php |
| 4675 |
* @param str string <p> |
| 4676 |
* The string to be converted. |
| 4677 |
* </p> |
| 4678 |
* @param from string <p> |
| 4679 |
* The source Cyrillic character set, as a single character. |
| 4680 |
* </p> |
| 4681 |
* @param to string <p> |
| 4682 |
* The target Cyrillic character set, as a single character. |
| 4683 |
* </p> |
| 4684 |
* @return string the converted string. |
| 4685 |
*/ |
| 4686 |
function convert_cyr_string ($str, $from, $to) {} |
| 4687 |
|
| 4688 |
/** |
| 4689 |
* Gets the name of the owner of the current PHP script |
| 4690 |
* @link http://www.php.net/manual/en/function.get-current-user.php |
| 4691 |
* @return string the username as a string. |
| 4692 |
*/ |
| 4693 |
function get_current_user () {} |
| 4694 |
|
| 4695 |
/** |
| 4696 |
* Limits the maximum execution time |
| 4697 |
* @link http://www.php.net/manual/en/function.set-time-limit.php |
| 4698 |
* @param seconds int <p> |
| 4699 |
* The maximum execution time, in seconds. If set to zero, no time limit |
| 4700 |
* is imposed. |
| 4701 |
* </p> |
| 4702 |
* @return bool true on success, or false on failure. |
| 4703 |
*/ |
| 4704 |
function set_time_limit ($seconds) {} |
| 4705 |
|
| 4706 |
/** |
| 4707 |
* Call a header function |
| 4708 |
* @link http://www.php.net/manual/en/function.header-register-callback.php |
| 4709 |
* @param callback callable <p> |
| 4710 |
* Function called just before the headers are sent. It gets no parameters |
| 4711 |
* and the return value is ignored. |
| 4712 |
* </p> |
| 4713 |
* @return bool Returns true on success, false on failure. |
| 4714 |
*/ |
| 4715 |
function header_register_callback ($callback) {} |
| 4716 |
|
| 4717 |
/** |
| 4718 |
* Gets the value of a PHP configuration option |
| 4719 |
* @link http://www.php.net/manual/en/function.get-cfg-var.php |
| 4720 |
* @param option string <p> |
| 4721 |
* The configuration option name. |
| 4722 |
* </p> |
| 4723 |
* @return string the current value of the PHP configuration variable specified by |
| 4724 |
* option, or false if an error occurs. |
| 4725 |
*/ |
| 4726 |
function get_cfg_var ($option) {} |
| 4727 |
|
| 4728 |
/** |
| 4729 |
* &Alias; <function>set_magic_quotes_runtime</function> |
| 4730 |
* @link http://www.php.net/manual/en/function.magic-quotes-runtime.php |
| 4731 |
* @param new_setting |
| 4732 |
*/ |
| 4733 |
function magic_quotes_runtime ($new_setting) {} |
| 4734 |
|
| 4735 |
/** |
| 4736 |
* Sets the current active configuration setting of magic_quotes_runtime |
| 4737 |
* @link http://www.php.net/manual/en/function.set-magic-quotes-runtime.php |
| 4738 |
* @param new_setting bool <p> |
| 4739 |
* false for off, true for on. |
| 4740 |
* </p> |
| 4741 |
* @return bool Returns true on success, false on failure. |
| 4742 |
*/ |
| 4743 |
function set_magic_quotes_runtime ($new_setting) {} |
| 4744 |
|
| 4745 |
/** |
| 4746 |
* Gets the current configuration setting of magic_quotes_gpc |
| 4747 |
* @link http://www.php.net/manual/en/function.get-magic-quotes-gpc.php |
| 4748 |
* @return bool 0 if magic_quotes_gpc is off, 1 otherwise. |
| 4749 |
* Or always returns false as of PHP 5.4.0. |
| 4750 |
*/ |
| 4751 |
function get_magic_quotes_gpc () {} |
| 4752 |
|
| 4753 |
/** |
| 4754 |
* Gets the current active configuration setting of magic_quotes_runtime |
| 4755 |
* @link http://www.php.net/manual/en/function.get-magic-quotes-runtime.php |
| 4756 |
* @return bool 0 if magic_quotes_runtime is off, 1 otherwise. |
| 4757 |
* Or always returns false as of PHP 5.4.0. |
| 4758 |
*/ |
| 4759 |
function get_magic_quotes_runtime () {} |
| 4760 |
|
| 4761 |
/** |
| 4762 |
* Send an error message to the defined error handling routines |
| 4763 |
* @link http://www.php.net/manual/en/function.error-log.php |
| 4764 |
* @param message string <p> |
| 4765 |
* The error message that should be logged. |
| 4766 |
* </p> |
| 4767 |
* @param message_type int[optional] <p> |
| 4768 |
* Says where the error should go. The possible message types are as |
| 4769 |
* follows: |
| 4770 |
* </p> |
| 4771 |
* <p> |
| 4772 |
* <table> |
| 4773 |
* error_log log types |
| 4774 |
* |
| 4775 |
* |
| 4776 |
* <tr valign="top"> |
| 4777 |
* <td>0</td> |
| 4778 |
* <td> |
| 4779 |
* message is sent to PHP's system logger, using |
| 4780 |
* the Operating System's system logging mechanism or a file, depending |
| 4781 |
* on what the error_log |
| 4782 |
* configuration directive is set to. This is the default option. |
| 4783 |
* </td> |
| 4784 |
* </tr> |
| 4785 |
* <tr valign="top"> |
| 4786 |
* <td>1</td> |
| 4787 |
* <td> |
| 4788 |
* message is sent by email to the address in |
| 4789 |
* the destination parameter. This is the only |
| 4790 |
* message type where the fourth parameter, |
| 4791 |
* extra_headers is used. |
| 4792 |
* </td> |
| 4793 |
* </tr> |
| 4794 |
* <tr valign="top"> |
| 4795 |
* <td>2</td> |
| 4796 |
* <td> |
| 4797 |
* No longer an option. |
| 4798 |
* </td> |
| 4799 |
* </tr> |
| 4800 |
* <tr valign="top"> |
| 4801 |
* <td>3</td> |
| 4802 |
* <td> |
| 4803 |
* message is appended to the file |
| 4804 |
* destination. A newline is not automatically |
| 4805 |
* added to the end of the message string. |
| 4806 |
* </td> |
| 4807 |
* </tr> |
| 4808 |
* <tr valign="top"> |
| 4809 |
* <td>4</td> |
| 4810 |
* <td> |
| 4811 |
* message is sent directly to the SAPI logging |
| 4812 |
* handler. |
| 4813 |
* </td> |
| 4814 |
* </tr> |
| 4815 |
* |
| 4816 |
* |
| 4817 |
* </table> |
| 4818 |
* </p> |
| 4819 |
* @param destination string[optional] <p> |
| 4820 |
* The destination. Its meaning depends on the |
| 4821 |
* message_type parameter as described above. |
| 4822 |
* </p> |
| 4823 |
* @param extra_headers string[optional] <p> |
| 4824 |
* The extra headers. It's used when the message_type |
| 4825 |
* parameter is set to 1. |
| 4826 |
* This message type uses the same internal function as |
| 4827 |
* mail does. |
| 4828 |
* </p> |
| 4829 |
* @return bool Returns true on success, false on failure. |
| 4830 |
*/ |
| 4831 |
function error_log ($message, $message_type = null, $destination = null, $extra_headers = null) {} |
| 4832 |
|
| 4833 |
/** |
| 4834 |
* Get the last occurred error |
| 4835 |
* @link http://www.php.net/manual/en/function.error-get-last.php |
| 4836 |
* @return array an associative array describing the last error with keys "type", |
| 4837 |
* "message", "file" and "line". If the error has been caused by a PHP |
| 4838 |
* internal function then the "message" begins with its name. |
| 4839 |
* Returns &null; if there hasn't been an error yet. |
| 4840 |
*/ |
| 4841 |
function error_get_last () {} |
| 4842 |
|
| 4843 |
/** |
| 4844 |
* Call the callback given by the first parameter |
| 4845 |
* @link http://www.php.net/manual/en/function.call-user-func.php |
| 4846 |
* @param callback callable <p> |
| 4847 |
* The callable to be called. |
| 4848 |
* </p> |
| 4849 |
* @param parameter mixed[optional] <p> |
| 4850 |
* Zero or more parameters to be passed to the callback. |
| 4851 |
* </p> |
| 4852 |
* |
| 4853 |
* <p> |
| 4854 |
* Note that the parameters for call_user_func are |
| 4855 |
* not passed by reference. |
| 4856 |
* |
| 4857 |
* call_user_func example and references |
| 4858 |
* |
| 4859 |
* ]]> |
| 4860 |
* |
| 4861 |
* &example.outputs; |
| 4862 |
* |
| 4863 |
* |
| 4864 |
* |
| 4865 |
* </p> |
| 4866 |
* @param _ mixed[optional] |
| 4867 |
* @return mixed the return value of the callback, or false on error. |
| 4868 |
*/ |
| 4869 |
function call_user_func ($callback, $parameter = null, $_ = null) {} |
| 4870 |
|
| 4871 |
/** |
| 4872 |
* Call a callback with an array of parameters |
| 4873 |
* @link http://www.php.net/manual/en/function.call-user-func-array.php |
| 4874 |
* @param callback callable <p> |
| 4875 |
* The callable to be called. |
| 4876 |
* </p> |
| 4877 |
* @param param_arr array <p> |
| 4878 |
* The parameters to be passed to the callback, as an indexed array. |
| 4879 |
* </p> |
| 4880 |
* @return mixed the return value of the callback, or false on error. |
| 4881 |
*/ |
| 4882 |
function call_user_func_array ($callback, array $param_arr) {} |
| 4883 |
|
| 4884 |
/** |
| 4885 |
* Call a user method on an specific object [deprecated] |
| 4886 |
* @link http://www.php.net/manual/en/function.call-user-method.php |
| 4887 |
* @param method_name string <p> |
| 4888 |
* The method name being called. |
| 4889 |
* </p> |
| 4890 |
* @param obj object <p> |
| 4891 |
* The object that method_name |
| 4892 |
* is being called on. |
| 4893 |
* </p> |
| 4894 |
* @param parameter mixed[optional] |
| 4895 |
* @param _ mixed[optional] |
| 4896 |
* @return mixed |
| 4897 |
*/ |
| 4898 |
function call_user_method ($method_name, &$obj, $parameter = null, $_ = null) {} |
| 4899 |
|
| 4900 |
/** |
| 4901 |
* Call a user method given with an array of parameters [deprecated] |
| 4902 |
* @link http://www.php.net/manual/en/function.call-user-method-array.php |
| 4903 |
* @param method_name string <p> |
| 4904 |
* The method name being called. |
| 4905 |
* </p> |
| 4906 |
* @param obj object <p> |
| 4907 |
* The object that method_name |
| 4908 |
* is being called on. |
| 4909 |
* </p> |
| 4910 |
* @param params array <p> |
| 4911 |
* An array of parameters. |
| 4912 |
* </p> |
| 4913 |
* @return mixed |
| 4914 |
*/ |
| 4915 |
function call_user_method_array ($method_name, &$obj, array $params) {} |
| 4916 |
|
| 4917 |
/** |
| 4918 |
* Call a static method |
| 4919 |
* @link http://www.php.net/manual/en/function.forward-static-call.php |
| 4920 |
* @param function callable <p> |
| 4921 |
* The function or method to be called. This parameter may be an array, |
| 4922 |
* with the name of the class, and the method, or a string, with a function |
| 4923 |
* name. |
| 4924 |
* </p> |
| 4925 |
* @param parameter mixed[optional] <p> |
| 4926 |
* Zero or more parameters to be passed to the function. |
| 4927 |
* </p> |
| 4928 |
* @param _ mixed[optional] |
| 4929 |
* @return mixed the function result, or false on error. |
| 4930 |
*/ |
| 4931 |
function forward_static_call ($function, $parameter = null, $_ = null) {} |
| 4932 |
|
| 4933 |
/** |
| 4934 |
* Call a static method and pass the arguments as array |
| 4935 |
* @link http://www.php.net/manual/en/function.forward-static-call-array.php |
| 4936 |
* @param function callable <p> |
| 4937 |
* The function or method to be called. This parameter may be an &array;, |
| 4938 |
* with the name of the class, and the method, or a &string;, with a function |
| 4939 |
* name. |
| 4940 |
* </p> |
| 4941 |
* @param parameters array |
| 4942 |
* @return mixed the function result, or false on error. |
| 4943 |
*/ |
| 4944 |
function forward_static_call_array ($function, array $parameters) {} |
| 4945 |
|
| 4946 |
/** |
| 4947 |
* Generates a storable representation of a value |
| 4948 |
* @link http://www.php.net/manual/en/function.serialize.php |
| 4949 |
* @param value mixed <p> |
| 4950 |
* The value to be serialized. serialize |
| 4951 |
* handles all types, except the resource-type. |
| 4952 |
* You can even serialize arrays that contain |
| 4953 |
* references to itself. Circular references inside the array/object you |
| 4954 |
* are serializing will also be stored. Any other |
| 4955 |
* reference will be lost. |
| 4956 |
* </p> |
| 4957 |
* <p> |
| 4958 |
* When serializing objects, PHP will attempt to call the member function |
| 4959 |
* __sleep() prior to serialization. |
| 4960 |
* This is to allow the object to do any last minute clean-up, etc. prior |
| 4961 |
* to being serialized. Likewise, when the object is restored using |
| 4962 |
* unserialize the __wakeup() member function is called. |
| 4963 |
* </p> |
| 4964 |
* |
| 4965 |
* <p> |
| 4966 |
* Object's private members have the class name prepended to the member |
| 4967 |
* name; protected members have a '*' prepended to the member name. |
| 4968 |
* These prepended values have null bytes on either side. |
| 4969 |
* </p> |
| 4970 |
* @return string a string containing a byte-stream representation of |
| 4971 |
* value that can be stored anywhere. |
| 4972 |
* </p> |
| 4973 |
* <p> |
| 4974 |
* Note that this is a binary string which may include null bytes, and needs |
| 4975 |
* to be stored and handled as such. For example, |
| 4976 |
* serialize output should generally be stored in a BLOB |
| 4977 |
* field in a database, rather than a CHAR or TEXT field. |
| 4978 |
*/ |
| 4979 |
function serialize ($value) {} |
| 4980 |
|
| 4981 |
/** |
| 4982 |
* Creates a PHP value from a stored representation |
| 4983 |
* @link http://www.php.net/manual/en/function.unserialize.php |
| 4984 |
* @param str string <p> |
| 4985 |
* The serialized string. |
| 4986 |
* </p> |
| 4987 |
* <p> |
| 4988 |
* If the variable being unserialized is an object, after successfully |
| 4989 |
* reconstructing the object PHP will automatically attempt to call the |
| 4990 |
* __wakeup() member |
| 4991 |
* function (if it exists). |
| 4992 |
* </p> |
| 4993 |
* <p> |
| 4994 |
* |
| 4995 |
* unserialize_callback_func directive |
| 4996 |
* <p> |
| 4997 |
* It's possible to set a callback-function which will be called, |
| 4998 |
* if an undefined class should be instantiated during unserializing. |
| 4999 |
* (to prevent getting an incomplete object "__PHP_Incomplete_Class".) |
| 5000 |
* Use your &php.ini;, ini_set or &htaccess; |
| 5001 |
* to define 'unserialize_callback_func'. Everytime an undefined class |
| 5002 |
* should be instantiated, it'll be called. To disable this feature just |
| 5003 |
* empty this setting. |
| 5004 |
* </p> |
| 5005 |
* |
| 5006 |
* </p> |
| 5007 |
* @return mixed The converted value is returned, and can be a boolean, |
| 5008 |
* integer, float, string, |
| 5009 |
* array or object. |
| 5010 |
* </p> |
| 5011 |
* <p> |
| 5012 |
* In case the passed string is not unserializeable, false is returned and |
| 5013 |
* E_NOTICE is issued. |
| 5014 |
*/ |
| 5015 |
function unserialize ($str) {} |
| 5016 |
|
| 5017 |
/** |
| 5018 |
* Dumps information about a variable |
| 5019 |
* @link http://www.php.net/manual/en/function.var-dump.php |
| 5020 |
* @param expression mixed <p> |
| 5021 |
* The variable you want to dump. |
| 5022 |
* </p> |
| 5023 |
* @param _ mixed[optional] |
| 5024 |
* @return void |
| 5025 |
*/ |
| 5026 |
function var_dump ($expression, $_ = null) {} |
| 5027 |
|
| 5028 |
/** |
| 5029 |
* Outputs or returns a parsable string representation of a variable |
| 5030 |
* @link http://www.php.net/manual/en/function.var-export.php |
| 5031 |
* @param expression mixed <p> |
| 5032 |
* The variable you want to export. |
| 5033 |
* </p> |
| 5034 |
* @param return bool[optional] <p> |
| 5035 |
* If used and set to true, var_export will return |
| 5036 |
* the variable representation instead of outputting it. |
| 5037 |
* </p> |
| 5038 |
* @return mixed the variable representation when the return |
| 5039 |
* parameter is used and evaluates to true. Otherwise, this function will |
| 5040 |
* return &null;. |
| 5041 |
*/ |
| 5042 |
function var_export ($expression, $return = null) {} |
| 5043 |
|
| 5044 |
/** |
| 5045 |
* Dumps a string representation of an internal zend value to output |
| 5046 |
* @link http://www.php.net/manual/en/function.debug-zval-dump.php |
| 5047 |
* @param variable mixed <p> |
| 5048 |
* The variable being evaluated. |
| 5049 |
* </p> |
| 5050 |
* @param _ mixed[optional] |
| 5051 |
* @return void |
| 5052 |
*/ |
| 5053 |
function debug_zval_dump ($variable, $_ = null) {} |
| 5054 |
|
| 5055 |
/** |
| 5056 |
* Prints human-readable information about a variable |
| 5057 |
* @link http://www.php.net/manual/en/function.print-r.php |
| 5058 |
* @param expression mixed <p> |
| 5059 |
* The expression to be printed. |
| 5060 |
* </p> |
| 5061 |
* @param return bool[optional] <p> |
| 5062 |
* If you would like to capture the output of print_r, |
| 5063 |
* use the return parameter. When this parameter is set |
| 5064 |
* to true, print_r will return the information rather than print it. |
| 5065 |
* </p> |
| 5066 |
* @return mixed If given a string, integer or float, |
| 5067 |
* the value itself will be printed. If given an array, values |
| 5068 |
* will be presented in a format that shows keys and elements. Similar |
| 5069 |
* notation is used for objects. |
| 5070 |
* </p> |
| 5071 |
* <p> |
| 5072 |
* When the return parameter is true, this function |
| 5073 |
* will return a string. Otherwise, the return value is true. |
| 5074 |
*/ |
| 5075 |
function print_r ($expression, $return = null) {} |
| 5076 |
|
| 5077 |
/** |
| 5078 |
* Returns the amount of memory allocated to PHP |
| 5079 |
* @link http://www.php.net/manual/en/function.memory-get-usage.php |
| 5080 |
* @param real_usage bool[optional] <p> |
| 5081 |
* Set this to true to get the real size of memory allocated from |
| 5082 |
* system. If not set or false only the memory used by |
| 5083 |
* emalloc() is reported. |
| 5084 |
* </p> |
| 5085 |
* @return int the memory amount in bytes. |
| 5086 |
*/ |
| 5087 |
function memory_get_usage ($real_usage = null) {} |
| 5088 |
|
| 5089 |
/** |
| 5090 |
* Returns the peak of memory allocated by PHP |
| 5091 |
* @link http://www.php.net/manual/en/function.memory-get-peak-usage.php |
| 5092 |
* @param real_usage bool[optional] <p> |
| 5093 |
* Set this to true to get the real size of memory allocated from |
| 5094 |
* system. If not set or false only the memory used by |
| 5095 |
* emalloc() is reported. |
| 5096 |
* </p> |
| 5097 |
* @return int the memory peak in bytes. |
| 5098 |
*/ |
| 5099 |
function memory_get_peak_usage ($real_usage = null) {} |
| 5100 |
|
| 5101 |
/** |
| 5102 |
* Register a function for execution on shutdown |
| 5103 |
* @link http://www.php.net/manual/en/function.register-shutdown-function.php |
| 5104 |
* @param callback callable <p> |
| 5105 |
* The shutdown callback to register. |
| 5106 |
* </p> |
| 5107 |
* <p> |
| 5108 |
* The shutdown callbacks are executed as the part of the request, so |
| 5109 |
* it's possible to send output from them and access output buffers. |
| 5110 |
* </p> |
| 5111 |
* @param parameter mixed[optional] <p> |
| 5112 |
* It is possible to pass parameters to the shutdown function by passing |
| 5113 |
* additional parameters. |
| 5114 |
* </p> |
| 5115 |
* @param _ mixed[optional] |
| 5116 |
* @return void |
| 5117 |
*/ |
| 5118 |
function register_shutdown_function ($callback, $parameter = null, $_ = null) {} |
| 5119 |
|
| 5120 |
/** |
| 5121 |
* Register a function for execution on each tick |
| 5122 |
* @link http://www.php.net/manual/en/function.register-tick-function.php |
| 5123 |
* @param function callable <p> |
| 5124 |
* The function name as a string, or an array consisting of an object and |
| 5125 |
* a method. |
| 5126 |
* </p> |
| 5127 |
* @param arg mixed[optional] <p> |
| 5128 |
* </p> |
| 5129 |
* @param _ mixed[optional] |
| 5130 |
* @return bool Returns true on success, false on failure. |
| 5131 |
*/ |
| 5132 |
function register_tick_function ($function, $arg = null, $_ = null) {} |
| 5133 |
|
| 5134 |
/** |
| 5135 |
* De-register a function for execution on each tick |
| 5136 |
* @link http://www.php.net/manual/en/function.unregister-tick-function.php |
| 5137 |
* @param function_name string <p> |
| 5138 |
* The function name, as a string. |
| 5139 |
* </p> |
| 5140 |
* @return void |
| 5141 |
*/ |
| 5142 |
function unregister_tick_function ($function_name) {} |
| 5143 |
|
| 5144 |
/** |
| 5145 |
* Syntax highlighting of a file |
| 5146 |
* @link http://www.php.net/manual/en/function.highlight-file.php |
| 5147 |
* @param filename string <p> |
| 5148 |
* Path to the PHP file to be highlighted. |
| 5149 |
* </p> |
| 5150 |
* @param return bool[optional] <p> |
| 5151 |
* Set this parameter to true to make this function return the |
| 5152 |
* highlighted code. |
| 5153 |
* </p> |
| 5154 |
* @return mixed If return is set to true, returns the highlighted |
| 5155 |
* code as a string instead of printing it out. Otherwise, it will return |
| 5156 |
* true on success, false on failure. |
| 5157 |
*/ |
| 5158 |
function highlight_file ($filename, $return = null) {} |
| 5159 |
|
| 5160 |
/** |
| 5161 |
* &Alias; <function>highlight_file</function> |
| 5162 |
* @link http://www.php.net/manual/en/function.show-source.php |
| 5163 |
* @param file_name |
| 5164 |
* @param return[optional] |
| 5165 |
*/ |
| 5166 |
function show_source ($file_name, $return) {} |
| 5167 |
|
| 5168 |
/** |
| 5169 |
* Syntax highlighting of a string |
| 5170 |
* @link http://www.php.net/manual/en/function.highlight-string.php |
| 5171 |
* @param str string <p> |
| 5172 |
* The PHP code to be highlighted. This should include the opening tag. |
| 5173 |
* </p> |
| 5174 |
* @param return bool[optional] <p> |
| 5175 |
* Set this parameter to true to make this function return the |
| 5176 |
* highlighted code. |
| 5177 |
* </p> |
| 5178 |
* @return mixed If return is set to true, returns the highlighted |
| 5179 |
* code as a string instead of printing it out. Otherwise, it will return |
| 5180 |
* true on success, false on failure. |
| 5181 |
*/ |
| 5182 |
function highlight_string ($str, $return = null) {} |
| 5183 |
|
| 5184 |
/** |
| 5185 |
* Return source with stripped comments and whitespace |
| 5186 |
* @link http://www.php.net/manual/en/function.php-strip-whitespace.php |
| 5187 |
* @param filename string <p> |
| 5188 |
* Path to the PHP file. |
| 5189 |
* </p> |
| 5190 |
* @return string The stripped source code will be returned on success, or an empty string |
| 5191 |
* on failure. |
| 5192 |
* </p> |
| 5193 |
* |
| 5194 |
* <p> |
| 5195 |
* This function works as described as of PHP 5.0.1. Before this it would |
| 5196 |
* only return an empty string. For more information on this bug and its |
| 5197 |
* prior behavior, see bug report |
| 5198 |
* #29606. |
| 5199 |
*/ |
| 5200 |
function php_strip_whitespace ($filename) {} |
| 5201 |
|
| 5202 |
/** |
| 5203 |
* Gets the value of a configuration option |
| 5204 |
* @link http://www.php.net/manual/en/function.ini-get.php |
| 5205 |
* @param varname string <p> |
| 5206 |
* The configuration option name. |
| 5207 |
* </p> |
| 5208 |
* @return string the value of the configuration option as a string on success, or an |
| 5209 |
* empty string for null values. Returns false if the |
| 5210 |
* configuration option doesn't exist. |
| 5211 |
*/ |
| 5212 |
function ini_get ($varname) {} |
| 5213 |
|
| 5214 |
/** |
| 5215 |
* Gets all configuration options |
| 5216 |
* @link http://www.php.net/manual/en/function.ini-get-all.php |
| 5217 |
* @param extension string[optional] <p> |
| 5218 |
* An optional extension name. If set, the function return only options |
| 5219 |
* specific for that extension. |
| 5220 |
* </p> |
| 5221 |
* @param details bool[optional] <p> |
| 5222 |
* Retrieve details settings or only the current value for each setting. |
| 5223 |
* Default is true (retrieve details). |
| 5224 |
* </p> |
| 5225 |
* @return array an associative array with directive name as the array key. |
| 5226 |
* </p> |
| 5227 |
* <p> |
| 5228 |
* When details is true (default) the array will |
| 5229 |
* contain global_value (set in |
| 5230 |
* &php.ini;), local_value (perhaps set with |
| 5231 |
* ini_set or &htaccess;), and |
| 5232 |
* access (the access level). |
| 5233 |
* </p> |
| 5234 |
* <p> |
| 5235 |
* When details is false the value will be the |
| 5236 |
* current value of the option. |
| 5237 |
* </p> |
| 5238 |
* <p> |
| 5239 |
* See the manual section |
| 5240 |
* for information on what access levels mean. |
| 5241 |
* </p> |
| 5242 |
* |
| 5243 |
* <p> |
| 5244 |
* It's possible for a directive to have multiple access levels, which is |
| 5245 |
* why access shows the appropriate bitmask values. |
| 5246 |
*/ |
| 5247 |
function ini_get_all ($extension = null, $details = null) {} |
| 5248 |
|
| 5249 |
/** |
| 5250 |
* Sets the value of a configuration option |
| 5251 |
* @link http://www.php.net/manual/en/function.ini-set.php |
| 5252 |
* @param varname string <p> |
| 5253 |
* </p> |
| 5254 |
* <p> |
| 5255 |
* Not all the available options can be changed using |
| 5256 |
* ini_set. There is a list of all available options |
| 5257 |
* in the appendix. |
| 5258 |
* </p> |
| 5259 |
* @param newvalue string <p> |
| 5260 |
* The new value for the option. |
| 5261 |
* </p> |
| 5262 |
* @return string the old value on success, false on failure. |
| 5263 |
*/ |
| 5264 |
function ini_set ($varname, $newvalue) {} |
| 5265 |
|
| 5266 |
/** |
| 5267 |
* &Alias; <function>ini_set</function> |
| 5268 |
* @link http://www.php.net/manual/en/function.ini-alter.php |
| 5269 |
* @param varname |
| 5270 |
* @param newvalue |
| 5271 |
*/ |
| 5272 |
function ini_alter ($varname, $newvalue) {} |
| 5273 |
|
| 5274 |
/** |
| 5275 |
* Restores the value of a configuration option |
| 5276 |
* @link http://www.php.net/manual/en/function.ini-restore.php |
| 5277 |
* @param varname string <p> |
| 5278 |
* The configuration option name. |
| 5279 |
* </p> |
| 5280 |
* @return void |
| 5281 |
*/ |
| 5282 |
function ini_restore ($varname) {} |
| 5283 |
|
| 5284 |
/** |
| 5285 |
* Gets the current include_path configuration option |
| 5286 |
* @link http://www.php.net/manual/en/function.get-include-path.php |
| 5287 |
* @return string the path, as a string. |
| 5288 |
*/ |
| 5289 |
function get_include_path () {} |
| 5290 |
|
| 5291 |
/** |
| 5292 |
* Sets the include_path configuration option |
| 5293 |
* @link http://www.php.net/manual/en/function.set-include-path.php |
| 5294 |
* @param new_include_path string <p> |
| 5295 |
* The new value for the include_path |
| 5296 |
* </p> |
| 5297 |
* @return string the old include_path on |
| 5298 |
* success&return.falseforfailure;. |
| 5299 |
*/ |
| 5300 |
function set_include_path ($new_include_path) {} |
| 5301 |
|
| 5302 |
/** |
| 5303 |
* Restores the value of the include_path configuration option |
| 5304 |
* @link http://www.php.net/manual/en/function.restore-include-path.php |
| 5305 |
* @return void |
| 5306 |
*/ |
| 5307 |
function restore_include_path () {} |
| 5308 |
|
| 5309 |
/** |
| 5310 |
* Send a cookie |
| 5311 |
* @link http://www.php.net/manual/en/function.setcookie.php |
| 5312 |
* @param name string <p> |
| 5313 |
* The name of the cookie. |
| 5314 |
* </p> |
| 5315 |
* @param value string[optional] <p> |
| 5316 |
* The value of the cookie. This value is stored on the clients computer; |
| 5317 |
* do not store sensitive information. Assuming the |
| 5318 |
* name is 'cookiename', this |
| 5319 |
* value is retrieved through $_COOKIE['cookiename'] |
| 5320 |
* </p> |
| 5321 |
* @param expire int[optional] <p> |
| 5322 |
* The time the cookie expires. This is a Unix timestamp so is |
| 5323 |
* in number of seconds since the epoch. In other words, you'll |
| 5324 |
* most likely set this with the time function |
| 5325 |
* plus the number of seconds before you want it to expire. Or |
| 5326 |
* you might use mktime. |
| 5327 |
* time()+60*60*24*30 will set the cookie to |
| 5328 |
* expire in 30 days. If set to 0, or omitted, the cookie will expire at |
| 5329 |
* the end of the session (when the browser closes). |
| 5330 |
* </p> |
| 5331 |
* <p> |
| 5332 |
* |
| 5333 |
* <p> |
| 5334 |
* You may notice the expire parameter takes on a |
| 5335 |
* Unix timestamp, as opposed to the date format Wdy, DD-Mon-YYYY |
| 5336 |
* HH:MM:SS GMT, this is because PHP does this conversion |
| 5337 |
* internally. |
| 5338 |
* </p> |
| 5339 |
* |
| 5340 |
* </p> |
| 5341 |
* @param path string[optional] <p> |
| 5342 |
* The path on the server in which the cookie will be available on. |
| 5343 |
* If set to '/', the cookie will be available |
| 5344 |
* within the entire domain. If set to |
| 5345 |
* '/foo/', the cookie will only be available |
| 5346 |
* within the /foo/ directory and all |
| 5347 |
* sub-directories such as /foo/bar/ of |
| 5348 |
* domain. The default value is the |
| 5349 |
* current directory that the cookie is being set in. |
| 5350 |
* </p> |
| 5351 |
* @param domain string[optional] <p> |
| 5352 |
* The domain that the cookie is available to. Setting the domain to |
| 5353 |
* 'www.example.com' will make the cookie |
| 5354 |
* available in the www subdomain and higher subdomains. |
| 5355 |
* Cookies available to a lower domain, such as |
| 5356 |
* 'example.com' will be available to higher subdomains, |
| 5357 |
* such as 'www.example.com'. |
| 5358 |
* |
| 5359 |
* Older browsers still implementing the deprecated |
| 5360 |
* RFC 2109 may require a leading |
| 5361 |
* . to match all subdomains. |
| 5362 |
* </p> |
| 5363 |
* @param secure bool[optional] <p> |
| 5364 |
* Indicates that the cookie should only be transmitted over a |
| 5365 |
* secure HTTPS connection from the client. When set to true, the |
| 5366 |
* cookie will only be set if a secure connection exists. |
| 5367 |
* On the server-side, it's on the programmer to send this |
| 5368 |
* kind of cookie only on secure connection (e.g. with respect to |
| 5369 |
* $_SERVER["HTTPS"]). |
| 5370 |
* </p> |
| 5371 |
* @param httponly bool[optional] <p> |
| 5372 |
* When true the cookie will be made accessible only through the HTTP |
| 5373 |
* protocol. This means that the cookie won't be accessible by |
| 5374 |
* scripting languages, such as JavaScript. It has been suggested that |
| 5375 |
* this setting can effectively help to reduce identity theft through |
| 5376 |
* XSS attacks (although it is not supported by all browsers), but that |
| 5377 |
* claim is often disputed. Added in PHP 5.2.0. |
| 5378 |
* true or false |
| 5379 |
* </p> |
| 5380 |
* @return bool If output exists prior to calling this function, |
| 5381 |
* setcookie will fail and return false. If |
| 5382 |
* setcookie successfully runs, it will return true. |
| 5383 |
* This does not indicate whether the user accepted the cookie. |
| 5384 |
*/ |
| 5385 |
function setcookie ($name, $value = null, $expire = null, $path = null, $domain = null, $secure = null, $httponly = null) {} |
| 5386 |
|
| 5387 |
/** |
| 5388 |
* Send a cookie without urlencoding the cookie value |
| 5389 |
* @link http://www.php.net/manual/en/function.setrawcookie.php |
| 5390 |
* @param name string |
| 5391 |
* @param value string[optional] |
| 5392 |
* @param expire int[optional] |
| 5393 |
* @param path string[optional] |
| 5394 |
* @param domain string[optional] |
| 5395 |
* @param secure bool[optional] |
| 5396 |
* @param httponly bool[optional] |
| 5397 |
* @return bool Returns true on success, false on failure. |
| 5398 |
*/ |
| 5399 |
function setrawcookie ($name, $value = null, $expire = null, $path = null, $domain = null, $secure = null, $httponly = null) {} |
| 5400 |
|
| 5401 |
/** |
| 5402 |
* Send a raw HTTP header |
| 5403 |
* @link http://www.php.net/manual/en/function.header.php |
| 5404 |
* @param string string <p> |
| 5405 |
* The header string. |
| 5406 |
* </p> |
| 5407 |
* <p> |
| 5408 |
* There are two special-case header calls. The first is a header |
| 5409 |
* that starts with the string "HTTP/" (case is not |
| 5410 |
* significant), which will be used to figure out the HTTP status |
| 5411 |
* code to send. For example, if you have configured Apache to |
| 5412 |
* use a PHP script to handle requests for missing files (using |
| 5413 |
* the ErrorDocument directive), you may want to |
| 5414 |
* make sure that your script generates the proper status code. |
| 5415 |
* </p> |
| 5416 |
* <p> |
| 5417 |
* |
| 5418 |
* |
| 5419 |
* ]]> |
| 5420 |
* |
| 5421 |
* |
| 5422 |
* </p> |
| 5423 |
* <p> |
| 5424 |
* The second special case is the "Location:" header. Not only does |
| 5425 |
* it send this header back to the browser, but it also returns a |
| 5426 |
* REDIRECT (302) status code to the browser |
| 5427 |
* unless the 201 or |
| 5428 |
* a 3xx status code has already been set. |
| 5429 |
* </p> |
| 5430 |
* <p> |
| 5431 |
* |
| 5432 |
* |
| 5433 |
* ]]> |
| 5434 |
* |
| 5435 |
* |
| 5436 |
* </p> |
| 5437 |
* @param replace bool[optional] <p> |
| 5438 |
* The optional replace parameter indicates |
| 5439 |
* whether the header should replace a previous similar header, or |
| 5440 |
* add a second header of the same type. By default it will replace, |
| 5441 |
* but if you pass in false as the second argument you can force |
| 5442 |
* multiple headers of the same type. For example: |
| 5443 |
* </p> |
| 5444 |
* <p> |
| 5445 |
* |
| 5446 |
* |
| 5447 |
* ]]> |
| 5448 |
* |
| 5449 |
* |
| 5450 |
* </p> |
| 5451 |
* @param http_response_code int[optional] <p> |
| 5452 |
* Forces the HTTP response code to the specified value. Note that this |
| 5453 |
* parameter only has an effect if the string is |
| 5454 |
* not empty. |
| 5455 |
* </p> |
| 5456 |
* @return void |
| 5457 |
*/ |
| 5458 |
function header ($string, $replace = null, $http_response_code = null) {} |
| 5459 |
|
| 5460 |
/** |
| 5461 |
* Remove previously set headers |
| 5462 |
* @link http://www.php.net/manual/en/function.header-remove.php |
| 5463 |
* @param name string[optional] <p> |
| 5464 |
* The header name to be removed. |
| 5465 |
* </p> |
| 5466 |
* |
| 5467 |
* |
| 5468 |
* This parameter is case-insensitive. |
| 5469 |
* @return void |
| 5470 |
*/ |
| 5471 |
function header_remove ($name = null) {} |
| 5472 |
|
| 5473 |
/** |
| 5474 |
* Checks if or where headers have been sent |
| 5475 |
* @link http://www.php.net/manual/en/function.headers-sent.php |
| 5476 |
* @param file string[optional] <p> |
| 5477 |
* If the optional file and |
| 5478 |
* line parameters are set, |
| 5479 |
* headers_sent will put the PHP source file name |
| 5480 |
* and line number where output started in the file |
| 5481 |
* and line variables. |
| 5482 |
* </p> |
| 5483 |
* @param line int[optional] <p> |
| 5484 |
* The line number where the output started. |
| 5485 |
* </p> |
| 5486 |
* @return bool headers_sent will return false if no HTTP headers |
| 5487 |
* have already been sent or true otherwise. |
| 5488 |
*/ |
| 5489 |
function headers_sent (&$file = null, &$line = null) {} |
| 5490 |
|
| 5491 |
/** |
| 5492 |
* Returns a list of response headers sent (or ready to send) |
| 5493 |
* @link http://www.php.net/manual/en/function.headers-list.php |
| 5494 |
* @return array a numerically indexed array of headers. |
| 5495 |
*/ |
| 5496 |
function headers_list () {} |
| 5497 |
|
| 5498 |
/** |
| 5499 |
* Get or Set the HTTP response code |
| 5500 |
* @link http://www.php.net/manual/en/function.http-response-code.php |
| 5501 |
* @param response_code int[optional] <p> |
| 5502 |
* The optional response_code will set the response code. |
| 5503 |
* </p> |
| 5504 |
* <p> |
| 5505 |
* |
| 5506 |
* |
| 5507 |
* ]]> |
| 5508 |
* |
| 5509 |
* |
| 5510 |
* </p> |
| 5511 |
* @return int The current response code. By default the return value is int(200). |
| 5512 |
*/ |
| 5513 |
function http_response_code ($response_code = null) {} |
| 5514 |
|
| 5515 |
/** |
| 5516 |
* Check whether client disconnected |
| 5517 |
* @link http://www.php.net/manual/en/function.connection-aborted.php |
| 5518 |
* @return int 1 if client disconnected, 0 otherwise. |
| 5519 |
*/ |
| 5520 |
function connection_aborted () {} |
| 5521 |
|
| 5522 |
/** |
| 5523 |
* Returns connection status bitfield |
| 5524 |
* @link http://www.php.net/manual/en/function.connection-status.php |
| 5525 |
* @return int the connection status bitfield, which can be used against the |
| 5526 |
* CONNECTION_XXX constants to determine the connection |
| 5527 |
* status. |
| 5528 |
*/ |
| 5529 |
function connection_status () {} |
| 5530 |
|
| 5531 |
/** |
| 5532 |
* Set whether a client disconnect should abort script execution |
| 5533 |
* @link http://www.php.net/manual/en/function.ignore-user-abort.php |
| 5534 |
* @param value string[optional] <p> |
| 5535 |
* If set, this function will set the ignore_user_abort ini setting |
| 5536 |
* to the given value. If not, this function will |
| 5537 |
* only return the previous setting without changing it. |
| 5538 |
* </p> |
| 5539 |
* @return int the previous setting, as an integer. |
| 5540 |
*/ |
| 5541 |
function ignore_user_abort ($value = null) {} |
| 5542 |
|
| 5543 |
/** |
| 5544 |
* Parse a configuration file |
| 5545 |
* @link http://www.php.net/manual/en/function.parse-ini-file.php |
| 5546 |
* @param filename string <p> |
| 5547 |
* The filename of the ini file being parsed. |
| 5548 |
* </p> |
| 5549 |
* @param process_sections bool[optional] <p> |
| 5550 |
* By setting the process_sections |
| 5551 |
* parameter to true, you get a multidimensional array, with |
| 5552 |
* the section names and settings included. The default |
| 5553 |
* for process_sections is false |
| 5554 |
* </p> |
| 5555 |
* @param scanner_mode int[optional] <p> |
| 5556 |
* Can either be INI_SCANNER_NORMAL (default) or |
| 5557 |
* INI_SCANNER_RAW. If INI_SCANNER_RAW |
| 5558 |
* is supplied, then option values will not be parsed. |
| 5559 |
* </p> |
| 5560 |
* @return array The settings are returned as an associative array on success, |
| 5561 |
* and false on failure. |
| 5562 |
*/ |
| 5563 |
function parse_ini_file ($filename, $process_sections = null, $scanner_mode = null) {} |
| 5564 |
|
| 5565 |
/** |
| 5566 |
* Parse a configuration string |
| 5567 |
* @link http://www.php.net/manual/en/function.parse-ini-string.php |
| 5568 |
* @param ini string <p> |
| 5569 |
* The contents of the ini file being parsed. |
| 5570 |
* </p> |
| 5571 |
* @param process_sections bool[optional] <p> |
| 5572 |
* By setting the process_sections |
| 5573 |
* parameter to true, you get a multidimensional array, with |
| 5574 |
* the section names and settings included. The default |
| 5575 |
* for process_sections is false |
| 5576 |
* </p> |
| 5577 |
* @param scanner_mode int[optional] <p> |
| 5578 |
* Can either be INI_SCANNER_NORMAL (default) or |
| 5579 |
* INI_SCANNER_RAW. If INI_SCANNER_RAW |
| 5580 |
* is supplied, then option values will not be parsed. |
| 5581 |
* </p> |
| 5582 |
* @return array The settings are returned as an associative array on success, |
| 5583 |
* and false on failure. |
| 5584 |
*/ |
| 5585 |
function parse_ini_string ($ini, $process_sections = null, $scanner_mode = null) {} |
| 5586 |
|
| 5587 |
/** |
| 5588 |
* Tells whether the file was uploaded via HTTP POST |
| 5589 |
* @link http://www.php.net/manual/en/function.is-uploaded-file.php |
| 5590 |
* @param filename string <p> |
| 5591 |
* The filename being checked. |
| 5592 |
* </p> |
| 5593 |
* @return bool Returns true on success, false on failure. |
| 5594 |
*/ |
| 5595 |
function is_uploaded_file ($filename) {} |
| 5596 |
|
| 5597 |
/** |
| 5598 |
* Moves an uploaded file to a new location |
| 5599 |
* @link http://www.php.net/manual/en/function.move-uploaded-file.php |
| 5600 |
* @param filename string <p> |
| 5601 |
* The filename of the uploaded file. |
| 5602 |
* </p> |
| 5603 |
* @param destination string <p> |
| 5604 |
* The destination of the moved file. |
| 5605 |
* </p> |
| 5606 |
* @return bool true on success. |
| 5607 |
* </p> |
| 5608 |
* <p> |
| 5609 |
* If filename is not a valid upload file, |
| 5610 |
* then no action will occur, and |
| 5611 |
* move_uploaded_file will return |
| 5612 |
* false. |
| 5613 |
* </p> |
| 5614 |
* <p> |
| 5615 |
* If filename is a valid upload file, but |
| 5616 |
* cannot be moved for some reason, no action will occur, and |
| 5617 |
* move_uploaded_file will return |
| 5618 |
* false. Additionally, a warning will be issued. |
| 5619 |
*/ |
| 5620 |
function move_uploaded_file ($filename, $destination) {} |
| 5621 |
|
| 5622 |
/** |
| 5623 |
* Get the Internet host name corresponding to a given IP address |
| 5624 |
* @link http://www.php.net/manual/en/function.gethostbyaddr.php |
| 5625 |
* @param ip_address string <p> |
| 5626 |
* The host IP address. |
| 5627 |
* </p> |
| 5628 |
* @return string the host name on success, the unmodified ip_address |
| 5629 |
* on failure, or false on malformed input. |
| 5630 |
*/ |
| 5631 |
function gethostbyaddr ($ip_address) {} |
| 5632 |
|
| 5633 |
/** |
| 5634 |
* Get the IPv4 address corresponding to a given Internet host name |
| 5635 |
* @link http://www.php.net/manual/en/function.gethostbyname.php |
| 5636 |
* @param hostname string <p> |
| 5637 |
* The host name. |
| 5638 |
* </p> |
| 5639 |
* @return string the IPv4 address or a string containing the unmodified |
| 5640 |
* hostname on failure. |
| 5641 |
*/ |
| 5642 |
function gethostbyname ($hostname) {} |
| 5643 |
|
| 5644 |
/** |
| 5645 |
* Get a list of IPv4 addresses corresponding to a given Internet host |
| 5646 |
name |
| 5647 |
* @link http://www.php.net/manual/en/function.gethostbynamel.php |
| 5648 |
* @param hostname string <p> |
| 5649 |
* The host name. |
| 5650 |
* </p> |
| 5651 |
* @return array an array of IPv4 addresses or false if |
| 5652 |
* hostname could not be resolved. |
| 5653 |
*/ |
| 5654 |
function gethostbynamel ($hostname) {} |
| 5655 |
|
| 5656 |
/** |
| 5657 |
* Gets the host name |
| 5658 |
* @link http://www.php.net/manual/en/function.gethostname.php |
| 5659 |
* @return string a string with the hostname on success, otherwise false is |
| 5660 |
* returned. |
| 5661 |
*/ |
| 5662 |
function gethostname () {} |
| 5663 |
|
| 5664 |
/** |
| 5665 |
* &Alias; <function>checkdnsrr</function> |
| 5666 |
* @link http://www.php.net/manual/en/function.dns-check-record.php |
| 5667 |
* @param host |
| 5668 |
* @param type[optional] |
| 5669 |
*/ |
| 5670 |
function dns_check_record ($host, $type) {} |
| 5671 |
|
| 5672 |
/** |
| 5673 |
* Check DNS records corresponding to a given Internet host name or IP address |
| 5674 |
* @link http://www.php.net/manual/en/function.checkdnsrr.php |
| 5675 |
* @param host string <p> |
| 5676 |
* host may either be the IP address in |
| 5677 |
* dotted-quad notation or the host name. |
| 5678 |
* </p> |
| 5679 |
* @param type string[optional] <p> |
| 5680 |
* type may be any one of: A, MX, NS, SOA, |
| 5681 |
* PTR, CNAME, AAAA, A6, SRV, NAPTR, TXT or ANY. |
| 5682 |
* </p> |
| 5683 |
* @return bool true if any records are found; returns false if no records |
| 5684 |
* were found or if an error occurred. |
| 5685 |
*/ |
| 5686 |
function checkdnsrr ($host, $type = null) {} |
| 5687 |
|
| 5688 |
/** |
| 5689 |
* &Alias; <function>getmxrr</function> |
| 5690 |
* @link http://www.php.net/manual/en/function.dns-get-mx.php |
| 5691 |
* @param hostname |
| 5692 |
* @param mxhosts |
| 5693 |
* @param weight[optional] |
| 5694 |
*/ |
| 5695 |
function dns_get_mx ($hostname, &$mxhosts, &$weight) {} |
| 5696 |
|
| 5697 |
/** |
| 5698 |
* Get MX records corresponding to a given Internet host name |
| 5699 |
* @link http://www.php.net/manual/en/function.getmxrr.php |
| 5700 |
* @param hostname string <p> |
| 5701 |
* The Internet host name. |
| 5702 |
* </p> |
| 5703 |
* @param mxhosts array <p> |
| 5704 |
* A list of the MX records found is placed into the array |
| 5705 |
* mxhosts. |
| 5706 |
* </p> |
| 5707 |
* @param weight array[optional] <p> |
| 5708 |
* If the weight array is given, it will be filled |
| 5709 |
* with the weight information gathered. |
| 5710 |
* </p> |
| 5711 |
* @return bool true if any records are found; returns false if no records |
| 5712 |
* were found or if an error occurred. |
| 5713 |
*/ |
| 5714 |
function getmxrr ($hostname, array &$mxhosts, array &$weight = null) {} |
| 5715 |
|
| 5716 |
/** |
| 5717 |
* Fetch DNS Resource Records associated with a hostname |
| 5718 |
* @link http://www.php.net/manual/en/function.dns-get-record.php |
| 5719 |
* @param hostname string <p> |
| 5720 |
* hostname should be a valid DNS hostname such |
| 5721 |
* as "www.example.com". Reverse lookups can be generated |
| 5722 |
* using in-addr.arpa notation, but |
| 5723 |
* gethostbyaddr is more suitable for |
| 5724 |
* the majority of reverse lookups. |
| 5725 |
* </p> |
| 5726 |
* |
| 5727 |
* <p> |
| 5728 |
* Per DNS standards, email addresses are given in user.host format (for |
| 5729 |
* example: hostmaster.example.com as opposed to [email protected]), |
| 5730 |
* be sure to check this value and modify if necessary before using it |
| 5731 |
* with a functions such as mail. |
| 5732 |
* </p> |
| 5733 |
* @param type int[optional] <p> |
| 5734 |
* By default, dns_get_record will search for any |
| 5735 |
* resource records associated with hostname. |
| 5736 |
* To limit the query, specify the optional type |
| 5737 |
* parameter. May be any one of the following: |
| 5738 |
* DNS_A, DNS_CNAME, |
| 5739 |
* DNS_HINFO, DNS_MX, |
| 5740 |
* DNS_NS, DNS_PTR, |
| 5741 |
* DNS_SOA, DNS_TXT, |
| 5742 |
* DNS_AAAA, DNS_SRV, |
| 5743 |
* DNS_NAPTR, DNS_A6, |
| 5744 |
* DNS_ALL or DNS_ANY. |
| 5745 |
* </p> |
| 5746 |
* |
| 5747 |
* <p> |
| 5748 |
* Because of eccentricities in the performance of libresolv |
| 5749 |
* between platforms, DNS_ANY will not |
| 5750 |
* always return every record, the slower DNS_ALL |
| 5751 |
* will collect all records more reliably. |
| 5752 |
* </p> |
| 5753 |
* @param authns array[optional] <p> |
| 5754 |
* Passed by reference and, if given, will be populated with Resource |
| 5755 |
* Records for the Authoritative Name Servers. |
| 5756 |
* </p> |
| 5757 |
* @param addtl array[optional] <p> |
| 5758 |
* Passed by reference and, if given, will be populated with any |
| 5759 |
* Additional Records. |
| 5760 |
* </p> |
| 5761 |
* @param raw bool[optional] <p> |
| 5762 |
* In case of raw mode, we query only the requestd type instead of looping |
| 5763 |
* type by type before going with the additional info stuff. |
| 5764 |
* </p> |
| 5765 |
* @return array This function returns an array of associative arrays, |
| 5766 |
* &return.falseforfailure;. Each associative array contains |
| 5767 |
* at minimum the following keys: |
| 5768 |
* <table> |
| 5769 |
* Basic DNS attributes |
| 5770 |
* |
| 5771 |
* |
| 5772 |
* <tr valign="top"> |
| 5773 |
* <td>Attribute</td> |
| 5774 |
* <td>Meaning</td> |
| 5775 |
* </tr> |
| 5776 |
* |
| 5777 |
* |
| 5778 |
* <tr valign="top"> |
| 5779 |
* <td>host</td> |
| 5780 |
* <td> |
| 5781 |
* The record in the DNS namespace to which the rest of the associated data refers. |
| 5782 |
* </td> |
| 5783 |
* </tr> |
| 5784 |
* <tr valign="top"> |
| 5785 |
* <td>class</td> |
| 5786 |
* <td> |
| 5787 |
* dns_get_record only returns Internet class records and as |
| 5788 |
* such this parameter will always return IN. |
| 5789 |
* </td> |
| 5790 |
* </tr> |
| 5791 |
* <tr valign="top"> |
| 5792 |
* <td>type</td> |
| 5793 |
* <td> |
| 5794 |
* String containing the record type. Additional attributes will also be contained |
| 5795 |
* in the resulting array dependant on the value of type. See table below. |
| 5796 |
* </td> |
| 5797 |
* </tr> |
| 5798 |
* <tr valign="top"> |
| 5799 |
* <td>ttl</td> |
| 5800 |
* <td> |
| 5801 |
* "Time To Live" remaining for this record. This will not equal |
| 5802 |
* the record's original ttl, but will rather equal the original ttl minus whatever |
| 5803 |
* length of time has passed since the authoritative name server was queried. |
| 5804 |
* </td> |
| 5805 |
* </tr> |
| 5806 |
* |
| 5807 |
* |
| 5808 |
* </table> |
| 5809 |
* </p> |
| 5810 |
* <p> |
| 5811 |
* <table> |
| 5812 |
* Other keys in associative arrays dependant on 'type' |
| 5813 |
* |
| 5814 |
* |
| 5815 |
* <tr valign="top"> |
| 5816 |
* <td>Type</td> |
| 5817 |
* <td>Extra Columns</td> |
| 5818 |
* </tr> |
| 5819 |
* |
| 5820 |
* |
| 5821 |
* <tr valign="top"> |
| 5822 |
* <td>A</td> |
| 5823 |
* <td> |
| 5824 |
* ip: An IPv4 addresses in dotted decimal notation. |
| 5825 |
* </td> |
| 5826 |
* </tr> |
| 5827 |
* <tr valign="top"> |
| 5828 |
* <td>MX</td> |
| 5829 |
* <td> |
| 5830 |
* pri: Priority of mail exchanger. |
| 5831 |
* Lower numbers indicate greater priority. |
| 5832 |
* target: FQDN of the mail exchanger. |
| 5833 |
* See also dns_get_mx. |
| 5834 |
* </td> |
| 5835 |
* </tr> |
| 5836 |
* <tr valign="top"> |
| 5837 |
* <td>CNAME</td> |
| 5838 |
* <td> |
| 5839 |
* target: FQDN of location in DNS namespace to which |
| 5840 |
* the record is aliased. |
| 5841 |
* </td> |
| 5842 |
* </tr> |
| 5843 |
* <tr valign="top"> |
| 5844 |
* <td>NS</td> |
| 5845 |
* <td> |
| 5846 |
* target: FQDN of the name server which is authoritative |
| 5847 |
* for this hostname. |
| 5848 |
* </td> |
| 5849 |
* </tr> |
| 5850 |
* <tr valign="top"> |
| 5851 |
* <td>PTR</td> |
| 5852 |
* <td> |
| 5853 |
* target: Location within the DNS namespace to which |
| 5854 |
* this record points. |
| 5855 |
* </td> |
| 5856 |
* </tr> |
| 5857 |
* <tr valign="top"> |
| 5858 |
* <td>TXT</td> |
| 5859 |
* <td> |
| 5860 |
* txt: Arbitrary string data associated with this record. |
| 5861 |
* </td> |
| 5862 |
* </tr> |
| 5863 |
* <tr valign="top"> |
| 5864 |
* <td>HINFO</td> |
| 5865 |
* <td> |
| 5866 |
* cpu: IANA number designating the CPU of the machine |
| 5867 |
* referenced by this record. |
| 5868 |
* os: IANA number designating the Operating System on |
| 5869 |
* the machine referenced by this record. |
| 5870 |
* See IANA's Operating System |
| 5871 |
* Names for the meaning of these values. |
| 5872 |
* </td> |
| 5873 |
* </tr> |
| 5874 |
* <tr valign="top"> |
| 5875 |
* <td>SOA</td> |
| 5876 |
* <td> |
| 5877 |
* mname: FQDN of the machine from which the resource |
| 5878 |
* records originated. |
| 5879 |
* rname: Email address of the administrative contain |
| 5880 |
* for this domain. |
| 5881 |
* serial: Serial # of this revision of the requested |
| 5882 |
* domain. |
| 5883 |
* refresh: Refresh interval (seconds) secondary name |
| 5884 |
* servers should use when updating remote copies of this domain. |
| 5885 |
* retry: Length of time (seconds) to wait after a |
| 5886 |
* failed refresh before making a second attempt. |
| 5887 |
* expire: Maximum length of time (seconds) a secondary |
| 5888 |
* DNS server should retain remote copies of the zone data without a |
| 5889 |
* successful refresh before discarding. |
| 5890 |
* minimum-ttl: Minimum length of time (seconds) a |
| 5891 |
* client can continue to use a DNS resolution before it should request |
| 5892 |
* a new resolution from the server. Can be overridden by individual |
| 5893 |
* resource records. |
| 5894 |
* </td> |
| 5895 |
* </tr> |
| 5896 |
* <tr valign="top"> |
| 5897 |
* <td>AAAA</td> |
| 5898 |
* <td> |
| 5899 |
* ipv6: IPv6 address |
| 5900 |
* </td> |
| 5901 |
* </tr> |
| 5902 |
* <tr valign="top"> |
| 5903 |
* <td>A6(PHP >= 5.1.0)</td> |
| 5904 |
* <td> |
| 5905 |
* masklen: Length (in bits) to inherit from the target |
| 5906 |
* specified by chain. |
| 5907 |
* ipv6: Address for this specific record to merge with |
| 5908 |
* chain. |
| 5909 |
* chain: Parent record to merge with |
| 5910 |
* ipv6 data. |
| 5911 |
* </td> |
| 5912 |
* </tr> |
| 5913 |
* <tr valign="top"> |
| 5914 |
* <td>SRV</td> |
| 5915 |
* <td> |
| 5916 |
* pri: (Priority) lowest priorities should be used first. |
| 5917 |
* weight: Ranking to weight which of commonly prioritized |
| 5918 |
* targets should be chosen at random. |
| 5919 |
* target and port: hostname and port |
| 5920 |
* where the requested service can be found. |
| 5921 |
* For additional information see: RFC 2782 |
| 5922 |
* </td> |
| 5923 |
* </tr> |
| 5924 |
* <tr valign="top"> |
| 5925 |
* <td>NAPTR</td> |
| 5926 |
* <td> |
| 5927 |
* order and pref: Equivalent to |
| 5928 |
* pri and weight above. |
| 5929 |
* flags, services, regex, |
| 5930 |
* and replacement: Parameters as defined by |
| 5931 |
* RFC 2915. |
| 5932 |
* </td> |
| 5933 |
* </tr> |
| 5934 |
* |
| 5935 |
* |
| 5936 |
* </table> |
| 5937 |
*/ |
| 5938 |
function dns_get_record ($hostname, $type = null, array &$authns = null, array &$addtl = null, &$raw = null) {} |
| 5939 |
|
| 5940 |
/** |
| 5941 |
* Get the integer value of a variable |
| 5942 |
* @link http://www.php.net/manual/en/function.intval.php |
| 5943 |
* @param var mixed <p> |
| 5944 |
* The scalar value being converted to an integer |
| 5945 |
* </p> |
| 5946 |
* @param base int[optional] <p> |
| 5947 |
* The base for the conversion |
| 5948 |
* </p> |
| 5949 |
* |
| 5950 |
* <p> |
| 5951 |
* If base is 0, the base used is determined |
| 5952 |
* by the format of var: |
| 5953 |
* |
| 5954 |
* |
| 5955 |
* |
| 5956 |
* if string includes a "0x" (or "0X") prefix, the base is taken |
| 5957 |
* as 16 (hex); otherwise, |
| 5958 |
* @return int The integer value of var on success, or 0 on |
| 5959 |
* failure. Empty arrays return 0, non-empty arrays return 1. |
| 5960 |
* </p> |
| 5961 |
* <p> |
| 5962 |
* The maximum value depends on the system. 32 bit systems have a |
| 5963 |
* maximum signed integer range of -2147483648 to 2147483647. So for example |
| 5964 |
* on such a system, intval('1000000000000') will return |
| 5965 |
* 2147483647. The maximum signed integer value for 64 bit systems is |
| 5966 |
* 9223372036854775807. |
| 5967 |
* </p> |
| 5968 |
* <p> |
| 5969 |
* Strings will most likely return 0 although this depends on the |
| 5970 |
* leftmost characters of the string. The common rules of |
| 5971 |
* integer casting |
| 5972 |
* apply. |
| 5973 |
*/ |
| 5974 |
function intval ($var, $base = null) {} |
| 5975 |
|
| 5976 |
/** |
| 5977 |
* Get float value of a variable |
| 5978 |
* @link http://www.php.net/manual/en/function.floatval.php |
| 5979 |
* @param var mixed <p> |
| 5980 |
* May be any scalar type. floatval should not be used |
| 5981 |
* on objects, as doing so will emit an E_NOTICE level |
| 5982 |
* error and return 1. |
| 5983 |
* </p> |
| 5984 |
* @return float The float value of the given variable. Empty arrays return 0, non-empty |
| 5985 |
* arrays return 1. |
| 5986 |
* </p> |
| 5987 |
* <p> |
| 5988 |
* Strings will most likely return 0 although this depends on the |
| 5989 |
* leftmost characters of the string. The common rules of |
| 5990 |
* float casting |
| 5991 |
* apply. |
| 5992 |
*/ |
| 5993 |
function floatval ($var) {} |
| 5994 |
|
| 5995 |
/** |
| 5996 |
* &Alias; <function>floatval</function> |
| 5997 |
* @link http://www.php.net/manual/en/function.doubleval.php |
| 5998 |
* @param var |
| 5999 |
*/ |
| 6000 |
function doubleval ($var) {} |
| 6001 |
|
| 6002 |
/** |
| 6003 |
* Get string value of a variable |
| 6004 |
* @link http://www.php.net/manual/en/function.strval.php |
| 6005 |
* @param var mixed <p> |
| 6006 |
* The variable that is being converted to a string. |
| 6007 |
* </p> |
| 6008 |
* <p> |
| 6009 |
* var may be any scalar type or an object that |
| 6010 |
* implements the __toString() |
| 6011 |
* method. You cannot use strval on arrays or on |
| 6012 |
* objects that do not implement the |
| 6013 |
* __toString() method. |
| 6014 |
* </p> |
| 6015 |
* @return string The string value of var. |
| 6016 |
*/ |
| 6017 |
function strval ($var) {} |
| 6018 |
|
| 6019 |
/** |
| 6020 |
* Get the boolean value of a variable |
| 6021 |
* @link http://www.php.net/manual/en/function.boolval.php |
| 6022 |
* @param var mixed <p> |
| 6023 |
* The scalar value being converted to a boolean. |
| 6024 |
* </p> |
| 6025 |
* @return boolean The boolean value of var. |
| 6026 |
*/ |
| 6027 |
function boolval ($var) {} |
| 6028 |
|
| 6029 |
/** |
| 6030 |
* Get the type of a variable |
| 6031 |
* @link http://www.php.net/manual/en/function.gettype.php |
| 6032 |
* @param var mixed <p> |
| 6033 |
* The variable being type checked. |
| 6034 |
* </p> |
| 6035 |
* @return string Possible values for the returned string are: |
| 6036 |
* |
| 6037 |
* |
| 6038 |
* |
| 6039 |
* "boolean" |
| 6040 |
* |
| 6041 |
* |
| 6042 |
* |
| 6043 |
* |
| 6044 |
* "integer" |
| 6045 |
* |
| 6046 |
* |
| 6047 |
* |
| 6048 |
* |
| 6049 |
* "double" (for historical reasons "double" is |
| 6050 |
* returned in case of a float, and not simply |
| 6051 |
* "float") |
| 6052 |
* |
| 6053 |
* |
| 6054 |
* |
| 6055 |
* |
| 6056 |
* "string" |
| 6057 |
* |
| 6058 |
* |
| 6059 |
* |
| 6060 |
* |
| 6061 |
* "array" |
| 6062 |
* |
| 6063 |
* |
| 6064 |
* |
| 6065 |
* |
| 6066 |
* "object" |
| 6067 |
* |
| 6068 |
* |
| 6069 |
* |
| 6070 |
* |
| 6071 |
* "resource" |
| 6072 |
* |
| 6073 |
* |
| 6074 |
* |
| 6075 |
* |
| 6076 |
* "NULL" |
| 6077 |
* |
| 6078 |
* |
| 6079 |
* |
| 6080 |
* |
| 6081 |
* "unknown type" |
| 6082 |
*/ |
| 6083 |
function gettype ($var) {} |
| 6084 |
|
| 6085 |
/** |
| 6086 |
* Set the type of a variable |
| 6087 |
* @link http://www.php.net/manual/en/function.settype.php |
| 6088 |
* @param var mixed <p> |
| 6089 |
* The variable being converted. |
| 6090 |
* </p> |
| 6091 |
* @param type string <p> |
| 6092 |
* Possibles values of type are: |
| 6093 |
* |
| 6094 |
* |
| 6095 |
* |
| 6096 |
* "boolean" (or, since PHP 4.2.0, "bool") |
| 6097 |
* @return bool Returns true on success, false on failure. |
| 6098 |
*/ |
| 6099 |
function settype (&$var, $type) {} |
| 6100 |
|
| 6101 |
/** |
| 6102 |
* Finds whether a variable is &null; |
| 6103 |
* @link http://www.php.net/manual/en/function.is-null.php |
| 6104 |
* @param var mixed <p> |
| 6105 |
* The variable being evaluated. |
| 6106 |
* </p> |
| 6107 |
* @return bool true if var is null, false |
| 6108 |
* otherwise. |
| 6109 |
*/ |
| 6110 |
function is_null ($var) {} |
| 6111 |
|
| 6112 |
/** |
| 6113 |
* Finds whether a variable is a resource |
| 6114 |
* @link http://www.php.net/manual/en/function.is-resource.php |
| 6115 |
* @param var mixed <p> |
| 6116 |
* The variable being evaluated. |
| 6117 |
* </p> |
| 6118 |
* @return bool true if var is a resource, |
| 6119 |
* false otherwise. |
| 6120 |
*/ |
| 6121 |
function is_resource ($var) {} |
| 6122 |
|
| 6123 |
/** |
| 6124 |
* Finds out whether a variable is a boolean |
| 6125 |
* @link http://www.php.net/manual/en/function.is-bool.php |
| 6126 |
* @param var mixed <p> |
| 6127 |
* The variable being evaluated. |
| 6128 |
* </p> |
| 6129 |
* @return bool true if var is a boolean, |
| 6130 |
* false otherwise. |
| 6131 |
*/ |
| 6132 |
function is_bool ($var) {} |
| 6133 |
|
| 6134 |
/** |
| 6135 |
* &Alias; <function>is_int</function> |
| 6136 |
* @link http://www.php.net/manual/en/function.is-long.php |
| 6137 |
* @param var |
| 6138 |
*/ |
| 6139 |
function is_long ($var) {} |
| 6140 |
|
| 6141 |
/** |
| 6142 |
* Finds whether the type of a variable is float |
| 6143 |
* @link http://www.php.net/manual/en/function.is-float.php |
| 6144 |
* @param var mixed <p> |
| 6145 |
* The variable being evaluated. |
| 6146 |
* </p> |
| 6147 |
* @return bool true if var is a float, |
| 6148 |
* false otherwise. |
| 6149 |
*/ |
| 6150 |
function is_float ($var) {} |
| 6151 |
|
| 6152 |
/** |
| 6153 |
* Find whether the type of a variable is integer |
| 6154 |
* @link http://www.php.net/manual/en/function.is-int.php |
| 6155 |
* @param var mixed <p> |
| 6156 |
* The variable being evaluated. |
| 6157 |
* </p> |
| 6158 |
* @return bool true if var is an integer, |
| 6159 |
* false otherwise. |
| 6160 |
*/ |
| 6161 |
function is_int ($var) {} |
| 6162 |
|
| 6163 |
/** |
| 6164 |
* &Alias; <function>is_int</function> |
| 6165 |
* @link http://www.php.net/manual/en/function.is-integer.php |
| 6166 |
* @param var |
| 6167 |
*/ |
| 6168 |
function is_integer ($var) {} |
| 6169 |
|
| 6170 |
/** |
| 6171 |
* &Alias; <function>is_float</function> |
| 6172 |
* @link http://www.php.net/manual/en/function.is-double.php |
| 6173 |
* @param var |
| 6174 |
*/ |
| 6175 |
function is_double ($var) {} |
| 6176 |
|
| 6177 |
/** |
| 6178 |
* &Alias; <function>is_float</function> |
| 6179 |
* @link http://www.php.net/manual/en/function.is-real.php |
| 6180 |
* @param var |
| 6181 |
*/ |
| 6182 |
function is_real ($var) {} |
| 6183 |
|
| 6184 |
/** |
| 6185 |
* Finds whether a variable is a number or a numeric string |
| 6186 |
* @link http://www.php.net/manual/en/function.is-numeric.php |
| 6187 |
* @param var mixed <p> |
| 6188 |
* The variable being evaluated. |
| 6189 |
* </p> |
| 6190 |
* @return bool true if var is a number or a numeric |
| 6191 |
* string, false otherwise. |
| 6192 |
*/ |
| 6193 |
function is_numeric ($var) {} |
| 6194 |
|
| 6195 |
/** |
| 6196 |
* Find whether the type of a variable is string |
| 6197 |
* @link http://www.php.net/manual/en/function.is-string.php |
| 6198 |
* @param var mixed <p> |
| 6199 |
* The variable being evaluated. |
| 6200 |
* </p> |
| 6201 |
* @return bool true if var is of type string, |
| 6202 |
* false otherwise. |
| 6203 |
*/ |
| 6204 |
function is_string ($var) {} |
| 6205 |
|
| 6206 |
/** |
| 6207 |
* Finds whether a variable is an array |
| 6208 |
* @link http://www.php.net/manual/en/function.is-array.php |
| 6209 |
* @param var mixed <p> |
| 6210 |
* The variable being evaluated. |
| 6211 |
* </p> |
| 6212 |
* @return bool true if var is an array, |
| 6213 |
* false otherwise. |
| 6214 |
*/ |
| 6215 |
function is_array ($var) {} |
| 6216 |
|
| 6217 |
/** |
| 6218 |
* Finds whether a variable is an object |
| 6219 |
* @link http://www.php.net/manual/en/function.is-object.php |
| 6220 |
* @param var mixed <p> |
| 6221 |
* The variable being evaluated. |
| 6222 |
* </p> |
| 6223 |
* @return bool true if var is an object, |
| 6224 |
* false otherwise. |
| 6225 |
*/ |
| 6226 |
function is_object ($var) {} |
| 6227 |
|
| 6228 |
/** |
| 6229 |
* Finds whether a variable is a scalar |
| 6230 |
* @link http://www.php.net/manual/en/function.is-scalar.php |
| 6231 |
* @param var mixed <p> |
| 6232 |
* The variable being evaluated. |
| 6233 |
* </p> |
| 6234 |
* @return bool true if var is a scalar false |
| 6235 |
* otherwise. |
| 6236 |
*/ |
| 6237 |
function is_scalar ($var) {} |
| 6238 |
|
| 6239 |
/** |
| 6240 |
* Verify that the contents of a variable can be called as a function |
| 6241 |
* @link http://www.php.net/manual/en/function.is-callable.php |
| 6242 |
* @param name callable <p> |
| 6243 |
* The callback function to check |
| 6244 |
* </p> |
| 6245 |
* @param syntax_only bool[optional] <p> |
| 6246 |
* If set to true the function only verifies that |
| 6247 |
* name might be a function or method. It will only |
| 6248 |
* reject simple variables that are not strings, or an array that does |
| 6249 |
* not have a valid structure to be used as a callback. The valid ones |
| 6250 |
* are supposed to have only 2 entries, the first of which is an object |
| 6251 |
* or a string, and the second a string. |
| 6252 |
* </p> |
| 6253 |
* @param callable_name string[optional] <p> |
| 6254 |
* Receives the "callable name". In the example below it is |
| 6255 |
* "someClass::someMethod". Note, however, that despite the implication |
| 6256 |
* that someClass::SomeMethod() is a callable static method, this is not |
| 6257 |
* the case. |
| 6258 |
* </p> |
| 6259 |
* @return bool true if name is callable, false |
| 6260 |
* otherwise. |
| 6261 |
*/ |
| 6262 |
function is_callable ($name, $syntax_only = null, &$callable_name = null) {} |
| 6263 |
|
| 6264 |
/** |
| 6265 |
* Closes process file pointer |
| 6266 |
* @link http://www.php.net/manual/en/function.pclose.php |
| 6267 |
* @param handle resource <p> |
| 6268 |
* The file pointer must be valid, and must have been returned by a |
| 6269 |
* successful call to popen. |
| 6270 |
* </p> |
| 6271 |
* @return int the termination status of the process that was run. In case of |
| 6272 |
* an error then -1 is returned. |
| 6273 |
*/ |
| 6274 |
function pclose ($handle) {} |
| 6275 |
|
| 6276 |
/** |
| 6277 |
* Opens process file pointer |
| 6278 |
* @link http://www.php.net/manual/en/function.popen.php |
| 6279 |
* @param command string <p> |
| 6280 |
* The command |
| 6281 |
* </p> |
| 6282 |
* @param mode string <p> |
| 6283 |
* The mode |
| 6284 |
* </p> |
| 6285 |
* @return resource a file pointer identical to that returned by |
| 6286 |
* fopen, except that it is unidirectional (may |
| 6287 |
* only be used for reading or writing) and must be closed with |
| 6288 |
* pclose. This pointer may be used with |
| 6289 |
* fgets, fgetss, and |
| 6290 |
* fwrite. When the mode is 'r', the returned |
| 6291 |
* file pointer equals to the STDOUT of the command, when the mode |
| 6292 |
* is 'w', the returned file pointer equals to the STDIN of the |
| 6293 |
* command. |
| 6294 |
* </p> |
| 6295 |
* <p> |
| 6296 |
* If an error occurs, returns false. |
| 6297 |
*/ |
| 6298 |
function popen ($command, $mode) {} |
| 6299 |
|
| 6300 |
/** |
| 6301 |
* Outputs a file |
| 6302 |
* @link http://www.php.net/manual/en/function.readfile.php |
| 6303 |
* @param filename string <p> |
| 6304 |
* The filename being read. |
| 6305 |
* </p> |
| 6306 |
* @param use_include_path bool[optional] <p> |
| 6307 |
* You can use the optional second parameter and set it to true, if |
| 6308 |
* you want to search for the file in the include_path, too. |
| 6309 |
* </p> |
| 6310 |
* @param context resource[optional] <p> |
| 6311 |
* A context stream resource. |
| 6312 |
* </p> |
| 6313 |
* @return int the number of bytes read from the file. If an error |
| 6314 |
* occurs, false is returned and unless the function was called as |
| 6315 |
* @readfile, an error message is printed. |
| 6316 |
*/ |
| 6317 |
function readfile ($filename, $use_include_path = null, $context = null) {} |
| 6318 |
|
| 6319 |
/** |
| 6320 |
* Rewind the position of a file pointer |
| 6321 |
* @link http://www.php.net/manual/en/function.rewind.php |
| 6322 |
* @param handle resource <p> |
| 6323 |
* The file pointer must be valid, and must point to a file |
| 6324 |
* successfully opened by fopen. |
| 6325 |
* </p> |
| 6326 |
* @return bool Returns true on success, false on failure. |
| 6327 |
*/ |
| 6328 |
function rewind ($handle) {} |
| 6329 |
|
| 6330 |
/** |
| 6331 |
* Removes directory |
| 6332 |
* @link http://www.php.net/manual/en/function.rmdir.php |
| 6333 |
* @param dirname string <p> |
| 6334 |
* Path to the directory. |
| 6335 |
* </p> |
| 6336 |
* @param context resource[optional] ¬e.context-support; |
| 6337 |
* @return bool Returns true on success, false on failure. |
| 6338 |
*/ |
| 6339 |
function rmdir ($dirname, $context = null) {} |
| 6340 |
|
| 6341 |
/** |
| 6342 |
* Changes the current umask |
| 6343 |
* @link http://www.php.net/manual/en/function.umask.php |
| 6344 |
* @param mask int[optional] <p> |
| 6345 |
* The new umask. |
| 6346 |
* </p> |
| 6347 |
* @return int umask without arguments simply returns the |
| 6348 |
* current umask otherwise the old umask is returned. |
| 6349 |
*/ |
| 6350 |
function umask ($mask = null) {} |
| 6351 |
|
| 6352 |
/** |
| 6353 |
* Closes an open file pointer |
| 6354 |
* @link http://www.php.net/manual/en/function.fclose.php |
| 6355 |
* @param handle resource <p> |
| 6356 |
* The file pointer must be valid, and must point to a file successfully |
| 6357 |
* opened by fopen or fsockopen. |
| 6358 |
* </p> |
| 6359 |
* @return bool Returns true on success, false on failure. |
| 6360 |
*/ |
| 6361 |
function fclose ($handle) {} |
| 6362 |
|
| 6363 |
/** |
| 6364 |
* Tests for end-of-file on a file pointer |
| 6365 |
* @link http://www.php.net/manual/en/function.feof.php |
| 6366 |
* @param handle resource &fs.validfp.all; |
| 6367 |
* @return bool true if the file pointer is at EOF or an error occurs |
| 6368 |
* (including socket timeout); otherwise returns false. |
| 6369 |
*/ |
| 6370 |
function feof ($handle) {} |
| 6371 |
|
| 6372 |
/** |
| 6373 |
* Gets character from file pointer |
| 6374 |
* @link http://www.php.net/manual/en/function.fgetc.php |
| 6375 |
* @param handle resource &fs.validfp.all; |
| 6376 |
* @return string a string containing a single character read from the file pointed |
| 6377 |
* to by handle. Returns false on EOF. |
| 6378 |
*/ |
| 6379 |
function fgetc ($handle) {} |
| 6380 |
|
| 6381 |
/** |
| 6382 |
* Gets line from file pointer |
| 6383 |
* @link http://www.php.net/manual/en/function.fgets.php |
| 6384 |
* @param handle resource &fs.validfp.all; |
| 6385 |
* @param length int[optional] <p> |
| 6386 |
* Reading ends when length - 1 bytes have been |
| 6387 |
* read, or a newline (which is included in the return value), or an EOF |
| 6388 |
* (whichever comes first). If no length is specified, it will keep |
| 6389 |
* reading from the stream until it reaches the end of the line. |
| 6390 |
* </p> |
| 6391 |
* |
| 6392 |
* <p> |
| 6393 |
* Until PHP 4.3.0, omitting it would assume 1024 as the line length. |
| 6394 |
* If the majority of the lines in the file are all larger than 8KB, |
| 6395 |
* it is more resource efficient for your script to specify the maximum |
| 6396 |
* line length. |
| 6397 |
* </p> |
| 6398 |
* @return string a string of up to length - 1 bytes read from |
| 6399 |
* the file pointed to by handle. If there is no more data |
| 6400 |
* to read in the file pointer, then false is returned. |
| 6401 |
* </p> |
| 6402 |
* <p> |
| 6403 |
* If an error occurs, false is returned. |
| 6404 |
*/ |
| 6405 |
function fgets ($handle, $length = null) {} |
| 6406 |
|
| 6407 |
/** |
| 6408 |
* Gets line from file pointer and strip HTML tags |
| 6409 |
* @link http://www.php.net/manual/en/function.fgetss.php |
| 6410 |
* @param handle resource &fs.validfp.all; |
| 6411 |
* @param length int[optional] <p> |
| 6412 |
* Length of the data to be retrieved. |
| 6413 |
* </p> |
| 6414 |
* @param allowable_tags string[optional] <p> |
| 6415 |
* You can use the optional third parameter to specify tags which should |
| 6416 |
* not be stripped. |
| 6417 |
* </p> |
| 6418 |
* @return string a string of up to length - 1 bytes read from |
| 6419 |
* the file pointed to by handle, with all HTML and PHP |
| 6420 |
* code stripped. |
| 6421 |
* </p> |
| 6422 |
* <p> |
| 6423 |
* If an error occurs, returns false. |
| 6424 |
*/ |
| 6425 |
function fgetss ($handle, $length = null, $allowable_tags = null) {} |
| 6426 |
|
| 6427 |
/** |
| 6428 |
* Binary-safe file read |
| 6429 |
* @link http://www.php.net/manual/en/function.fread.php |
| 6430 |
* @param handle resource &fs.file.pointer; |
| 6431 |
* @param length int <p> |
| 6432 |
* Up to length number of bytes read. |
| 6433 |
* </p> |
| 6434 |
* @return string the read string &return.falseforfailure;. |
| 6435 |
*/ |
| 6436 |
function fread ($handle, $length) {} |
| 6437 |
|
| 6438 |
/** |
| 6439 |
* Opens file or URL |
| 6440 |
* @link http://www.php.net/manual/en/function.fopen.php |
| 6441 |
* @param filename string <p> |
| 6442 |
* If filename is of the form "scheme://...", it |
| 6443 |
* is assumed to be a URL and PHP will search for a protocol handler |
| 6444 |
* (also known as a wrapper) for that scheme. If no wrappers for that |
| 6445 |
* protocol are registered, PHP will emit a notice to help you track |
| 6446 |
* potential problems in your script and then continue as though |
| 6447 |
* filename specifies a regular file. |
| 6448 |
* </p> |
| 6449 |
* <p> |
| 6450 |
* If PHP has decided that filename specifies |
| 6451 |
* a local file, then it will try to open a stream on that file. |
| 6452 |
* The file must be accessible to PHP, so you need to ensure that |
| 6453 |
* the file access permissions allow this access. |
| 6454 |
* If you have enabled &safemode;, |
| 6455 |
* or open_basedir further |
| 6456 |
* restrictions may apply. |
| 6457 |
* </p> |
| 6458 |
* <p> |
| 6459 |
* If PHP has decided that filename specifies |
| 6460 |
* a registered protocol, and that protocol is registered as a |
| 6461 |
* network URL, PHP will check to make sure that |
| 6462 |
* allow_url_fopen is |
| 6463 |
* enabled. If it is switched off, PHP will emit a warning and |
| 6464 |
* the fopen call will fail. |
| 6465 |
* </p> |
| 6466 |
* |
| 6467 |
* <p> |
| 6468 |
* The list of supported protocols can be found in . Some protocols (also referred to as |
| 6469 |
* wrappers) support context |
| 6470 |
* and/or &php.ini; options. Refer to the specific page for the |
| 6471 |
* protocol in use for a list of options which can be set. (e.g. |
| 6472 |
* &php.ini; value user_agent used by the |
| 6473 |
* http wrapper). |
| 6474 |
* </p> |
| 6475 |
* |
| 6476 |
* <p> |
| 6477 |
* On the Windows platform, be careful to escape any backslashes |
| 6478 |
* used in the path to the file, or use forward slashes. |
| 6479 |
* |
| 6480 |
* |
| 6481 |
* ]]> |
| 6482 |
* |
| 6483 |
* |
| 6484 |
* </p> |
| 6485 |
* @param mode string <p> |
| 6486 |
* The mode parameter specifies the type of access |
| 6487 |
* you require to the stream. It may be any of the following: |
| 6488 |
* <table> |
| 6489 |
* |
| 6490 |
* A list of possible modes for fopen |
| 6491 |
* using mode |
| 6492 |
* |
| 6493 |
* |
| 6494 |
* |
| 6495 |
* <tr valign="top"> |
| 6496 |
* <td>mode</td> |
| 6497 |
* <td>Description</td> |
| 6498 |
* </tr> |
| 6499 |
* |
| 6500 |
* |
| 6501 |
* <tr valign="top"> |
| 6502 |
* <td>'r'</td> |
| 6503 |
* <td> |
| 6504 |
* Open for reading only; place the file pointer at the |
| 6505 |
* beginning of the file. |
| 6506 |
* </td> |
| 6507 |
* </tr> |
| 6508 |
* <tr valign="top"> |
| 6509 |
* <td>'r+'</td> |
| 6510 |
* <td> |
| 6511 |
* Open for reading and writing; place the file pointer at |
| 6512 |
* the beginning of the file. |
| 6513 |
* </td> |
| 6514 |
* </tr> |
| 6515 |
* <tr valign="top"> |
| 6516 |
* <td>'w'</td> |
| 6517 |
* <td> |
| 6518 |
* Open for writing only; place the file pointer at the |
| 6519 |
* beginning of the file and truncate the file to zero length. |
| 6520 |
* If the file does not exist, attempt to create it. |
| 6521 |
* </td> |
| 6522 |
* </tr> |
| 6523 |
* <tr valign="top"> |
| 6524 |
* <td>'w+'</td> |
| 6525 |
* <td> |
| 6526 |
* Open for reading and writing; place the file pointer at |
| 6527 |
* the beginning of the file and truncate the file to zero |
| 6528 |
* length. If the file does not exist, attempt to create it. |
| 6529 |
* </td> |
| 6530 |
* </tr> |
| 6531 |
* <tr valign="top"> |
| 6532 |
* <td>'a'</td> |
| 6533 |
* <td> |
| 6534 |
* Open for writing only; place the file pointer at the end of |
| 6535 |
* the file. If the file does not exist, attempt to create it. |
| 6536 |
* </td> |
| 6537 |
* </tr> |
| 6538 |
* <tr valign="top"> |
| 6539 |
* <td>'a+'</td> |
| 6540 |
* <td> |
| 6541 |
* Open for reading and writing; place the file pointer at |
| 6542 |
* the end of the file. If the file does not exist, attempt to |
| 6543 |
* create it. |
| 6544 |
* </td> |
| 6545 |
* </tr> |
| 6546 |
* <tr valign="top"> |
| 6547 |
* <td>'x'</td> |
| 6548 |
* <td> |
| 6549 |
* Create and open for writing only; place the file pointer at the |
| 6550 |
* beginning of the file. If the file already exists, the |
| 6551 |
* fopen call will fail by returning false and |
| 6552 |
* generating an error of level E_WARNING. If |
| 6553 |
* the file does not exist, attempt to create it. This is equivalent |
| 6554 |
* to specifying O_EXCL|O_CREAT flags for the |
| 6555 |
* underlying open(2) system call. |
| 6556 |
* </td> |
| 6557 |
* </tr> |
| 6558 |
* <tr valign="top"> |
| 6559 |
* <td>'x+'</td> |
| 6560 |
* <td> |
| 6561 |
* Create and open for reading and writing; otherwise it has the |
| 6562 |
* same behavior as 'x'. |
| 6563 |
* </td> |
| 6564 |
* </tr> |
| 6565 |
* <tr valign="top"> |
| 6566 |
* <td>'c'</td> |
| 6567 |
* <td> |
| 6568 |
* Open the file for writing only. If the file does not exist, it is |
| 6569 |
* created. If it exists, it is neither truncated (as opposed to |
| 6570 |
* 'w'), nor the call to this function fails (as is |
| 6571 |
* the case with 'x'). The file pointer is |
| 6572 |
* positioned on the beginning of the file. This may be useful if it's |
| 6573 |
* desired to get an advisory lock (see flock) |
| 6574 |
* before attempting to modify the file, as using |
| 6575 |
* 'w' could truncate the file before the lock |
| 6576 |
* was obtained (if truncation is desired, |
| 6577 |
* ftruncate can be used after the lock is |
| 6578 |
* requested). |
| 6579 |
* </td> |
| 6580 |
* </tr> |
| 6581 |
* <tr valign="top"> |
| 6582 |
* <td>'c+'</td> |
| 6583 |
* <td> |
| 6584 |
* Open the file for reading and writing; otherwise it has the same |
| 6585 |
* behavior as 'c'. |
| 6586 |
* </td> |
| 6587 |
* </tr> |
| 6588 |
* |
| 6589 |
* |
| 6590 |
* </table> |
| 6591 |
* </p> |
| 6592 |
* |
| 6593 |
* <p> |
| 6594 |
* Different operating system families have different line-ending |
| 6595 |
* conventions. When you write a text file and want to insert a line |
| 6596 |
* break, you need to use the correct line-ending character(s) for your |
| 6597 |
* operating system. Unix based systems use \n as the |
| 6598 |
* line ending character, Windows based systems use \r\n |
| 6599 |
* as the line ending characters and Macintosh based systems use |
| 6600 |
* \r as the line ending character. |
| 6601 |
* </p> |
| 6602 |
* <p> |
| 6603 |
* If you use the wrong line ending characters when writing your files, you |
| 6604 |
* might find that other applications that open those files will "look |
| 6605 |
* funny". |
| 6606 |
* </p> |
| 6607 |
* <p> |
| 6608 |
* Windows offers a text-mode translation flag ('t') |
| 6609 |
* which will transparently translate \n to |
| 6610 |
* \r\n when working with the file. In contrast, you |
| 6611 |
* can also use 'b' to force binary mode, which will not |
| 6612 |
* translate your data. To use these flags, specify either |
| 6613 |
* 'b' or 't' as the last character |
| 6614 |
* of the mode parameter. |
| 6615 |
* </p> |
| 6616 |
* <p> |
| 6617 |
* The default translation mode depends on the SAPI and version of PHP that |
| 6618 |
* you are using, so you are encouraged to always specify the appropriate |
| 6619 |
* flag for portability reasons. You should use the 't' |
| 6620 |
* mode if you are working with plain-text files and you use |
| 6621 |
* \n to delimit your line endings in your script, but |
| 6622 |
* expect your files to be readable with applications such as notepad. You |
| 6623 |
* should use the 'b' in all other cases. |
| 6624 |
* </p> |
| 6625 |
* <p> |
| 6626 |
* If you do not specify the 'b' flag when working with binary files, you |
| 6627 |
* may experience strange problems with your data, including broken image |
| 6628 |
* files and strange problems with \r\n characters. |
| 6629 |
* </p> |
| 6630 |
* |
| 6631 |
* |
| 6632 |
* <p> |
| 6633 |
* For portability, it is strongly recommended that you always |
| 6634 |
* use the 'b' flag when opening files with fopen. |
| 6635 |
* </p> |
| 6636 |
* |
| 6637 |
* |
| 6638 |
* <p> |
| 6639 |
* Again, for portability, it is also strongly recommended that |
| 6640 |
* you re-write code that uses or relies upon the 't' |
| 6641 |
* mode so that it uses the correct line endings and |
| 6642 |
* 'b' mode instead. |
| 6643 |
* </p> |
| 6644 |
* @param use_include_path bool[optional] <p> |
| 6645 |
* The optional third use_include_path parameter |
| 6646 |
* can be set to '1' or true if you want to search for the file in the |
| 6647 |
* include_path, too. |
| 6648 |
* </p> |
| 6649 |
* @param context resource[optional] ¬e.context-support; |
| 6650 |
* @return resource a file pointer resource on success, or false on error. |
| 6651 |
*/ |
| 6652 |
function fopen ($filename, $mode, $use_include_path = null, $context = null) {} |
| 6653 |
|
| 6654 |
/** |
| 6655 |
* Output all remaining data on a file pointer |
| 6656 |
* @link http://www.php.net/manual/en/function.fpassthru.php |
| 6657 |
* @param handle resource &fs.validfp.all; |
| 6658 |
* @return int If an error occurs, fpassthru returns |
| 6659 |
* false. Otherwise, fpassthru returns |
| 6660 |
* the number of characters read from handle |
| 6661 |
* and passed through to the output. |
| 6662 |
*/ |
| 6663 |
function fpassthru ($handle) {} |
| 6664 |
|
| 6665 |
/** |
| 6666 |
* Truncates a file to a given length |
| 6667 |
* @link http://www.php.net/manual/en/function.ftruncate.php |
| 6668 |
* @param handle resource <p> |
| 6669 |
* The file pointer. |
| 6670 |
* </p> |
| 6671 |
* |
| 6672 |
* <p> |
| 6673 |
* The handle must be open for writing. |
| 6674 |
* </p> |
| 6675 |
* @param size int <p> |
| 6676 |
* The size to truncate to. |
| 6677 |
* </p> |
| 6678 |
* |
| 6679 |
* <p> |
| 6680 |
* If size is larger than the file then the file |
| 6681 |
* is extended with null bytes. |
| 6682 |
* </p> |
| 6683 |
* <p> |
| 6684 |
* If size is smaller than the file then the file |
| 6685 |
* is truncated to that size. |
| 6686 |
* </p> |
| 6687 |
* @return bool Returns true on success, false on failure. |
| 6688 |
*/ |
| 6689 |
function ftruncate ($handle, $size) {} |
| 6690 |
|
| 6691 |
/** |
| 6692 |
* Gets information about a file using an open file pointer |
| 6693 |
* @link http://www.php.net/manual/en/function.fstat.php |
| 6694 |
* @param handle resource &fs.file.pointer; |
| 6695 |
* @return array an array with the statistics of the file; the format of the array |
| 6696 |
* is described in detail on the stat manual page. |
| 6697 |
*/ |
| 6698 |
function fstat ($handle) {} |
| 6699 |
|
| 6700 |
/** |
| 6701 |
* Seeks on a file pointer |
| 6702 |
* @link http://www.php.net/manual/en/function.fseek.php |
| 6703 |
* @param handle resource &fs.file.pointer; |
| 6704 |
* @param offset int <p> |
| 6705 |
* The offset. |
| 6706 |
* </p> |
| 6707 |
* <p> |
| 6708 |
* To move to a position before the end-of-file, you need to pass |
| 6709 |
* a negative value in offset and |
| 6710 |
* set whence |
| 6711 |
* to SEEK_END. |
| 6712 |
* </p> |
| 6713 |
* @param whence int[optional] <p> |
| 6714 |
* whence values are: |
| 6715 |
* |
| 6716 |
* SEEK_SET - Set position equal to offset bytes. |
| 6717 |
* SEEK_CUR - Set position to current location plus offset. |
| 6718 |
* SEEK_END - Set position to end-of-file plus offset. |
| 6719 |
* |
| 6720 |
* </p> |
| 6721 |
* @return int Upon success, returns 0; otherwise, returns -1. |
| 6722 |
*/ |
| 6723 |
function fseek ($handle, $offset, $whence = null) {} |
| 6724 |
|
| 6725 |
/** |
| 6726 |
* Returns the current position of the file read/write pointer |
| 6727 |
* @link http://www.php.net/manual/en/function.ftell.php |
| 6728 |
* @param handle resource <p> |
| 6729 |
* The file pointer must be valid, and must point to a file successfully |
| 6730 |
* opened by fopen or popen. |
| 6731 |
* ftell gives undefined results for append-only streams |
| 6732 |
* (opened with "a" flag). |
| 6733 |
* </p> |
| 6734 |
* @return int the position of the file pointer referenced by |
| 6735 |
* handle as an integer; i.e., its offset into the file stream. |
| 6736 |
* </p> |
| 6737 |
* <p> |
| 6738 |
* If an error occurs, returns false. |
| 6739 |
*/ |
| 6740 |
function ftell ($handle) {} |
| 6741 |
|
| 6742 |
/** |
| 6743 |
* Flushes the output to a file |
| 6744 |
* @link http://www.php.net/manual/en/function.fflush.php |
| 6745 |
* @param handle resource &fs.validfp.all; |
| 6746 |
* @return bool Returns true on success, false on failure. |
| 6747 |
*/ |
| 6748 |
function fflush ($handle) {} |
| 6749 |
|
| 6750 |
/** |
| 6751 |
* Binary-safe file write |
| 6752 |
* @link http://www.php.net/manual/en/function.fwrite.php |
| 6753 |
* @param handle resource &fs.file.pointer; |
| 6754 |
* @param string string <p> |
| 6755 |
* The string that is to be written. |
| 6756 |
* </p> |
| 6757 |
* @param length int[optional] <p> |
| 6758 |
* If the length argument is given, writing will |
| 6759 |
* stop after length bytes have been written or |
| 6760 |
* the end of string is reached, whichever comes |
| 6761 |
* first. |
| 6762 |
* </p> |
| 6763 |
* <p> |
| 6764 |
* Note that if the length argument is given, |
| 6765 |
* then the magic_quotes_runtime |
| 6766 |
* configuration option will be ignored and no slashes will be |
| 6767 |
* stripped from string. |
| 6768 |
* </p> |
| 6769 |
* @return int |
| 6770 |
*/ |
| 6771 |
function fwrite ($handle, $string, $length = null) {} |
| 6772 |
|
| 6773 |
/** |
| 6774 |
* &Alias; <function>fwrite</function> |
| 6775 |
* @link http://www.php.net/manual/en/function.fputs.php |
| 6776 |
* @param fp |
| 6777 |
* @param str |
| 6778 |
* @param length[optional] |
| 6779 |
*/ |
| 6780 |
function fputs ($fp, $str, $length) {} |
| 6781 |
|
| 6782 |
/** |
| 6783 |
* Makes directory |
| 6784 |
* @link http://www.php.net/manual/en/function.mkdir.php |
| 6785 |
* @param pathname string <p> |
| 6786 |
* The directory path. |
| 6787 |
* </p> |
| 6788 |
* @param mode int[optional] <p> |
| 6789 |
* The mode is 0777 by default, which means the widest possible |
| 6790 |
* access. For more information on modes, read the details |
| 6791 |
* on the chmod page. |
| 6792 |
* </p> |
| 6793 |
* |
| 6794 |
* <p> |
| 6795 |
* mode is ignored on Windows. |
| 6796 |
* </p> |
| 6797 |
* |
| 6798 |
* <p> |
| 6799 |
* Note that you probably want to specify the mode as an octal number, |
| 6800 |
* which means it should have a leading zero. The mode is also modified |
| 6801 |
* by the current umask, which you can change using |
| 6802 |
* umask. |
| 6803 |
* </p> |
| 6804 |
* @param recursive bool[optional] <p> |
| 6805 |
* Allows the creation of nested directories specified in the |
| 6806 |
* pathname. |
| 6807 |
* </p> |
| 6808 |
* @param context resource[optional] ¬e.context-support; |
| 6809 |
* @return bool Returns true on success, false on failure. |
| 6810 |
*/ |
| 6811 |
function mkdir ($pathname, $mode = null, $recursive = null, $context = null) {} |
| 6812 |
|
| 6813 |
/** |
| 6814 |
* Renames a file or directory |
| 6815 |
* @link http://www.php.net/manual/en/function.rename.php |
| 6816 |
* @param oldname string <p> |
| 6817 |
* </p> |
| 6818 |
* |
| 6819 |
* <p> |
| 6820 |
* The old name. The wrapper used in oldname |
| 6821 |
* must match the wrapper used in |
| 6822 |
* newname. |
| 6823 |
* </p> |
| 6824 |
* @param newname string <p> |
| 6825 |
* The new name. |
| 6826 |
* </p> |
| 6827 |
* @param context resource[optional] ¬e.context-support; |
| 6828 |
* @return bool Returns true on success, false on failure. |
| 6829 |
*/ |
| 6830 |
function rename ($oldname, $newname, $context = null) {} |
| 6831 |
|
| 6832 |
/** |
| 6833 |
* Copies file |
| 6834 |
* @link http://www.php.net/manual/en/function.copy.php |
| 6835 |
* @param source string <p> |
| 6836 |
* Path to the source file. |
| 6837 |
* </p> |
| 6838 |
* @param dest string <p> |
| 6839 |
* The destination path. If dest is a URL, the |
| 6840 |
* copy operation may fail if the wrapper does not support overwriting of |
| 6841 |
* existing files. |
| 6842 |
* </p> |
| 6843 |
* |
| 6844 |
* <p> |
| 6845 |
* If the destination file already exists, it will be overwritten. |
| 6846 |
* </p> |
| 6847 |
* @param context resource[optional] <p> |
| 6848 |
* A valid context resource created with |
| 6849 |
* stream_context_create. |
| 6850 |
* </p> |
| 6851 |
* @return bool Returns true on success, false on failure. |
| 6852 |
*/ |
| 6853 |
function copy ($source, $dest, $context = null) {} |
| 6854 |
|
| 6855 |
/** |
| 6856 |
* Create file with unique file name |
| 6857 |
* @link http://www.php.net/manual/en/function.tempnam.php |
| 6858 |
* @param dir string <p> |
| 6859 |
* The directory where the temporary filename will be created. |
| 6860 |
* </p> |
| 6861 |
* @param prefix string <p> |
| 6862 |
* The prefix of the generated temporary filename. |
| 6863 |
* </p> |
| 6864 |
* |
| 6865 |
* |
| 6866 |
* Windows uses only the first three characters of prefix. |
| 6867 |
* @return string the new temporary filename (with path), or false on |
| 6868 |
* failure. |
| 6869 |
*/ |
| 6870 |
function tempnam ($dir, $prefix) {} |
| 6871 |
|
| 6872 |
/** |
| 6873 |
* Creates a temporary file |
| 6874 |
* @link http://www.php.net/manual/en/function.tmpfile.php |
| 6875 |
* @return resource a file handle, similar to the one returned by |
| 6876 |
* fopen, for the new file&return.falseforfailure;. |
| 6877 |
*/ |
| 6878 |
function tmpfile () {} |
| 6879 |
|
| 6880 |
/** |
| 6881 |
* Reads entire file into an array |
| 6882 |
* @link http://www.php.net/manual/en/function.file.php |
| 6883 |
* @param filename string <p> |
| 6884 |
* Path to the file. |
| 6885 |
* </p> |
| 6886 |
* &tip.fopen-wrapper; |
| 6887 |
* @param flags int[optional] <p> |
| 6888 |
* The optional parameter flags can be one, or |
| 6889 |
* more, of the following constants: |
| 6890 |
* |
| 6891 |
* |
| 6892 |
* |
| 6893 |
* FILE_USE_INCLUDE_PATH |
| 6894 |
* |
| 6895 |
* |
| 6896 |
* |
| 6897 |
* Search for the file in the include_path. |
| 6898 |
* @param context resource[optional] <p> |
| 6899 |
* A context resource created with the |
| 6900 |
* stream_context_create function. |
| 6901 |
* </p> |
| 6902 |
* <p> |
| 6903 |
* ¬e.context-support; |
| 6904 |
* </p> |
| 6905 |
* @return array the file in an array. Each element of the array corresponds to a |
| 6906 |
* line in the file, with the newline still attached. Upon failure, |
| 6907 |
* file returns false. |
| 6908 |
* </p> |
| 6909 |
* |
| 6910 |
* <p> |
| 6911 |
* Each line in the resulting array will include the line ending, unless |
| 6912 |
* FILE_IGNORE_NEW_LINES is used, so you still need to |
| 6913 |
* use rtrim if you do not want the line ending |
| 6914 |
* present. |
| 6915 |
*/ |
| 6916 |
function file ($filename, $flags = null, $context = null) {} |
| 6917 |
|
| 6918 |
/** |
| 6919 |
* Reads entire file into a string |
| 6920 |
* @link http://www.php.net/manual/en/function.file-get-contents.php |
| 6921 |
* @param filename string <p> |
| 6922 |
* Name of the file to read. |
| 6923 |
* </p> |
| 6924 |
* @param use_include_path bool[optional] <p> |
| 6925 |
* As of PHP 5 the FILE_USE_INCLUDE_PATH constant can be used |
| 6926 |
* to trigger include path |
| 6927 |
* search. |
| 6928 |
* </p> |
| 6929 |
* @param context resource[optional] <p> |
| 6930 |
* A valid context resource created with |
| 6931 |
* stream_context_create. If you don't need to use a |
| 6932 |
* custom context, you can skip this parameter by &null;. |
| 6933 |
* </p> |
| 6934 |
* @param offset int[optional] <p> |
| 6935 |
* The offset where the reading starts on the original stream. |
| 6936 |
* </p> |
| 6937 |
* <p> |
| 6938 |
* Seeking (offset) is not supported with remote files. |
| 6939 |
* Attempting to seek on non-local files may work with small offsets, but this |
| 6940 |
* is unpredictable because it works on the buffered stream. |
| 6941 |
* </p> |
| 6942 |
* @param maxlen int[optional] <p> |
| 6943 |
* Maximum length of data read. The default is to read until end |
| 6944 |
* of file is reached. Note that this parameter is applied to the |
| 6945 |
* stream processed by the filters. |
| 6946 |
* </p> |
| 6947 |
* @return string The function returns the read data &return.falseforfailure;. |
| 6948 |
*/ |
| 6949 |
function file_get_contents ($filename, $use_include_path = null, $context = null, $offset = null, $maxlen = null) {} |
| 6950 |
|
| 6951 |
/** |
| 6952 |
* Write a string to a file |
| 6953 |
* @link http://www.php.net/manual/en/function.file-put-contents.php |
| 6954 |
* @param filename string <p> |
| 6955 |
* Path to the file where to write the data. |
| 6956 |
* </p> |
| 6957 |
* @param data mixed <p> |
| 6958 |
* The data to write. Can be either a string, an |
| 6959 |
* array or a stream resource. |
| 6960 |
* </p> |
| 6961 |
* <p> |
| 6962 |
* If data is a stream resource, the |
| 6963 |
* remaining buffer of that stream will be copied to the specified file. |
| 6964 |
* This is similar with using stream_copy_to_stream. |
| 6965 |
* </p> |
| 6966 |
* <p> |
| 6967 |
* You can also specify the data parameter as a single |
| 6968 |
* dimension array. This is equivalent to |
| 6969 |
* file_put_contents($filename, implode('', $array)). |
| 6970 |
* </p> |
| 6971 |
* @param flags int[optional] <p> |
| 6972 |
* The value of flags can be any combination of |
| 6973 |
* the following flags, joined with the binary OR (|) |
| 6974 |
* operator. |
| 6975 |
* </p> |
| 6976 |
* <p> |
| 6977 |
* <table> |
| 6978 |
* Available flags |
| 6979 |
* |
| 6980 |
* |
| 6981 |
* <tr valign="top"> |
| 6982 |
* <td>Flag</td> |
| 6983 |
* <td>Description</td> |
| 6984 |
* </tr> |
| 6985 |
* |
| 6986 |
* |
| 6987 |
* <tr valign="top"> |
| 6988 |
* <td> |
| 6989 |
* FILE_USE_INCLUDE_PATH |
| 6990 |
* </td> |
| 6991 |
* <td> |
| 6992 |
* Search for filename in the include directory. |
| 6993 |
* See include_path for more |
| 6994 |
* information. |
| 6995 |
* </td> |
| 6996 |
* </tr> |
| 6997 |
* <tr valign="top"> |
| 6998 |
* <td> |
| 6999 |
* FILE_APPEND |
| 7000 |
* </td> |
| 7001 |
* <td> |
| 7002 |
* If file filename already exists, append |
| 7003 |
* the data to the file instead of overwriting it. |
| 7004 |
* </td> |
| 7005 |
* </tr> |
| 7006 |
* <tr valign="top"> |
| 7007 |
* <td> |
| 7008 |
* LOCK_EX |
| 7009 |
* </td> |
| 7010 |
* <td> |
| 7011 |
* Acquire an exclusive lock on the file while proceeding to the |
| 7012 |
* writing. |
| 7013 |
* </td> |
| 7014 |
* </tr> |
| 7015 |
* |
| 7016 |
* |
| 7017 |
* </table> |
| 7018 |
* </p> |
| 7019 |
* @param context resource[optional] <p> |
| 7020 |
* A valid context resource created with |
| 7021 |
* stream_context_create. |
| 7022 |
* </p> |
| 7023 |
* @return int This function returns the number of bytes that were written to the file, or |
| 7024 |
* false on failure. |
| 7025 |
*/ |
| 7026 |
function file_put_contents ($filename, $data, $flags = null, $context = null) {} |
| 7027 |
|
| 7028 |
/** |
| 7029 |
* Runs the equivalent of the select() system call on the given |
| 7030 |
arrays of streams with a timeout specified by tv_sec and tv_usec |
| 7031 |
* @link http://www.php.net/manual/en/function.stream-select.php |
| 7032 |
* @param read array <p> |
| 7033 |
* The streams listed in the read array will be watched to |
| 7034 |
* see if characters become available for reading (more precisely, to see if |
| 7035 |
* a read will not block - in particular, a stream resource is also ready on |
| 7036 |
* end-of-file, in which case an fread will return |
| 7037 |
* a zero length string). |
| 7038 |
* </p> |
| 7039 |
* @param write array <p> |
| 7040 |
* The streams listed in the write array will be |
| 7041 |
* watched to see if a write will not block. |
| 7042 |
* </p> |
| 7043 |
* @param except array <p> |
| 7044 |
* The streams listed in the except array will be |
| 7045 |
* watched for high priority exceptional ("out-of-band") data arriving. |
| 7046 |
* </p> |
| 7047 |
* |
| 7048 |
* <p> |
| 7049 |
* When stream_select returns, the arrays |
| 7050 |
* read, write and |
| 7051 |
* except are modified to indicate which stream |
| 7052 |
* resource(s) actually changed status. |
| 7053 |
* </p> |
| 7054 |
* |
| 7055 |
* |
| 7056 |
* You do not need to pass every array to |
| 7057 |
* stream_select. You can leave it out and use an |
| 7058 |
* empty array or &null; instead. Also do not forget that those arrays are |
| 7059 |
* passed by reference and will be modified after |
| 7060 |
* stream_select returns. |
| 7061 |
* @param tv_sec int <p> |
| 7062 |
* The tv_sec and tv_usec |
| 7063 |
* together form the timeout parameter, |
| 7064 |
* tv_sec specifies the number of seconds while |
| 7065 |
* tv_usec the number of microseconds. |
| 7066 |
* The timeout is an upper bound on the amount of time |
| 7067 |
* that stream_select will wait before it returns. |
| 7068 |
* If tv_sec and tv_usec are |
| 7069 |
* both set to 0, stream_select will |
| 7070 |
* not wait for data - instead it will return immediately, indicating the |
| 7071 |
* current status of the streams. |
| 7072 |
* </p> |
| 7073 |
* <p> |
| 7074 |
* If tv_sec is &null; stream_select |
| 7075 |
* can block indefinitely, returning only when an event on one of the |
| 7076 |
* watched streams occurs (or if a signal interrupts the system call). |
| 7077 |
* </p> |
| 7078 |
* |
| 7079 |
* <p> |
| 7080 |
* Using a timeout value of 0 allows you to |
| 7081 |
* instantaneously poll the status of the streams, however, it is NOT a |
| 7082 |
* good idea to use a 0 timeout value in a loop as it |
| 7083 |
* will cause your script to consume too much CPU time. |
| 7084 |
* </p> |
| 7085 |
* <p> |
| 7086 |
* It is much better to specify a timeout value of a few seconds, although |
| 7087 |
* if you need to be checking and running other code concurrently, using a |
| 7088 |
* timeout value of at least 200000 microseconds will |
| 7089 |
* help reduce the CPU usage of your script. |
| 7090 |
* </p> |
| 7091 |
* <p> |
| 7092 |
* Remember that the timeout value is the maximum time that will elapse; |
| 7093 |
* stream_select will return as soon as the |
| 7094 |
* requested streams are ready for use. |
| 7095 |
* </p> |
| 7096 |
* @param tv_usec int[optional] <p> |
| 7097 |
* See tv_sec description. |
| 7098 |
* </p> |
| 7099 |
* @return int On success stream_select returns the number of |
| 7100 |
* stream resources contained in the modified arrays, which may be zero if |
| 7101 |
* the timeout expires before anything interesting happens. On error false |
| 7102 |
* is returned and a warning raised (this can happen if the system call is |
| 7103 |
* interrupted by an incoming signal). |
| 7104 |
*/ |
| 7105 |
function stream_select (array &$read, array &$write, array &$except, $tv_sec, $tv_usec = null) {} |
| 7106 |
|
| 7107 |
/** |
| 7108 |
* Creates a stream context |
| 7109 |
* @link http://www.php.net/manual/en/function.stream-context-create.php |
| 7110 |
* @param options array[optional] <p> |
| 7111 |
* Must be an associative array of associative arrays in the format |
| 7112 |
* $arr['wrapper']['option'] = $value. |
| 7113 |
* </p> |
| 7114 |
* <p> |
| 7115 |
* Default to an empty array. |
| 7116 |
* </p> |
| 7117 |
* @param params array[optional] <p> |
| 7118 |
* Must be an associative array in the format |
| 7119 |
* $arr['parameter'] = $value. |
| 7120 |
* Refer to context parameters for |
| 7121 |
* a listing of standard stream parameters. |
| 7122 |
* </p> |
| 7123 |
* @return resource A stream context resource. |
| 7124 |
*/ |
| 7125 |
function stream_context_create (array $options = null, array $params = null) {} |
| 7126 |
|
| 7127 |
/** |
| 7128 |
* Set parameters for a stream/wrapper/context |
| 7129 |
* @link http://www.php.net/manual/en/function.stream-context-set-params.php |
| 7130 |
* @param stream_or_context resource <p> |
| 7131 |
* The stream or context to apply the parameters too. |
| 7132 |
* </p> |
| 7133 |
* @param params array <p> |
| 7134 |
* An array of parameters to set. |
| 7135 |
* </p> |
| 7136 |
* |
| 7137 |
* <p> |
| 7138 |
* params should be an associative array of the structure: |
| 7139 |
* $params['paramname'] = "paramvalue";. |
| 7140 |
* </p> |
| 7141 |
* @return bool Returns true on success, false on failure. |
| 7142 |
*/ |
| 7143 |
function stream_context_set_params ($stream_or_context, array $params) {} |
| 7144 |
|
| 7145 |
/** |
| 7146 |
* Retrieves parameters from a context |
| 7147 |
* @link http://www.php.net/manual/en/function.stream-context-get-params.php |
| 7148 |
* @param stream_or_context resource <p> |
| 7149 |
* A stream resource or a |
| 7150 |
* context resource |
| 7151 |
* </p> |
| 7152 |
* @return array an associate array containing all context options and parameters. |
| 7153 |
*/ |
| 7154 |
function stream_context_get_params ($stream_or_context) {} |
| 7155 |
|
| 7156 |
/** |
| 7157 |
* Sets an option for a stream/wrapper/context |
| 7158 |
* @link http://www.php.net/manual/en/function.stream-context-set-option.php |
| 7159 |
* @param stream_or_context resource <p> |
| 7160 |
* The stream or context resource to apply the options to. |
| 7161 |
* </p> |
| 7162 |
* @param wrapper string |
| 7163 |
* @param option string |
| 7164 |
* @param value mixed |
| 7165 |
* @return bool Returns true on success, false on failure. |
| 7166 |
*/ |
| 7167 |
function stream_context_set_option ($stream_or_context, $wrapper, $option, $value) {} |
| 7168 |
|
| 7169 |
/** |
| 7170 |
* Retrieve options for a stream/wrapper/context |
| 7171 |
* @link http://www.php.net/manual/en/function.stream-context-get-options.php |
| 7172 |
* @param stream_or_context resource <p> |
| 7173 |
* The stream or context to get options from |
| 7174 |
* </p> |
| 7175 |
* @return array an associative array with the options. |
| 7176 |
*/ |
| 7177 |
function stream_context_get_options ($stream_or_context) {} |
| 7178 |
|
| 7179 |
/** |
| 7180 |
* Retrieve the default stream context |
| 7181 |
* @link http://www.php.net/manual/en/function.stream-context-get-default.php |
| 7182 |
* @param options array[optional] options must be an associative |
| 7183 |
* array of associative arrays in the format |
| 7184 |
* $arr['wrapper']['option'] = $value. |
| 7185 |
* |
| 7186 |
* |
| 7187 |
* <p> |
| 7188 |
* As of PHP 5.3.0, the stream_context_set_default function |
| 7189 |
* can be used to set the default context. |
| 7190 |
* </p> |
| 7191 |
* @return resource A stream context resource. |
| 7192 |
*/ |
| 7193 |
function stream_context_get_default (array $options = null) {} |
| 7194 |
|
| 7195 |
/** |
| 7196 |
* Set the default stream context |
| 7197 |
* @link http://www.php.net/manual/en/function.stream-context-set-default.php |
| 7198 |
* @param options array <p> |
| 7199 |
* The options to set for the default context. |
| 7200 |
* </p> |
| 7201 |
* |
| 7202 |
* <p> |
| 7203 |
* options must be an associative |
| 7204 |
* array of associative arrays in the format |
| 7205 |
* $arr['wrapper']['option'] = $value. |
| 7206 |
* </p> |
| 7207 |
* @return resource the default stream context. |
| 7208 |
*/ |
| 7209 |
function stream_context_set_default (array $options) {} |
| 7210 |
|
| 7211 |
/** |
| 7212 |
* Attach a filter to a stream |
| 7213 |
* @link http://www.php.net/manual/en/function.stream-filter-prepend.php |
| 7214 |
* @param stream resource <p> |
| 7215 |
* The target stream. |
| 7216 |
* </p> |
| 7217 |
* @param filtername string <p> |
| 7218 |
* The filter name. |
| 7219 |
* </p> |
| 7220 |
* @param read_write int[optional] <p> |
| 7221 |
* By default, stream_filter_prepend will |
| 7222 |
* attach the filter to the read filter chain |
| 7223 |
* if the file was opened for reading (i.e. File Mode: |
| 7224 |
* r, and/or +). The filter |
| 7225 |
* will also be attached to the write filter chain |
| 7226 |
* if the file was opened for writing (i.e. File Mode: |
| 7227 |
* w, a, and/or +). |
| 7228 |
* STREAM_FILTER_READ, |
| 7229 |
* STREAM_FILTER_WRITE, and/or |
| 7230 |
* STREAM_FILTER_ALL can also be passed to the |
| 7231 |
* read_write parameter to override this behavior. |
| 7232 |
* See stream_filter_append for an example of |
| 7233 |
* using this parameter. |
| 7234 |
* </p> |
| 7235 |
* @param params mixed[optional] <p> |
| 7236 |
* This filter will be added with the specified params |
| 7237 |
* to the beginning of the list and will therefore be |
| 7238 |
* called first during stream operations. To add a filter to the end of the |
| 7239 |
* list, use stream_filter_append. |
| 7240 |
* </p> |
| 7241 |
* @return resource a resource which can be used to refer to this filter |
| 7242 |
* instance during a call to stream_filter_remove. |
| 7243 |
*/ |
| 7244 |
function stream_filter_prepend ($stream, $filtername, $read_write = null, $params = null) {} |
| 7245 |
|
| 7246 |
/** |
| 7247 |
* Attach a filter to a stream |
| 7248 |
* @link http://www.php.net/manual/en/function.stream-filter-append.php |
| 7249 |
* @param stream resource <p> |
| 7250 |
* The target stream. |
| 7251 |
* </p> |
| 7252 |
* @param filtername string <p> |
| 7253 |
* The filter name. |
| 7254 |
* </p> |
| 7255 |
* @param read_write int[optional] <p> |
| 7256 |
* By default, stream_filter_append will |
| 7257 |
* attach the filter to the read filter chain |
| 7258 |
* if the file was opened for reading (i.e. File Mode: |
| 7259 |
* r, and/or +). The filter |
| 7260 |
* will also be attached to the write filter chain |
| 7261 |
* if the file was opened for writing (i.e. File Mode: |
| 7262 |
* w, a, and/or +). |
| 7263 |
* STREAM_FILTER_READ, |
| 7264 |
* STREAM_FILTER_WRITE, and/or |
| 7265 |
* STREAM_FILTER_ALL can also be passed to the |
| 7266 |
* read_write parameter to override this behavior. |
| 7267 |
* </p> |
| 7268 |
* @param params mixed[optional] <p> |
| 7269 |
* This filter will be added with the specified |
| 7270 |
* params to the end of |
| 7271 |
* the list and will therefore be called last during stream operations. |
| 7272 |
* To add a filter to the beginning of the list, use |
| 7273 |
* stream_filter_prepend. |
| 7274 |
* </p> |
| 7275 |
* @return resource a resource which can be used to refer to this filter |
| 7276 |
* instance during a call to stream_filter_remove. |
| 7277 |
*/ |
| 7278 |
function stream_filter_append ($stream, $filtername, $read_write = null, $params = null) {} |
| 7279 |
|
| 7280 |
/** |
| 7281 |
* Remove a filter from a stream |
| 7282 |
* @link http://www.php.net/manual/en/function.stream-filter-remove.php |
| 7283 |
* @param stream_filter resource <p> |
| 7284 |
* The stream filter to be removed. |
| 7285 |
* </p> |
| 7286 |
* @return bool Returns true on success, false on failure. |
| 7287 |
*/ |
| 7288 |
function stream_filter_remove ($stream_filter) {} |
| 7289 |
|
| 7290 |
/** |
| 7291 |
* Open Internet or Unix domain socket connection |
| 7292 |
* @link http://www.php.net/manual/en/function.stream-socket-client.php |
| 7293 |
* @param remote_socket string <p> |
| 7294 |
* Address to the socket to connect to. |
| 7295 |
* </p> |
| 7296 |
* @param errno int[optional] <p> |
| 7297 |
* Will be set to the system level error number if connection fails. |
| 7298 |
* </p> |
| 7299 |
* @param errstr string[optional] <p> |
| 7300 |
* Will be set to the system level error message if the connection fails. |
| 7301 |
* </p> |
| 7302 |
* @param timeout float[optional] <p> |
| 7303 |
* Number of seconds until the connect() system call |
| 7304 |
* should timeout. |
| 7305 |
* |
| 7306 |
* |
| 7307 |
* This parameter only applies when not making asynchronous |
| 7308 |
* connection attempts. |
| 7309 |
* |
| 7310 |
* |
| 7311 |
* |
| 7312 |
* <p> |
| 7313 |
* To set a timeout for reading/writing data over the socket, use the |
| 7314 |
* stream_set_timeout, as the |
| 7315 |
* timeout only applies while making connecting |
| 7316 |
* the socket. |
| 7317 |
* </p> |
| 7318 |
* |
| 7319 |
* </p> |
| 7320 |
* @param flags int[optional] <p> |
| 7321 |
* Bitmask field which may be set to any combination of connection flags. |
| 7322 |
* Currently the select of connection flags is limited to |
| 7323 |
* STREAM_CLIENT_CONNECT (default), |
| 7324 |
* STREAM_CLIENT_ASYNC_CONNECT and |
| 7325 |
* STREAM_CLIENT_PERSISTENT. |
| 7326 |
* </p> |
| 7327 |
* @param context resource[optional] <p> |
| 7328 |
* A valid context resource created with stream_context_create. |
| 7329 |
* </p> |
| 7330 |
* @return resource On success a stream resource is returned which may |
| 7331 |
* be used together with the other file functions (such as |
| 7332 |
* fgets, fgetss, |
| 7333 |
* fwrite, fclose, and |
| 7334 |
* feof), false on failure. |
| 7335 |
*/ |
| 7336 |
function stream_socket_client ($remote_socket, &$errno = null, &$errstr = null, $timeout = null, $flags = null, $context = null) {} |
| 7337 |
|
| 7338 |
/** |
| 7339 |
* Create an Internet or Unix domain server socket |
| 7340 |
* @link http://www.php.net/manual/en/function.stream-socket-server.php |
| 7341 |
* @param local_socket string <p> |
| 7342 |
* The type of socket created is determined by the transport specified |
| 7343 |
* using standard URL formatting: transport://target. |
| 7344 |
* </p> |
| 7345 |
* <p> |
| 7346 |
* For Internet Domain sockets (AF_INET) such as TCP and UDP, the |
| 7347 |
* target portion of the |
| 7348 |
* remote_socket parameter should consist of a |
| 7349 |
* hostname or IP address followed by a colon and a port number. For |
| 7350 |
* Unix domain sockets, the target portion should |
| 7351 |
* point to the socket file on the filesystem. |
| 7352 |
* </p> |
| 7353 |
* <p> |
| 7354 |
* Depending on the environment, Unix domain sockets may not be available. |
| 7355 |
* A list of available transports can be retrieved using |
| 7356 |
* stream_get_transports. See |
| 7357 |
* for a list of bulitin transports. |
| 7358 |
* </p> |
| 7359 |
* @param errno int[optional] <p> |
| 7360 |
* If the optional errno and errstr |
| 7361 |
* arguments are present they will be set to indicate the actual system |
| 7362 |
* level error that occurred in the system-level socket(), |
| 7363 |
* bind(), and listen() calls. If |
| 7364 |
* the value returned in errno is |
| 7365 |
* 0 and the function returned false, it is an |
| 7366 |
* indication that the error occurred before the bind() |
| 7367 |
* call. This is most likely due to a problem initializing the socket. |
| 7368 |
* Note that the errno and |
| 7369 |
* errstr arguments will always be passed by reference. |
| 7370 |
* </p> |
| 7371 |
* @param errstr string[optional] <p> |
| 7372 |
* See errno description. |
| 7373 |
* </p> |
| 7374 |
* @param flags int[optional] <p> |
| 7375 |
* A bitmask field which may be set to any combination of socket creation |
| 7376 |
* flags. |
| 7377 |
* </p> |
| 7378 |
* |
| 7379 |
* <p> |
| 7380 |
* For UDP sockets, you must use STREAM_SERVER_BIND as |
| 7381 |
* the flags parameter. |
| 7382 |
* </p> |
| 7383 |
* @param context resource[optional] <p> |
| 7384 |
* </p> |
| 7385 |
* @return resource the created stream, or false on error. |
| 7386 |
*/ |
| 7387 |
function stream_socket_server ($local_socket, &$errno = null, &$errstr = null, $flags = null, $context = null) {} |
| 7388 |
|
| 7389 |
/** |
| 7390 |
* Accept a connection on a socket created by <function>stream_socket_server</function> |
| 7391 |
* @link http://www.php.net/manual/en/function.stream-socket-accept.php |
| 7392 |
* @param server_socket resource <p> |
| 7393 |
* The server socket to accept a connection from. |
| 7394 |
* </p> |
| 7395 |
* @param timeout float[optional] <p> |
| 7396 |
* Override the default socket accept timeout. Time should be given in |
| 7397 |
* seconds. |
| 7398 |
* </p> |
| 7399 |
* @param peername string[optional] <p> |
| 7400 |
* Will be set to the name (address) of the client which connected, if |
| 7401 |
* included and available from the selected transport. |
| 7402 |
* </p> |
| 7403 |
* |
| 7404 |
* <p> |
| 7405 |
* Can also be determined later using |
| 7406 |
* stream_socket_get_name. |
| 7407 |
* </p> |
| 7408 |
* @return resource a stream to the accepted socket connection&return.falseforfailure;. |
| 7409 |
*/ |
| 7410 |
function stream_socket_accept ($server_socket, $timeout = null, &$peername = null) {} |
| 7411 |
|
| 7412 |
/** |
| 7413 |
* Retrieve the name of the local or remote sockets |
| 7414 |
* @link http://www.php.net/manual/en/function.stream-socket-get-name.php |
| 7415 |
* @param handle resource <p> |
| 7416 |
* The socket to get the name of. |
| 7417 |
* </p> |
| 7418 |
* @param want_peer bool <p> |
| 7419 |
* If set to true the remote socket name will be returned, if set |
| 7420 |
* to false the local socket name will be returned. |
| 7421 |
* </p> |
| 7422 |
* @return string The name of the socket. |
| 7423 |
*/ |
| 7424 |
function stream_socket_get_name ($handle, $want_peer) {} |
| 7425 |
|
| 7426 |
/** |
| 7427 |
* Receives data from a socket, connected or not |
| 7428 |
* @link http://www.php.net/manual/en/function.stream-socket-recvfrom.php |
| 7429 |
* @param socket resource <p> |
| 7430 |
* The remote socket. |
| 7431 |
* </p> |
| 7432 |
* @param length int <p> |
| 7433 |
* The number of bytes to receive from the socket. |
| 7434 |
* </p> |
| 7435 |
* @param flags int[optional] <p> |
| 7436 |
* The value of flags can be any combination |
| 7437 |
* of the following: |
| 7438 |
* <table> |
| 7439 |
* Possible values for flags |
| 7440 |
* |
| 7441 |
* |
| 7442 |
* <tr valign="top"> |
| 7443 |
* <td>STREAM_OOB</td> |
| 7444 |
* <td> |
| 7445 |
* Process OOB (out-of-band) data. |
| 7446 |
* </td> |
| 7447 |
* </tr> |
| 7448 |
* <tr valign="top"> |
| 7449 |
* <td>STREAM_PEEK</td> |
| 7450 |
* <td> |
| 7451 |
* Retrieve data from the socket, but do not consume the buffer. |
| 7452 |
* Subsequent calls to fread or |
| 7453 |
* stream_socket_recvfrom will see |
| 7454 |
* the same data. |
| 7455 |
* </td> |
| 7456 |
* </tr> |
| 7457 |
* |
| 7458 |
* |
| 7459 |
* </table> |
| 7460 |
* </p> |
| 7461 |
* @param address string[optional] <p> |
| 7462 |
* If address is provided it will be populated with |
| 7463 |
* the address of the remote socket. |
| 7464 |
* </p> |
| 7465 |
* @return string the read data, as a string |
| 7466 |
*/ |
| 7467 |
function stream_socket_recvfrom ($socket, $length, $flags = null, &$address = null) {} |
| 7468 |
|
| 7469 |
/** |
| 7470 |
* Sends a message to a socket, whether it is connected or not |
| 7471 |
* @link http://www.php.net/manual/en/function.stream-socket-sendto.php |
| 7472 |
* @param socket resource <p> |
| 7473 |
* The socket to send data to. |
| 7474 |
* </p> |
| 7475 |
* @param data string <p> |
| 7476 |
* The data to be sent. |
| 7477 |
* </p> |
| 7478 |
* @param flags int[optional] <p> |
| 7479 |
* The value of flags can be any combination |
| 7480 |
* of the following: |
| 7481 |
* <table> |
| 7482 |
* possible values for flags |
| 7483 |
* |
| 7484 |
* |
| 7485 |
* <tr valign="top"> |
| 7486 |
* <td>STREAM_OOB</td> |
| 7487 |
* <td> |
| 7488 |
* Process OOB (out-of-band) data. |
| 7489 |
* </td> |
| 7490 |
* </tr> |
| 7491 |
* |
| 7492 |
* |
| 7493 |
* </table> |
| 7494 |
* </p> |
| 7495 |
* @param address string[optional] <p> |
| 7496 |
* The address specified when the socket stream was created will be used |
| 7497 |
* unless an alternate address is specified in address. |
| 7498 |
* </p> |
| 7499 |
* <p> |
| 7500 |
* If specified, it must be in dotted quad (or [ipv6]) format. |
| 7501 |
* </p> |
| 7502 |
* @return int a result code, as an integer. |
| 7503 |
*/ |
| 7504 |
function stream_socket_sendto ($socket, $data, $flags = null, $address = null) {} |
| 7505 |
|
| 7506 |
/** |
| 7507 |
* Turns encryption on/off on an already connected socket |
| 7508 |
* @link http://www.php.net/manual/en/function.stream-socket-enable-crypto.php |
| 7509 |
* @param stream resource <p> |
| 7510 |
* The stream resource. |
| 7511 |
* </p> |
| 7512 |
* @param enable bool <p> |
| 7513 |
* Enable/disable cryptography on the stream. |
| 7514 |
* </p> |
| 7515 |
* @param crypto_type int[optional] <p> |
| 7516 |
* Setup encryption on the stream. |
| 7517 |
* Valid methods are |
| 7518 |
* |
| 7519 |
* STREAM_CRYPTO_METHOD_SSLv2_CLIENT |
| 7520 |
* @param session_stream resource[optional] <p> |
| 7521 |
* Seed the stream with settings from session_stream. |
| 7522 |
* </p> |
| 7523 |
* @return mixed true on success, false if negotiation has failed or |
| 7524 |
* 0 if there isn't enough data and you should try again |
| 7525 |
* (only for non-blocking sockets). |
| 7526 |
*/ |
| 7527 |
function stream_socket_enable_crypto ($stream, $enable, $crypto_type = null, $session_stream = null) {} |
| 7528 |
|
| 7529 |
/** |
| 7530 |
* Shutdown a full-duplex connection |
| 7531 |
* @link http://www.php.net/manual/en/function.stream-socket-shutdown.php |
| 7532 |
* @param stream resource <p> |
| 7533 |
* An open stream (opened with stream_socket_client, |
| 7534 |
* for example) |
| 7535 |
* </p> |
| 7536 |
* @param how int <p> |
| 7537 |
* One of the following constants: STREAM_SHUT_RD |
| 7538 |
* (disable further receptions), STREAM_SHUT_WR |
| 7539 |
* (disable further transmissions) or |
| 7540 |
* STREAM_SHUT_RDWR (disable further receptions and |
| 7541 |
* transmissions). |
| 7542 |
* </p> |
| 7543 |
* @return bool Returns true on success, false on failure. |
| 7544 |
*/ |
| 7545 |
function stream_socket_shutdown ($stream, $how) {} |
| 7546 |
|
| 7547 |
/** |
| 7548 |
* Creates a pair of connected, indistinguishable socket streams |
| 7549 |
* @link http://www.php.net/manual/en/function.stream-socket-pair.php |
| 7550 |
* @param domain int <p> |
| 7551 |
* The protocol family to be used: STREAM_PF_INET, |
| 7552 |
* STREAM_PF_INET6 or |
| 7553 |
* STREAM_PF_UNIX |
| 7554 |
* </p> |
| 7555 |
* @param type int <p> |
| 7556 |
* The type of communication to be used: |
| 7557 |
* STREAM_SOCK_DGRAM, |
| 7558 |
* STREAM_SOCK_RAW, |
| 7559 |
* STREAM_SOCK_RDM, |
| 7560 |
* STREAM_SOCK_SEQPACKET or |
| 7561 |
* STREAM_SOCK_STREAM |
| 7562 |
* </p> |
| 7563 |
* @param protocol int <p> |
| 7564 |
* The protocol to be used: STREAM_IPPROTO_ICMP, |
| 7565 |
* STREAM_IPPROTO_IP, |
| 7566 |
* STREAM_IPPROTO_RAW, |
| 7567 |
* STREAM_IPPROTO_TCP or |
| 7568 |
* STREAM_IPPROTO_UDP |
| 7569 |
* </p> |
| 7570 |
* @return array an array with the two socket resources on success, or |
| 7571 |
* false on failure. |
| 7572 |
*/ |
| 7573 |
function stream_socket_pair ($domain, $type, $protocol) {} |
| 7574 |
|
| 7575 |
/** |
| 7576 |
* Copies data from one stream to another |
| 7577 |
* @link http://www.php.net/manual/en/function.stream-copy-to-stream.php |
| 7578 |
* @param source resource <p> |
| 7579 |
* The source stream |
| 7580 |
* </p> |
| 7581 |
* @param dest resource <p> |
| 7582 |
* The destination stream |
| 7583 |
* </p> |
| 7584 |
* @param maxlength int[optional] <p> |
| 7585 |
* Maximum bytes to copy |
| 7586 |
* </p> |
| 7587 |
* @param offset int[optional] <p> |
| 7588 |
* The offset where to start to copy data |
| 7589 |
* </p> |
| 7590 |
* @return int the total count of bytes copied. |
| 7591 |
*/ |
| 7592 |
function stream_copy_to_stream ($source, $dest, $maxlength = null, $offset = null) {} |
| 7593 |
|
| 7594 |
/** |
| 7595 |
* Reads remainder of a stream into a string |
| 7596 |
* @link http://www.php.net/manual/en/function.stream-get-contents.php |
| 7597 |
* @param handle resource <p> |
| 7598 |
* A stream resource (e.g. returned from fopen) |
| 7599 |
* </p> |
| 7600 |
* @param maxlength int[optional] <p> |
| 7601 |
* The maximum bytes to read. Defaults to -1 (read all the remaining |
| 7602 |
* buffer). |
| 7603 |
* </p> |
| 7604 |
* @param offset int[optional] <p> |
| 7605 |
* Seek to the specified offset before reading. If this number is negative, |
| 7606 |
* no seeking will occur and reading will start from the current position. |
| 7607 |
* </p> |
| 7608 |
* @return string a string&return.falseforfailure;. |
| 7609 |
*/ |
| 7610 |
function stream_get_contents ($handle, $maxlength = null, $offset = null) {} |
| 7611 |
|
| 7612 |
/** |
| 7613 |
* Tells whether the stream supports locking. |
| 7614 |
* @link http://www.php.net/manual/en/function.stream-supports-lock.php |
| 7615 |
* @param stream resource <p> |
| 7616 |
* The stream to check. |
| 7617 |
* </p> |
| 7618 |
* @return bool Returns true on success, false on failure. |
| 7619 |
*/ |
| 7620 |
function stream_supports_lock ($stream) {} |
| 7621 |
|
| 7622 |
/** |
| 7623 |
* Gets line from file pointer and parse for CSV fields |
| 7624 |
* @link http://www.php.net/manual/en/function.fgetcsv.php |
| 7625 |
* @param handle resource <p> |
| 7626 |
* A valid file pointer to a file successfully opened by |
| 7627 |
* fopen, popen, or |
| 7628 |
* fsockopen. |
| 7629 |
* </p> |
| 7630 |
* @param length int[optional] <p> |
| 7631 |
* Must be greater than the longest line (in characters) to be found in |
| 7632 |
* the CSV file (allowing for trailing line-end characters). It became |
| 7633 |
* optional in PHP 5. Omitting this parameter (or setting it to 0 in PHP |
| 7634 |
* 5.1.0 and later) the maximum line length is not limited, which is |
| 7635 |
* slightly slower. |
| 7636 |
* </p> |
| 7637 |
* @param delimiter string[optional] <p> |
| 7638 |
* Set the field delimiter (one character only). |
| 7639 |
* </p> |
| 7640 |
* @param enclosure string[optional] <p> |
| 7641 |
* Set the field enclosure character (one character only). |
| 7642 |
* </p> |
| 7643 |
* @param escape string[optional] <p> |
| 7644 |
* Set the escape character (one character only). Defaults as a backslash. |
| 7645 |
* </p> |
| 7646 |
* @return array an indexed array containing the fields read. |
| 7647 |
* </p> |
| 7648 |
* |
| 7649 |
* <p> |
| 7650 |
* A blank line in a CSV file will be returned as an array |
| 7651 |
* comprising a single null field, and will not be treated |
| 7652 |
* as an error. |
| 7653 |
* </p> |
| 7654 |
* |
| 7655 |
* ¬e.line-endings; |
| 7656 |
* <p> |
| 7657 |
* fgetcsv returns &null; if an invalid |
| 7658 |
* handle is supplied or false on other errors, |
| 7659 |
* including end of file. |
| 7660 |
*/ |
| 7661 |
function fgetcsv ($handle, $length = null, $delimiter = null, $enclosure = null, $escape = null) {} |
| 7662 |
|
| 7663 |
/** |
| 7664 |
* Format line as CSV and write to file pointer |
| 7665 |
* @link http://www.php.net/manual/en/function.fputcsv.php |
| 7666 |
* @param handle resource &fs.validfp.all; |
| 7667 |
* @param fields array <p> |
| 7668 |
* An array of values. |
| 7669 |
* </p> |
| 7670 |
* @param delimiter string[optional] <p> |
| 7671 |
* The optional delimiter parameter sets the field |
| 7672 |
* delimiter (one character only). |
| 7673 |
* </p> |
| 7674 |
* @param enclosure string[optional] <p> |
| 7675 |
* The optional enclosure parameter sets the field |
| 7676 |
* enclosure (one character only). |
| 7677 |
* </p> |
| 7678 |
* @return int the length of the written string&return.falseforfailure;. |
| 7679 |
*/ |
| 7680 |
function fputcsv ($handle, array $fields, $delimiter = null, $enclosure = null) {} |
| 7681 |
|
| 7682 |
/** |
| 7683 |
* Portable advisory file locking |
| 7684 |
* @link http://www.php.net/manual/en/function.flock.php |
| 7685 |
* @param handle resource &fs.file.pointer; |
| 7686 |
* @param operation int <p> |
| 7687 |
* operation is one of the following: |
| 7688 |
* |
| 7689 |
* |
| 7690 |
* |
| 7691 |
* LOCK_SH to acquire a shared lock (reader). |
| 7692 |
* @param wouldblock int[optional] <p> |
| 7693 |
* The optional third argument is set to 1 if the lock would block |
| 7694 |
* (EWOULDBLOCK errno condition). (not supported on Windows) |
| 7695 |
* </p> |
| 7696 |
* @return bool Returns true on success, false on failure. |
| 7697 |
*/ |
| 7698 |
function flock ($handle, $operation, &$wouldblock = null) {} |
| 7699 |
|
| 7700 |
/** |
| 7701 |
* Extracts all meta tag content attributes from a file and returns an array |
| 7702 |
* @link http://www.php.net/manual/en/function.get-meta-tags.php |
| 7703 |
* @param filename string <p> |
| 7704 |
* The path to the HTML file, as a string. This can be a local file or an |
| 7705 |
* URL. |
| 7706 |
* </p> |
| 7707 |
* <p> |
| 7708 |
* |
| 7709 |
* What get_meta_tags parses |
| 7710 |
* |
| 7711 |
* ]]> |
| 7712 |
* |
| 7713 |
* |
| 7714 |
* (pay attention to line endings - PHP uses a native function to |
| 7715 |
* parse the input, so a Mac file won't work on Unix). |
| 7716 |
* </p> |
| 7717 |
* @param use_include_path bool[optional] <p> |
| 7718 |
* Setting use_include_path to true will result |
| 7719 |
* in PHP trying to open the file along the standard include path as per |
| 7720 |
* the include_path directive. |
| 7721 |
* This is used for local files, not URLs. |
| 7722 |
* </p> |
| 7723 |
* @return array an array with all the parsed meta tags. |
| 7724 |
* </p> |
| 7725 |
* <p> |
| 7726 |
* The value of the name property becomes the key, the value of the content |
| 7727 |
* property becomes the value of the returned array, so you can easily use |
| 7728 |
* standard array functions to traverse it or access single values. |
| 7729 |
* Special characters in the value of the name property are substituted with |
| 7730 |
* '_', the rest is converted to lower case. If two meta tags have the same |
| 7731 |
* name, only the last one is returned. |
| 7732 |
*/ |
| 7733 |
function get_meta_tags ($filename, $use_include_path = null) {} |
| 7734 |
|
| 7735 |
/** |
| 7736 |
* Set read file buffering on the given stream |
| 7737 |
* @link http://www.php.net/manual/en/function.stream-set-read-buffer.php |
| 7738 |
* @param stream resource <p> |
| 7739 |
* The file pointer. |
| 7740 |
* </p> |
| 7741 |
* @param buffer int <p> |
| 7742 |
* The number of bytes to buffer. If buffer |
| 7743 |
* is 0 then read operations are unbuffered. This ensures that all reads |
| 7744 |
* with fread are completed before other processes are |
| 7745 |
* allowed to read from that input stream. |
| 7746 |
* </p> |
| 7747 |
* @return int 0 on success, or EOF if the request |
| 7748 |
* cannot be honored. |
| 7749 |
*/ |
| 7750 |
function stream_set_read_buffer ($stream, $buffer) {} |
| 7751 |
|
| 7752 |
/** |
| 7753 |
* Sets write file buffering on the given stream |
| 7754 |
* @link http://www.php.net/manual/en/function.stream-set-write-buffer.php |
| 7755 |
* @param stream resource <p> |
| 7756 |
* The file pointer. |
| 7757 |
* </p> |
| 7758 |
* @param buffer int <p> |
| 7759 |
* The number of bytes to buffer. If buffer |
| 7760 |
* is 0 then write operations are unbuffered. This ensures that all writes |
| 7761 |
* with fwrite are completed before other processes are |
| 7762 |
* allowed to write to that output stream. |
| 7763 |
* </p> |
| 7764 |
* @return int 0 on success, or EOF if the request cannot be honored. |
| 7765 |
*/ |
| 7766 |
function stream_set_write_buffer ($stream, $buffer) {} |
| 7767 |
|
| 7768 |
/** |
| 7769 |
* &Alias; <function>stream_set_write_buffer</function> |
| 7770 |
* @link http://www.php.net/manual/en/function.set-file-buffer.php |
| 7771 |
* @param fp |
| 7772 |
* @param buffer |
| 7773 |
*/ |
| 7774 |
function set_file_buffer ($fp, $buffer) {} |
| 7775 |
|
| 7776 |
/** |
| 7777 |
* Set the stream chunk size |
| 7778 |
* @link http://www.php.net/manual/en/function.stream-set-chunk-size.php |
| 7779 |
* @param fp resource <p> |
| 7780 |
* The target stream. |
| 7781 |
* </p> |
| 7782 |
* @param chunk_size int <p> |
| 7783 |
* The desired new chunk size. |
| 7784 |
* </p> |
| 7785 |
* @return int the previous chunk size on success. |
| 7786 |
* </p> |
| 7787 |
* <p> |
| 7788 |
* Will return false if chunk_size is less than 1 or |
| 7789 |
* greater than PHP_INT_MAX. |
| 7790 |
*/ |
| 7791 |
function stream_set_chunk_size ($fp, $chunk_size) {} |
| 7792 |
|
| 7793 |
/** |
| 7794 |
* &Alias; <function>stream_set_blocking</function> |
| 7795 |
* @link http://www.php.net/manual/en/function.set-socket-blocking.php |
| 7796 |
* @param socket |
| 7797 |
* @param mode |
| 7798 |
*/ |
| 7799 |
function set_socket_blocking ($socket, $mode) {} |
| 7800 |
|
| 7801 |
/** |
| 7802 |
* Set blocking/non-blocking mode on a stream |
| 7803 |
* @link http://www.php.net/manual/en/function.stream-set-blocking.php |
| 7804 |
* @param stream resource <p> |
| 7805 |
* The stream. |
| 7806 |
* </p> |
| 7807 |
* @param mode int <p> |
| 7808 |
* If mode is 0, the given stream |
| 7809 |
* will be switched to non-blocking mode, and if 1, it |
| 7810 |
* will be switched to blocking mode. This affects calls like |
| 7811 |
* fgets and fread |
| 7812 |
* that read from the stream. In non-blocking mode an |
| 7813 |
* fgets call will always return right away |
| 7814 |
* while in blocking mode it will wait for data to become available |
| 7815 |
* on the stream. |
| 7816 |
* </p> |
| 7817 |
* @return bool Returns true on success, false on failure. |
| 7818 |
*/ |
| 7819 |
function stream_set_blocking ($stream, $mode) {} |
| 7820 |
|
| 7821 |
/** |
| 7822 |
* &Alias; <function>stream_set_blocking</function> |
| 7823 |
* @link http://www.php.net/manual/en/function.socket-set-blocking.php |
| 7824 |
* @param socket |
| 7825 |
* @param mode |
| 7826 |
*/ |
| 7827 |
function socket_set_blocking ($socket, $mode) {} |
| 7828 |
|
| 7829 |
/** |
| 7830 |
* Retrieves header/meta data from streams/file pointers |
| 7831 |
* @link http://www.php.net/manual/en/function.stream-get-meta-data.php |
| 7832 |
* @param stream resource <p> |
| 7833 |
* The stream can be any stream created by fopen, |
| 7834 |
* fsockopen and pfsockopen. |
| 7835 |
* </p> |
| 7836 |
* @return array The result array contains the following items: |
| 7837 |
* </p> |
| 7838 |
* |
| 7839 |
* |
| 7840 |
* <p> |
| 7841 |
* timed_out (bool) - true if the stream |
| 7842 |
* timed out while waiting for data on the last call to |
| 7843 |
* fread or fgets. |
| 7844 |
* </p> |
| 7845 |
* |
| 7846 |
* |
| 7847 |
* <p> |
| 7848 |
* blocked (bool) - true if the stream is |
| 7849 |
* in blocking IO mode. See stream_set_blocking. |
| 7850 |
* </p> |
| 7851 |
* |
| 7852 |
* |
| 7853 |
* <p> |
| 7854 |
* eof (bool) - true if the stream has reached |
| 7855 |
* end-of-file. Note that for socket streams this member can be true |
| 7856 |
* even when unread_bytes is non-zero. To |
| 7857 |
* determine if there is more data to be read, use |
| 7858 |
* feof instead of reading this item. |
| 7859 |
* </p> |
| 7860 |
* |
| 7861 |
* |
| 7862 |
* <p> |
| 7863 |
* unread_bytes (int) - the number of bytes |
| 7864 |
* currently contained in the PHP's own internal buffer. |
| 7865 |
* </p> |
| 7866 |
* |
| 7867 |
* |
| 7868 |
* You shouldn't use this value in a script. |
| 7869 |
* |
| 7870 |
* |
| 7871 |
* |
| 7872 |
* |
| 7873 |
* <p> |
| 7874 |
* stream_type (string) - a label describing |
| 7875 |
* the underlying implementation of the stream. |
| 7876 |
* </p> |
| 7877 |
* |
| 7878 |
* |
| 7879 |
* <p> |
| 7880 |
* wrapper_type (string) - a label describing |
| 7881 |
* the protocol wrapper implementation layered over the stream. |
| 7882 |
* See for more information about wrappers. |
| 7883 |
* </p> |
| 7884 |
* |
| 7885 |
* |
| 7886 |
* <p> |
| 7887 |
* wrapper_data (mixed) - wrapper specific |
| 7888 |
* data attached to this stream. See for |
| 7889 |
* more information about wrappers and their wrapper data. |
| 7890 |
* </p> |
| 7891 |
* |
| 7892 |
* |
| 7893 |
* |
| 7894 |
* <p> |
| 7895 |
* mode (string) - the type of access required for |
| 7896 |
* this stream (see Table 1 of the fopen() reference) |
| 7897 |
* </p> |
| 7898 |
* |
| 7899 |
* |
| 7900 |
* <p> |
| 7901 |
* seekable (bool) - whether the current stream can |
| 7902 |
* be seeked. |
| 7903 |
* </p> |
| 7904 |
* |
| 7905 |
* |
| 7906 |
* <p> |
| 7907 |
* uri (string) - the URI/filename associated with this |
| 7908 |
* stream. |
| 7909 |
*/ |
| 7910 |
function stream_get_meta_data ($stream) {} |
| 7911 |
|
| 7912 |
/** |
| 7913 |
* Gets line from stream resource up to a given delimiter |
| 7914 |
* @link http://www.php.net/manual/en/function.stream-get-line.php |
| 7915 |
* @param handle resource <p> |
| 7916 |
* A valid file handle. |
| 7917 |
* </p> |
| 7918 |
* @param length int <p> |
| 7919 |
* The number of bytes to read from the handle. |
| 7920 |
* </p> |
| 7921 |
* @param ending string[optional] <p> |
| 7922 |
* An optional string delimiter. |
| 7923 |
* </p> |
| 7924 |
* @return string a string of up to length bytes read from the file |
| 7925 |
* pointed to by handle. |
| 7926 |
* </p> |
| 7927 |
* <p> |
| 7928 |
* If an error occurs, returns false. |
| 7929 |
*/ |
| 7930 |
function stream_get_line ($handle, $length, $ending = null) {} |
| 7931 |
|
| 7932 |
/** |
| 7933 |
* Register a URL wrapper implemented as a PHP class |
| 7934 |
* @link http://www.php.net/manual/en/function.stream-wrapper-register.php |
| 7935 |
* @param protocol string <p> |
| 7936 |
* The wrapper name to be registered. |
| 7937 |
* </p> |
| 7938 |
* @param classname string <p> |
| 7939 |
* The classname which implements the protocol. |
| 7940 |
* </p> |
| 7941 |
* @param flags int[optional] <p> |
| 7942 |
* Should be set to STREAM_IS_URL if |
| 7943 |
* protocol is a URL protocol. Default is 0, local |
| 7944 |
* stream. |
| 7945 |
* </p> |
| 7946 |
* @return bool Returns true on success, false on failure. |
| 7947 |
* </p> |
| 7948 |
* <p> |
| 7949 |
* stream_wrapper_register will return false if the |
| 7950 |
* protocol already has a handler. |
| 7951 |
*/ |
| 7952 |
function stream_wrapper_register ($protocol, $classname, $flags = null) {} |
| 7953 |
|
| 7954 |
/** |
| 7955 |
* &Alias; <function>stream_wrapper_register</function> |
| 7956 |
* @link http://www.php.net/manual/en/function.stream-register-wrapper.php |
| 7957 |
* @param protocol |
| 7958 |
* @param classname |
| 7959 |
* @param flags[optional] |
| 7960 |
*/ |
| 7961 |
function stream_register_wrapper ($protocol, $classname, $flags) {} |
| 7962 |
|
| 7963 |
/** |
| 7964 |
* Unregister a URL wrapper |
| 7965 |
* @link http://www.php.net/manual/en/function.stream-wrapper-unregister.php |
| 7966 |
* @param protocol string <p> |
| 7967 |
* </p> |
| 7968 |
* @return bool Returns true on success, false on failure. |
| 7969 |
*/ |
| 7970 |
function stream_wrapper_unregister ($protocol) {} |
| 7971 |
|
| 7972 |
/** |
| 7973 |
* Restores a previously unregistered built-in wrapper |
| 7974 |
* @link http://www.php.net/manual/en/function.stream-wrapper-restore.php |
| 7975 |
* @param protocol string <p> |
| 7976 |
* </p> |
| 7977 |
* @return bool Returns true on success, false on failure. |
| 7978 |
*/ |
| 7979 |
function stream_wrapper_restore ($protocol) {} |
| 7980 |
|
| 7981 |
/** |
| 7982 |
* Retrieve list of registered streams |
| 7983 |
* @link http://www.php.net/manual/en/function.stream-get-wrappers.php |
| 7984 |
* @return array an indexed array containing the name of all stream wrappers |
| 7985 |
* available on the running system. |
| 7986 |
*/ |
| 7987 |
function stream_get_wrappers () {} |
| 7988 |
|
| 7989 |
/** |
| 7990 |
* Retrieve list of registered socket transports |
| 7991 |
* @link http://www.php.net/manual/en/function.stream-get-transports.php |
| 7992 |
* @return array an indexed array of socket transports names. |
| 7993 |
*/ |
| 7994 |
function stream_get_transports () {} |
| 7995 |
|
| 7996 |
/** |
| 7997 |
* Resolve filename against the include path |
| 7998 |
* @link http://www.php.net/manual/en/function.stream-resolve-include-path.php |
| 7999 |
* @param filename string <p> |
| 8000 |
* The filename to resolve. |
| 8001 |
* </p> |
| 8002 |
* @param context resource[optional] <p> |
| 8003 |
* A valid context resource created with stream_context_create. |
| 8004 |
* </p> |
| 8005 |
* @return string a string containing the resolved absolute filename, &return.falseforfailure;. |
| 8006 |
*/ |
| 8007 |
function stream_resolve_include_path ($filename, $context = null) {} |
| 8008 |
|
| 8009 |
/** |
| 8010 |
* Checks if a stream is a local stream |
| 8011 |
* @link http://www.php.net/manual/en/function.stream-is-local.php |
| 8012 |
* @param stream_or_url mixed <p> |
| 8013 |
* The stream resource or URL to check. |
| 8014 |
* </p> |
| 8015 |
* @return bool Returns true on success, false on failure. |
| 8016 |
*/ |
| 8017 |
function stream_is_local ($stream_or_url) {} |
| 8018 |
|
| 8019 |
/** |
| 8020 |
* Fetches all the headers sent by the server in response to a HTTP request |
| 8021 |
* @link http://www.php.net/manual/en/function.get-headers.php |
| 8022 |
* @param url string <p> |
| 8023 |
* The target URL. |
| 8024 |
* </p> |
| 8025 |
* @param format int[optional] <p> |
| 8026 |
* If the optional format parameter is set to non-zero, |
| 8027 |
* get_headers parses the response and sets the |
| 8028 |
* array's keys. |
| 8029 |
* </p> |
| 8030 |
* @return array an indexed or associative array with the headers, or false on |
| 8031 |
* failure. |
| 8032 |
*/ |
| 8033 |
function get_headers ($url, $format = null) {} |
| 8034 |
|
| 8035 |
/** |
| 8036 |
* Set timeout period on a stream |
| 8037 |
* @link http://www.php.net/manual/en/function.stream-set-timeout.php |
| 8038 |
* @param stream resource <p> |
| 8039 |
* The target stream. |
| 8040 |
* </p> |
| 8041 |
* @param seconds int <p> |
| 8042 |
* The seconds part of the timeout to be set. |
| 8043 |
* </p> |
| 8044 |
* @param microseconds int[optional] <p> |
| 8045 |
* The microseconds part of the timeout to be set. |
| 8046 |
* </p> |
| 8047 |
* @return bool Returns true on success, false on failure. |
| 8048 |
*/ |
| 8049 |
function stream_set_timeout ($stream, $seconds, $microseconds = null) {} |
| 8050 |
|
| 8051 |
/** |
| 8052 |
* &Alias; <function>stream_set_timeout</function> |
| 8053 |
* @link http://www.php.net/manual/en/function.socket-set-timeout.php |
| 8054 |
* @param stream |
| 8055 |
* @param seconds |
| 8056 |
* @param microseconds |
| 8057 |
*/ |
| 8058 |
function socket_set_timeout ($stream, $seconds, $microseconds) {} |
| 8059 |
|
| 8060 |
/** |
| 8061 |
* &Alias; <function>stream_get_meta_data</function> |
| 8062 |
* @link http://www.php.net/manual/en/function.socket-get-status.php |
| 8063 |
* @param fp |
| 8064 |
*/ |
| 8065 |
function socket_get_status ($fp) {} |
| 8066 |
|
| 8067 |
/** |
| 8068 |
* Returns canonicalized absolute pathname |
| 8069 |
* @link http://www.php.net/manual/en/function.realpath.php |
| 8070 |
* @param path string <p> |
| 8071 |
* The path being checked. |
| 8072 |
* |
| 8073 |
* <p> |
| 8074 |
* Whilst a path must be supplied, the value can be blank or &null; |
| 8075 |
* In these cases, the value is interpreted as the current directory. |
| 8076 |
* </p> |
| 8077 |
* |
| 8078 |
* </p> |
| 8079 |
* @return string the canonicalized absolute pathname on success. The resulting path |
| 8080 |
* will have no symbolic link, '/./' or '/../' components. |
| 8081 |
* </p> |
| 8082 |
* <p> |
| 8083 |
* realpath returns false on failure, e.g. if |
| 8084 |
* the file does not exist. |
| 8085 |
* </p> |
| 8086 |
* |
| 8087 |
* <p> |
| 8088 |
* The running script must have executable permissions on all directories in |
| 8089 |
* the hierarchy, otherwise realpath will return |
| 8090 |
* false. |
| 8091 |
*/ |
| 8092 |
function realpath ($path) {} |
| 8093 |
|
| 8094 |
/** |
| 8095 |
* Match filename against a pattern |
| 8096 |
* @link http://www.php.net/manual/en/function.fnmatch.php |
| 8097 |
* @param pattern string <p> |
| 8098 |
* The shell wildcard pattern. |
| 8099 |
* </p> |
| 8100 |
* @param string string <p> |
| 8101 |
* The tested string. This function is especially useful for filenames, |
| 8102 |
* but may also be used on regular strings. |
| 8103 |
* </p> |
| 8104 |
* <p> |
| 8105 |
* The average user may be used to shell patterns or at least in their |
| 8106 |
* simplest form to '?' and '*' |
| 8107 |
* wildcards so using fnmatch instead of |
| 8108 |
* preg_match for |
| 8109 |
* frontend search expression input may be way more convenient for |
| 8110 |
* non-programming users. |
| 8111 |
* </p> |
| 8112 |
* @param flags int[optional] <p> |
| 8113 |
* The value of flags can be any combination of |
| 8114 |
* the following flags, joined with the |
| 8115 |
* binary OR (|) operator. |
| 8116 |
* <table> |
| 8117 |
* |
| 8118 |
* A list of possible flags for fnmatch |
| 8119 |
* |
| 8120 |
* |
| 8121 |
* |
| 8122 |
* <tr valign="top"> |
| 8123 |
* <td>Flag</td> |
| 8124 |
* <td>Description</td> |
| 8125 |
* </tr> |
| 8126 |
* |
| 8127 |
* |
| 8128 |
* <tr valign="top"> |
| 8129 |
* <td>FNM_NOESCAPE</td> |
| 8130 |
* <td> |
| 8131 |
* Disable backslash escaping. |
| 8132 |
* </td> |
| 8133 |
* </tr> |
| 8134 |
* <tr valign="top"> |
| 8135 |
* <td>FNM_PATHNAME</td> |
| 8136 |
* <td> |
| 8137 |
* Slash in string only matches slash in the given pattern. |
| 8138 |
* </td> |
| 8139 |
* </tr> |
| 8140 |
* <tr valign="top"> |
| 8141 |
* <td>FNM_PERIOD</td> |
| 8142 |
* <td> |
| 8143 |
* Leading period in string must be exactly matched by period in the given pattern. |
| 8144 |
* </td> |
| 8145 |
* </tr> |
| 8146 |
* <tr valign="top"> |
| 8147 |
* <td>FNM_CASEFOLD</td> |
| 8148 |
* <td> |
| 8149 |
* Caseless match. Part of the GNU extension. |
| 8150 |
* </td> |
| 8151 |
* </tr> |
| 8152 |
* |
| 8153 |
* |
| 8154 |
* </table> |
| 8155 |
* </p> |
| 8156 |
* @return bool true if there is a match, false otherwise. |
| 8157 |
*/ |
| 8158 |
function fnmatch ($pattern, $string, $flags = null) {} |
| 8159 |
|
| 8160 |
/** |
| 8161 |
* Open Internet or Unix domain socket connection |
| 8162 |
* @link http://www.php.net/manual/en/function.fsockopen.php |
| 8163 |
* @param hostname string <p> |
| 8164 |
* If OpenSSL support is |
| 8165 |
* installed, you may prefix the hostname |
| 8166 |
* with either ssl:// or tls:// to |
| 8167 |
* use an SSL or TLS client connection over TCP/IP to connect to the |
| 8168 |
* remote host. |
| 8169 |
* </p> |
| 8170 |
* @param port int[optional] <p> |
| 8171 |
* The port number. This can be omitted and skipped with |
| 8172 |
* -1 for transports that do not use ports, such as |
| 8173 |
* unix://. |
| 8174 |
* </p> |
| 8175 |
* @param errno int[optional] <p> |
| 8176 |
* If provided, holds the system level error number that occurred in the |
| 8177 |
* system-level connect() call. |
| 8178 |
* </p> |
| 8179 |
* <p> |
| 8180 |
* If the value returned in errno is |
| 8181 |
* 0 and the function returned false, it is an |
| 8182 |
* indication that the error occurred before the |
| 8183 |
* connect() call. This is most likely due to a |
| 8184 |
* problem initializing the socket. |
| 8185 |
* </p> |
| 8186 |
* @param errstr string[optional] <p> |
| 8187 |
* The error message as a string. |
| 8188 |
* </p> |
| 8189 |
* @param timeout float[optional] <p> |
| 8190 |
* The connection timeout, in seconds. |
| 8191 |
* </p> |
| 8192 |
* |
| 8193 |
* <p> |
| 8194 |
* If you need to set a timeout for reading/writing data over the |
| 8195 |
* socket, use stream_set_timeout, as the |
| 8196 |
* timeout parameter to |
| 8197 |
* fsockopen only applies while connecting the |
| 8198 |
* socket. |
| 8199 |
* </p> |
| 8200 |
* @return resource fsockopen returns a file pointer which may be used |
| 8201 |
* together with the other file functions (such as |
| 8202 |
* fgets, fgetss, |
| 8203 |
* fwrite, fclose, and |
| 8204 |
* feof). If the call fails, it will return false |
| 8205 |
*/ |
| 8206 |
function fsockopen ($hostname, $port = null, &$errno = null, &$errstr = null, $timeout = null) {} |
| 8207 |
|
| 8208 |
/** |
| 8209 |
* Open persistent Internet or Unix domain socket connection |
| 8210 |
* @link http://www.php.net/manual/en/function.pfsockopen.php |
| 8211 |
* @param hostname string |
| 8212 |
* @param port int[optional] |
| 8213 |
* @param errno int[optional] |
| 8214 |
* @param errstr string[optional] |
| 8215 |
* @param timeout float[optional] |
| 8216 |
* @return resource |
| 8217 |
*/ |
| 8218 |
function pfsockopen ($hostname, $port = null, &$errno = null, &$errstr = null, $timeout = null) {} |
| 8219 |
|
| 8220 |
/** |
| 8221 |
* Pack data into binary string |
| 8222 |
* @link http://www.php.net/manual/en/function.pack.php |
| 8223 |
* @param format string <p> |
| 8224 |
* The format string consists of format codes |
| 8225 |
* followed by an optional repeater argument. The repeater argument can |
| 8226 |
* be either an integer value or * for repeating to |
| 8227 |
* the end of the input data. For a, A, h, H the repeat count specifies |
| 8228 |
* how many characters of one data argument are taken, for @ it is the |
| 8229 |
* absolute position where to put the next data, for everything else the |
| 8230 |
* repeat count specifies how many data arguments are consumed and packed |
| 8231 |
* into the resulting binary string. |
| 8232 |
* </p> |
| 8233 |
* <p> |
| 8234 |
* Currently implemented formats are: |
| 8235 |
* <table> |
| 8236 |
* pack format characters |
| 8237 |
* |
| 8238 |
* |
| 8239 |
* <tr valign="top"> |
| 8240 |
* <td>Code</td> |
| 8241 |
* <td>Description</td> |
| 8242 |
* </tr> |
| 8243 |
* |
| 8244 |
* |
| 8245 |
* <tr valign="top"> |
| 8246 |
* <td>a</td> |
| 8247 |
* <td>NUL-padded string</td> |
| 8248 |
* </tr> |
| 8249 |
* <tr valign="top"> |
| 8250 |
* <td>A</td> |
| 8251 |
* <td>SPACE-padded string</td></tr> |
| 8252 |
* <tr valign="top"> |
| 8253 |
* <td>h</td> |
| 8254 |
* <td>Hex string, low nibble first</td></tr> |
| 8255 |
* <tr valign="top"> |
| 8256 |
* <td>H</td> |
| 8257 |
* <td>Hex string, high nibble first</td></tr> |
| 8258 |
* <tr valign="top"><td>c</td><td>signed char</td></tr> |
| 8259 |
* <tr valign="top"> |
| 8260 |
* <td>C</td> |
| 8261 |
* <td>unsigned char</td></tr> |
| 8262 |
* <tr valign="top"> |
| 8263 |
* <td>s</td> |
| 8264 |
* <td>signed short (always 16 bit, machine byte order)</td> |
| 8265 |
* </tr> |
| 8266 |
* <tr valign="top"> |
| 8267 |
* <td>S</td> |
| 8268 |
* <td>unsigned short (always 16 bit, machine byte order)</td> |
| 8269 |
* </tr> |
| 8270 |
* <tr valign="top"> |
| 8271 |
* <td>n</td> |
| 8272 |
* <td>unsigned short (always 16 bit, big endian byte order)</td> |
| 8273 |
* </tr> |
| 8274 |
* <tr valign="top"> |
| 8275 |
* <td>v</td> |
| 8276 |
* <td>unsigned short (always 16 bit, little endian byte order)</td> |
| 8277 |
* </tr> |
| 8278 |
* <tr valign="top"> |
| 8279 |
* <td>i</td> |
| 8280 |
* <td>signed integer (machine dependent size and byte order)</td> |
| 8281 |
* </tr> |
| 8282 |
* <tr valign="top"> |
| 8283 |
* <td>I</td> |
| 8284 |
* <td>unsigned integer (machine dependent size and byte order)</td> |
| 8285 |
* </tr> |
| 8286 |
* <tr valign="top"> |
| 8287 |
* <td>l</td> |
| 8288 |
* <td>signed long (always 32 bit, machine byte order)</td> |
| 8289 |
* </tr> |
| 8290 |
* <tr valign="top"> |
| 8291 |
* <td>L</td> |
| 8292 |
* <td>unsigned long (always 32 bit, machine byte order)</td> |
| 8293 |
* </tr> |
| 8294 |
* <tr valign="top"> |
| 8295 |
* <td>N</td> |
| 8296 |
* <td>unsigned long (always 32 bit, big endian byte order)</td> |
| 8297 |
* </tr> |
| 8298 |
* <tr valign="top"> |
| 8299 |
* <td>V</td> |
| 8300 |
* <td>unsigned long (always 32 bit, little endian byte order)</td> |
| 8301 |
* </tr> |
| 8302 |
* <tr valign="top"> |
| 8303 |
* <td>f</td> |
| 8304 |
* <td>float (machine dependent size and representation)</td> |
| 8305 |
* </tr> |
| 8306 |
* <tr valign="top"> |
| 8307 |
* <td>d</td> |
| 8308 |
* <td>double (machine dependent size and representation)</td> |
| 8309 |
* </tr> |
| 8310 |
* <tr valign="top"> |
| 8311 |
* <td>x</td> |
| 8312 |
* <td>NUL byte</td> |
| 8313 |
* </tr> |
| 8314 |
* <tr valign="top"> |
| 8315 |
* <td>X</td> |
| 8316 |
* <td>Back up one byte</td> |
| 8317 |
* </tr> |
| 8318 |
* <tr valign="top"> |
| 8319 |
* <td>Z</td> |
| 8320 |
* <td>NUL-padded string (new in PHP 5.5)</td> |
| 8321 |
* </tr> |
| 8322 |
* <tr valign="top"> |
| 8323 |
* <td>@</td> |
| 8324 |
* <td>NUL-fill to absolute position</td> |
| 8325 |
* </tr> |
| 8326 |
* |
| 8327 |
* |
| 8328 |
* </table> |
| 8329 |
* </p> |
| 8330 |
* @param args mixed[optional] <p> |
| 8331 |
* </p> |
| 8332 |
* @param _ mixed[optional] |
| 8333 |
* @return string a binary string containing data. |
| 8334 |
*/ |
| 8335 |
function pack ($format, $args = null, $_ = null) {} |
| 8336 |
|
| 8337 |
/** |
| 8338 |
* Unpack data from binary string |
| 8339 |
* @link http://www.php.net/manual/en/function.unpack.php |
| 8340 |
* @param format string <p> |
| 8341 |
* See pack for an explanation of the format codes. |
| 8342 |
* </p> |
| 8343 |
* @param data string <p> |
| 8344 |
* The packed data. |
| 8345 |
* </p> |
| 8346 |
* @return array an associative array containing unpacked elements of binary |
| 8347 |
* string. |
| 8348 |
*/ |
| 8349 |
function unpack ($format, $data) {} |
| 8350 |
|
| 8351 |
/** |
| 8352 |
* Tells what the user's browser is capable of |
| 8353 |
* @link http://www.php.net/manual/en/function.get-browser.php |
| 8354 |
* @param user_agent string[optional] <p> |
| 8355 |
* The User Agent to be analyzed. By default, the value of HTTP |
| 8356 |
* User-Agent header is used; however, you can alter this (i.e., look up |
| 8357 |
* another browser's info) by passing this parameter. |
| 8358 |
* </p> |
| 8359 |
* <p> |
| 8360 |
* You can bypass this parameter with a &null; value. |
| 8361 |
* </p> |
| 8362 |
* @param return_array bool[optional] <p> |
| 8363 |
* If set to true, this function will return an array |
| 8364 |
* instead of an object. |
| 8365 |
* </p> |
| 8366 |
* @return mixed The information is returned in an object or an array which will contain |
| 8367 |
* various data elements representing, for instance, the browser's major and |
| 8368 |
* minor version numbers and ID string; true/false values for features |
| 8369 |
* such as frames, JavaScript, and cookies; and so forth. |
| 8370 |
* </p> |
| 8371 |
* <p> |
| 8372 |
* The cookies value simply means that the browser |
| 8373 |
* itself is capable of accepting cookies and does not mean the user has |
| 8374 |
* enabled the browser to accept cookies or not. The only way to test if |
| 8375 |
* cookies are accepted is to set one with setcookie, |
| 8376 |
* reload, and check for the value. |
| 8377 |
*/ |
| 8378 |
function get_browser ($user_agent = null, $return_array = null) {} |
| 8379 |
|
| 8380 |
/** |
| 8381 |
* One-way string hashing |
| 8382 |
* @link http://www.php.net/manual/en/function.crypt.php |
| 8383 |
* @param str string <p> |
| 8384 |
* The string to be hashed. |
| 8385 |
* </p> |
| 8386 |
* |
| 8387 |
* <p> |
| 8388 |
* Using the CRYPT_BLOWFISH algorithm, will result |
| 8389 |
* in the str parameter being truncated to a |
| 8390 |
* maximum length of 72 characters. |
| 8391 |
* </p> |
| 8392 |
* @param salt string[optional] <p> |
| 8393 |
* An optional salt string to base the hashing on. If not provided, the |
| 8394 |
* behaviour is defined by the algorithm implementation and can lead to |
| 8395 |
* unexpected results. |
| 8396 |
* </p> |
| 8397 |
* @return string the hashed string or a string that is shorter than 13 characters |
| 8398 |
* and is guaranteed to differ from the salt on failure. |
| 8399 |
*/ |
| 8400 |
function crypt ($str, $salt = null) {} |
| 8401 |
|
| 8402 |
/** |
| 8403 |
* Open directory handle |
| 8404 |
* @link http://www.php.net/manual/en/function.opendir.php |
| 8405 |
* @param path string <p> |
| 8406 |
* The directory path that is to be opened |
| 8407 |
* </p> |
| 8408 |
* @param context resource[optional] <p> |
| 8409 |
* For a description of the context parameter, |
| 8410 |
* refer to the streams section of |
| 8411 |
* the manual. |
| 8412 |
* </p> |
| 8413 |
* @return resource a directory handle resource on success, or |
| 8414 |
* false on failure. |
| 8415 |
* </p> |
| 8416 |
* <p> |
| 8417 |
* If path is not a valid directory or the |
| 8418 |
* directory can not be opened due to permission restrictions or |
| 8419 |
* filesystem errors, opendir returns false and |
| 8420 |
* generates a PHP error of level |
| 8421 |
* E_WARNING. You can suppress the error output of |
| 8422 |
* opendir by prepending |
| 8423 |
* '@' to the |
| 8424 |
* front of the function name. |
| 8425 |
*/ |
| 8426 |
function opendir ($path, $context = null) {} |
| 8427 |
|
| 8428 |
/** |
| 8429 |
* Close directory handle |
| 8430 |
* @link http://www.php.net/manual/en/function.closedir.php |
| 8431 |
* @param dir_handle resource[optional] <p> |
| 8432 |
* The directory handle resource previously opened |
| 8433 |
* with opendir. If the directory handle is |
| 8434 |
* not specified, the last link opened by opendir |
| 8435 |
* is assumed. |
| 8436 |
* </p> |
| 8437 |
* @return void |
| 8438 |
*/ |
| 8439 |
function closedir ($dir_handle = null) {} |
| 8440 |
|
| 8441 |
/** |
| 8442 |
* Change directory |
| 8443 |
* @link http://www.php.net/manual/en/function.chdir.php |
| 8444 |
* @param directory string <p> |
| 8445 |
* The new current directory |
| 8446 |
* </p> |
| 8447 |
* @return bool Returns true on success, false on failure. |
| 8448 |
*/ |
| 8449 |
function chdir ($directory) {} |
| 8450 |
|
| 8451 |
/** |
| 8452 |
* Gets the current working directory |
| 8453 |
* @link http://www.php.net/manual/en/function.getcwd.php |
| 8454 |
* @return string the current working directory on success, or false on |
| 8455 |
* failure. |
| 8456 |
* </p> |
| 8457 |
* <p> |
| 8458 |
* On some Unix variants, getcwd will return |
| 8459 |
* false if any one of the parent directories does not have the |
| 8460 |
* readable or search mode set, even if the current directory |
| 8461 |
* does. See chmod for more information on |
| 8462 |
* modes and permissions. |
| 8463 |
*/ |
| 8464 |
function getcwd () {} |
| 8465 |
|
| 8466 |
/** |
| 8467 |
* Rewind directory handle |
| 8468 |
* @link http://www.php.net/manual/en/function.rewinddir.php |
| 8469 |
* @param dir_handle resource[optional] <p> |
| 8470 |
* The directory handle resource previously opened |
| 8471 |
* with opendir. If the directory handle is |
| 8472 |
* not specified, the last link opened by opendir |
| 8473 |
* is assumed. |
| 8474 |
* </p> |
| 8475 |
* @return void |
| 8476 |
*/ |
| 8477 |
function rewinddir ($dir_handle = null) {} |
| 8478 |
|
| 8479 |
/** |
| 8480 |
* Read entry from directory handle |
| 8481 |
* @link http://www.php.net/manual/en/function.readdir.php |
| 8482 |
* @param dir_handle resource[optional] <p> |
| 8483 |
* The directory handle resource previously opened |
| 8484 |
* with opendir. If the directory handle is |
| 8485 |
* not specified, the last link opened by opendir |
| 8486 |
* is assumed. |
| 8487 |
* </p> |
| 8488 |
* @return string the entry name on success&return.falseforfailure;. |
| 8489 |
*/ |
| 8490 |
function readdir ($dir_handle = null) {} |
| 8491 |
|
| 8492 |
/** |
| 8493 |
* Return an instance of the Directory class |
| 8494 |
* @link http://www.php.net/manual/en/function.dir.php |
| 8495 |
* @param directory string <p> |
| 8496 |
* Directory to open |
| 8497 |
* </p> |
| 8498 |
* @param context resource[optional] <p> |
| 8499 |
* ¬e.context-support; |
| 8500 |
* </p> |
| 8501 |
* @return Directory an instance of Directory, or &null; with |
| 8502 |
* wrong parameters, or false in case of another error. |
| 8503 |
*/ |
| 8504 |
function dir ($directory, $context = null) {} |
| 8505 |
|
| 8506 |
/** |
| 8507 |
* List files and directories inside the specified path |
| 8508 |
* @link http://www.php.net/manual/en/function.scandir.php |
| 8509 |
* @param directory string <p> |
| 8510 |
* The directory that will be scanned. |
| 8511 |
* </p> |
| 8512 |
* @param sorting_order int[optional] <p> |
| 8513 |
* By default, the sorted order is alphabetical in ascending order. If |
| 8514 |
* the optional sorting_order is set to |
| 8515 |
* SCANDIR_SORT_DESCENDING, then the sort order is |
| 8516 |
* alphabetical in descending order. If it is set to |
| 8517 |
* SCANDIR_SORT_NONE then the result is unsorted. |
| 8518 |
* </p> |
| 8519 |
* @param context resource[optional] <p> |
| 8520 |
* For a description of the context parameter, |
| 8521 |
* refer to the streams section of |
| 8522 |
* the manual. |
| 8523 |
* </p> |
| 8524 |
* @return array an array of filenames on success, or false on |
| 8525 |
* failure. If directory is not a directory, then |
| 8526 |
* boolean false is returned, and an error of level |
| 8527 |
* E_WARNING is generated. |
| 8528 |
*/ |
| 8529 |
function scandir ($directory, $sorting_order = null, $context = null) {} |
| 8530 |
|
| 8531 |
/** |
| 8532 |
* Find pathnames matching a pattern |
| 8533 |
* @link http://www.php.net/manual/en/function.glob.php |
| 8534 |
* @param pattern string <p> |
| 8535 |
* The pattern. No tilde expansion or parameter substitution is done. |
| 8536 |
* </p> |
| 8537 |
* @param flags int[optional] <p> |
| 8538 |
* Valid flags: |
| 8539 |
* |
| 8540 |
* |
| 8541 |
* |
| 8542 |
* GLOB_MARK - Adds a slash to each directory returned |
| 8543 |
* @return array an array containing the matched files/directories, an empty array |
| 8544 |
* if no file matched or false on error. |
| 8545 |
* </p> |
| 8546 |
* |
| 8547 |
* <p> |
| 8548 |
* On some systems it is impossible to distinguish between empty match and an |
| 8549 |
* error. |
| 8550 |
*/ |
| 8551 |
function glob ($pattern, $flags = null) {} |
| 8552 |
|
| 8553 |
/** |
| 8554 |
* Gets last access time of file |
| 8555 |
* @link http://www.php.net/manual/en/function.fileatime.php |
| 8556 |
* @param filename string <p> |
| 8557 |
* Path to the file. |
| 8558 |
* </p> |
| 8559 |
* @return int the time the file was last accessed, &return.falseforfailure;. |
| 8560 |
* The time is returned as a Unix timestamp. |
| 8561 |
*/ |
| 8562 |
function fileatime ($filename) {} |
| 8563 |
|
| 8564 |
/** |
| 8565 |
* Gets inode change time of file |
| 8566 |
* @link http://www.php.net/manual/en/function.filectime.php |
| 8567 |
* @param filename string <p> |
| 8568 |
* Path to the file. |
| 8569 |
* </p> |
| 8570 |
* @return int the time the file was last changed, &return.falseforfailure;. |
| 8571 |
* The time is returned as a Unix timestamp. |
| 8572 |
*/ |
| 8573 |
function filectime ($filename) {} |
| 8574 |
|
| 8575 |
/** |
| 8576 |
* Gets file group |
| 8577 |
* @link http://www.php.net/manual/en/function.filegroup.php |
| 8578 |
* @param filename string <p> |
| 8579 |
* Path to the file. |
| 8580 |
* </p> |
| 8581 |
* @return int the group ID of the file, or false if |
| 8582 |
* an error occurs. The group ID is returned in numerical format, use |
| 8583 |
* posix_getgrgid to resolve it to a group name. |
| 8584 |
* Upon failure, false is returned. |
| 8585 |
*/ |
| 8586 |
function filegroup ($filename) {} |
| 8587 |
|
| 8588 |
/** |
| 8589 |
* Gets file inode |
| 8590 |
* @link http://www.php.net/manual/en/function.fileinode.php |
| 8591 |
* @param filename string <p> |
| 8592 |
* Path to the file. |
| 8593 |
* </p> |
| 8594 |
* @return int the inode number of the file, &return.falseforfailure;. |
| 8595 |
*/ |
| 8596 |
function fileinode ($filename) {} |
| 8597 |
|
| 8598 |
/** |
| 8599 |
* Gets file modification time |
| 8600 |
* @link http://www.php.net/manual/en/function.filemtime.php |
| 8601 |
* @param filename string <p> |
| 8602 |
* Path to the file. |
| 8603 |
* </p> |
| 8604 |
* @return int the time the file was last modified, &return.falseforfailure;. |
| 8605 |
* The time is returned as a Unix timestamp, which is |
| 8606 |
* suitable for the date function. |
| 8607 |
*/ |
| 8608 |
function filemtime ($filename) {} |
| 8609 |
|
| 8610 |
/** |
| 8611 |
* Gets file owner |
| 8612 |
* @link http://www.php.net/manual/en/function.fileowner.php |
| 8613 |
* @param filename string <p> |
| 8614 |
* Path to the file. |
| 8615 |
* </p> |
| 8616 |
* @return int the user ID of the owner of the file, &return.falseforfailure;. |
| 8617 |
* The user ID is returned in numerical format, use |
| 8618 |
* posix_getpwuid to resolve it to a username. |
| 8619 |
*/ |
| 8620 |
function fileowner ($filename) {} |
| 8621 |
|
| 8622 |
/** |
| 8623 |
* Gets file permissions |
| 8624 |
* @link http://www.php.net/manual/en/function.fileperms.php |
| 8625 |
* @param filename string <p> |
| 8626 |
* Path to the file. |
| 8627 |
* </p> |
| 8628 |
* @return int the file's permissions as a numeric mode. Lower bits of this mode |
| 8629 |
* are the same as the permissions expected by chmod, |
| 8630 |
* however on most platforms the return value will also include information on |
| 8631 |
* the type of file given as filename. The examples |
| 8632 |
* below demonstrate how to test the return value for specific permissions and |
| 8633 |
* file types on POSIX systems, including Linux and Mac OS X. |
| 8634 |
* </p> |
| 8635 |
* <p> |
| 8636 |
* For local files, the specific return value is that of the |
| 8637 |
* st_mode member of the structure returned by the C |
| 8638 |
* library's stat function. Exactly which bits are set |
| 8639 |
* can vary from platform to platform, and looking up your specific platform's |
| 8640 |
* documentation is recommended if parsing the non-permission bits of the |
| 8641 |
* return value is required. |
| 8642 |
*/ |
| 8643 |
function fileperms ($filename) {} |
| 8644 |
|
| 8645 |
/** |
| 8646 |
* Gets file size |
| 8647 |
* @link http://www.php.net/manual/en/function.filesize.php |
| 8648 |
* @param filename string <p> |
| 8649 |
* Path to the file. |
| 8650 |
* </p> |
| 8651 |
* @return int the size of the file in bytes, or false (and generates an error |
| 8652 |
* of level E_WARNING) in case of an error. |
| 8653 |
*/ |
| 8654 |
function filesize ($filename) {} |
| 8655 |
|
| 8656 |
/** |
| 8657 |
* Gets file type |
| 8658 |
* @link http://www.php.net/manual/en/function.filetype.php |
| 8659 |
* @param filename string <p> |
| 8660 |
* Path to the file. |
| 8661 |
* </p> |
| 8662 |
* @return string the type of the file. Possible values are fifo, char, |
| 8663 |
* dir, block, link, file, socket and unknown. |
| 8664 |
* </p> |
| 8665 |
* <p> |
| 8666 |
* Returns false if an error occurs. filetype will also |
| 8667 |
* produce an E_NOTICE message if the stat call fails |
| 8668 |
* or if the file type is unknown. |
| 8669 |
*/ |
| 8670 |
function filetype ($filename) {} |
| 8671 |
|
| 8672 |
/** |
| 8673 |
* Checks whether a file or directory exists |
| 8674 |
* @link http://www.php.net/manual/en/function.file-exists.php |
| 8675 |
* @param filename string <p> |
| 8676 |
* Path to the file or directory. |
| 8677 |
* </p> |
| 8678 |
* <p> |
| 8679 |
* On windows, use //computername/share/filename or |
| 8680 |
* \\computername\share\filename to check files on |
| 8681 |
* network shares. |
| 8682 |
* </p> |
| 8683 |
* @return bool true if the file or directory specified by |
| 8684 |
* filename exists; false otherwise. |
| 8685 |
* </p> |
| 8686 |
* |
| 8687 |
* <p> |
| 8688 |
* This function will return false for symlinks pointing to non-existing |
| 8689 |
* files. |
| 8690 |
* </p> |
| 8691 |
* |
| 8692 |
* |
| 8693 |
* <p> |
| 8694 |
* This function returns false for files inaccessible due to safe mode restrictions. However these |
| 8695 |
* files still can be included if |
| 8696 |
* they are located in safe_mode_include_dir. |
| 8697 |
* </p> |
| 8698 |
* |
| 8699 |
* |
| 8700 |
* <p> |
| 8701 |
* The check is done using the real UID/GID instead of the effective one. |
| 8702 |
*/ |
| 8703 |
function file_exists ($filename) {} |
| 8704 |
|
| 8705 |
/** |
| 8706 |
* Tells whether the filename is writable |
| 8707 |
* @link http://www.php.net/manual/en/function.is-writable.php |
| 8708 |
* @param filename string <p> |
| 8709 |
* The filename being checked. |
| 8710 |
* </p> |
| 8711 |
* @return bool true if the filename exists and is |
| 8712 |
* writable. |
| 8713 |
*/ |
| 8714 |
function is_writable ($filename) {} |
| 8715 |
|
| 8716 |
/** |
| 8717 |
* &Alias; <function>is_writable</function> |
| 8718 |
* @link http://www.php.net/manual/en/function.is-writeable.php |
| 8719 |
* @param filename |
| 8720 |
*/ |
| 8721 |
function is_writeable ($filename) {} |
| 8722 |
|
| 8723 |
/** |
| 8724 |
* Tells whether a file exists and is readable |
| 8725 |
* @link http://www.php.net/manual/en/function.is-readable.php |
| 8726 |
* @param filename string <p> |
| 8727 |
* Path to the file. |
| 8728 |
* </p> |
| 8729 |
* @return bool true if the file or directory specified by |
| 8730 |
* filename exists and is readable, false otherwise. |
| 8731 |
*/ |
| 8732 |
function is_readable ($filename) {} |
| 8733 |
|
| 8734 |
/** |
| 8735 |
* Tells whether the filename is executable |
| 8736 |
* @link http://www.php.net/manual/en/function.is-executable.php |
| 8737 |
* @param filename string <p> |
| 8738 |
* Path to the file. |
| 8739 |
* </p> |
| 8740 |
* @return bool true if the filename exists and is executable, or false on |
| 8741 |
* error. |
| 8742 |
*/ |
| 8743 |
function is_executable ($filename) {} |
| 8744 |
|
| 8745 |
/** |
| 8746 |
* Tells whether the filename is a regular file |
| 8747 |
* @link http://www.php.net/manual/en/function.is-file.php |
| 8748 |
* @param filename string <p> |
| 8749 |
* Path to the file. |
| 8750 |
* </p> |
| 8751 |
* @return bool true if the filename exists and is a regular file, false |
| 8752 |
* otherwise. |
| 8753 |
*/ |
| 8754 |
function is_file ($filename) {} |
| 8755 |
|
| 8756 |
/** |
| 8757 |
* Tells whether the filename is a directory |
| 8758 |
* @link http://www.php.net/manual/en/function.is-dir.php |
| 8759 |
* @param filename string <p> |
| 8760 |
* Path to the file. If filename is a relative |
| 8761 |
* filename, it will be checked relative to the current working |
| 8762 |
* directory. If filename is a symbolic or hard link |
| 8763 |
* then the link will be resolved and checked. If you have enabled &safemode;, |
| 8764 |
* or open_basedir further |
| 8765 |
* restrictions may apply. |
| 8766 |
* </p> |
| 8767 |
* @return bool true if the filename exists and is a directory, false |
| 8768 |
* otherwise. |
| 8769 |
*/ |
| 8770 |
function is_dir ($filename) {} |
| 8771 |
|
| 8772 |
/** |
| 8773 |
* Tells whether the filename is a symbolic link |
| 8774 |
* @link http://www.php.net/manual/en/function.is-link.php |
| 8775 |
* @param filename string <p> |
| 8776 |
* Path to the file. |
| 8777 |
* </p> |
| 8778 |
* @return bool true if the filename exists and is a symbolic link, false |
| 8779 |
* otherwise. |
| 8780 |
*/ |
| 8781 |
function is_link ($filename) {} |
| 8782 |
|
| 8783 |
/** |
| 8784 |
* Gives information about a file |
| 8785 |
* @link http://www.php.net/manual/en/function.stat.php |
| 8786 |
* @param filename string <p> |
| 8787 |
* Path to the file. |
| 8788 |
* </p> |
| 8789 |
* @return array <table> |
| 8790 |
* stat and fstat result |
| 8791 |
* format |
| 8792 |
* |
| 8793 |
* |
| 8794 |
* <tr valign="top"> |
| 8795 |
* <td>Numeric</td> |
| 8796 |
* <td>Associative</td> |
| 8797 |
* <td>Description</td> |
| 8798 |
* </tr> |
| 8799 |
* |
| 8800 |
* |
| 8801 |
* <tr valign="top"> |
| 8802 |
* <td>0</td> |
| 8803 |
* <td>dev</td> |
| 8804 |
* <td>device number</td> |
| 8805 |
* </tr> |
| 8806 |
* <tr valign="top"> |
| 8807 |
* <td>1</td> |
| 8808 |
* <td>ino</td> |
| 8809 |
* <td>inode number *</td> |
| 8810 |
* </tr> |
| 8811 |
* <tr valign="top"> |
| 8812 |
* <td>2</td> |
| 8813 |
* <td>mode</td> |
| 8814 |
* <td>inode protection mode</td> |
| 8815 |
* </tr> |
| 8816 |
* <tr valign="top"> |
| 8817 |
* <td>3</td> |
| 8818 |
* <td>nlink</td> |
| 8819 |
* <td>number of links</td> |
| 8820 |
* </tr> |
| 8821 |
* <tr valign="top"> |
| 8822 |
* <td>4</td> |
| 8823 |
* <td>uid</td> |
| 8824 |
* <td>userid of owner *</td> |
| 8825 |
* </tr> |
| 8826 |
* <tr valign="top"> |
| 8827 |
* <td>5</td> |
| 8828 |
* <td>gid</td> |
| 8829 |
* <td>groupid of owner *</td> |
| 8830 |
* </tr> |
| 8831 |
* <tr valign="top"> |
| 8832 |
* <td>6</td> |
| 8833 |
* <td>rdev</td> |
| 8834 |
* <td>device type, if inode device</td> |
| 8835 |
* </tr> |
| 8836 |
* <tr valign="top"> |
| 8837 |
* <td>7</td> |
| 8838 |
* <td>size</td> |
| 8839 |
* <td>size in bytes</td> |
| 8840 |
* </tr> |
| 8841 |
* <tr valign="top"> |
| 8842 |
* <td>8</td> |
| 8843 |
* <td>atime</td> |
| 8844 |
* <td>time of last access (Unix timestamp)</td> |
| 8845 |
* </tr> |
| 8846 |
* <tr valign="top"> |
| 8847 |
* <td>9</td> |
| 8848 |
* <td>mtime</td> |
| 8849 |
* <td>time of last modification (Unix timestamp)</td> |
| 8850 |
* </tr> |
| 8851 |
* <tr valign="top"> |
| 8852 |
* <td>10</td> |
| 8853 |
* <td>ctime</td> |
| 8854 |
* <td>time of last inode change (Unix timestamp)</td> |
| 8855 |
* </tr> |
| 8856 |
* <tr valign="top"> |
| 8857 |
* <td>11</td> |
| 8858 |
* <td>blksize</td> |
| 8859 |
* <td>blocksize of filesystem IO **</td> |
| 8860 |
* </tr> |
| 8861 |
* <tr valign="top"> |
| 8862 |
* <td>12</td> |
| 8863 |
* <td>blocks</td> |
| 8864 |
* <td>number of 512-byte blocks allocated **</td> |
| 8865 |
* </tr> |
| 8866 |
* |
| 8867 |
* |
| 8868 |
* </table> |
| 8869 |
* * On Windows this will always be 0. |
| 8870 |
* </p> |
| 8871 |
* <p> |
| 8872 |
* ** Only valid on systems supporting the st_blksize type - other |
| 8873 |
* systems (e.g. Windows) return -1. |
| 8874 |
* </p> |
| 8875 |
* <p> |
| 8876 |
* In case of error, stat returns false. |
| 8877 |
*/ |
| 8878 |
function stat ($filename) {} |
| 8879 |
|
| 8880 |
/** |
| 8881 |
* Gives information about a file or symbolic link |
| 8882 |
* @link http://www.php.net/manual/en/function.lstat.php |
| 8883 |
* @param filename string <p> |
| 8884 |
* Path to a file or a symbolic link. |
| 8885 |
* </p> |
| 8886 |
* @return array See the manual page for stat for information on |
| 8887 |
* the structure of the array that lstat returns. |
| 8888 |
* This function is identical to the stat function |
| 8889 |
* except that if the filename parameter is a symbolic |
| 8890 |
* link, the status of the symbolic link is returned, not the status of the |
| 8891 |
* file pointed to by the symbolic link. |
| 8892 |
*/ |
| 8893 |
function lstat ($filename) {} |
| 8894 |
|
| 8895 |
/** |
| 8896 |
* Changes file owner |
| 8897 |
* @link http://www.php.net/manual/en/function.chown.php |
| 8898 |
* @param filename string <p> |
| 8899 |
* Path to the file. |
| 8900 |
* </p> |
| 8901 |
* @param user mixed <p> |
| 8902 |
* A user name or number. |
| 8903 |
* </p> |
| 8904 |
* @return bool Returns true on success, false on failure. |
| 8905 |
*/ |
| 8906 |
function chown ($filename, $user) {} |
| 8907 |
|
| 8908 |
/** |
| 8909 |
* Changes file group |
| 8910 |
* @link http://www.php.net/manual/en/function.chgrp.php |
| 8911 |
* @param filename string <p> |
| 8912 |
* Path to the file. |
| 8913 |
* </p> |
| 8914 |
* @param group mixed <p> |
| 8915 |
* A group name or number. |
| 8916 |
* </p> |
| 8917 |
* @return bool Returns true on success, false on failure. |
| 8918 |
*/ |
| 8919 |
function chgrp ($filename, $group) {} |
| 8920 |
|
| 8921 |
/** |
| 8922 |
* Changes user ownership of symlink |
| 8923 |
* @link http://www.php.net/manual/en/function.lchown.php |
| 8924 |
* @param filename string <p> |
| 8925 |
* Path to the file. |
| 8926 |
* </p> |
| 8927 |
* @param user mixed <p> |
| 8928 |
* User name or number. |
| 8929 |
* </p> |
| 8930 |
* @return bool Returns true on success, false on failure. |
| 8931 |
*/ |
| 8932 |
function lchown ($filename, $user) {} |
| 8933 |
|
| 8934 |
/** |
| 8935 |
* Changes group ownership of symlink |
| 8936 |
* @link http://www.php.net/manual/en/function.lchgrp.php |
| 8937 |
* @param filename string <p> |
| 8938 |
* Path to the symlink. |
| 8939 |
* </p> |
| 8940 |
* @param group mixed <p> |
| 8941 |
* The group specified by name or number. |
| 8942 |
* </p> |
| 8943 |
* @return bool Returns true on success, false on failure. |
| 8944 |
*/ |
| 8945 |
function lchgrp ($filename, $group) {} |
| 8946 |
|
| 8947 |
/** |
| 8948 |
* Changes file mode |
| 8949 |
* @link http://www.php.net/manual/en/function.chmod.php |
| 8950 |
* @param filename string <p> |
| 8951 |
* Path to the file. |
| 8952 |
* </p> |
| 8953 |
* @param mode int <p> |
| 8954 |
* Note that mode is not automatically |
| 8955 |
* assumed to be an octal value, so to ensure the expected operation, |
| 8956 |
* you need to prefix mode with a zero (0). |
| 8957 |
* Strings such as "g+w" will not work properly. |
| 8958 |
* </p> |
| 8959 |
* <p> |
| 8960 |
* |
| 8961 |
* |
| 8962 |
* ]]> |
| 8963 |
* |
| 8964 |
* |
| 8965 |
* </p> |
| 8966 |
* <p> |
| 8967 |
* The mode parameter consists of three octal |
| 8968 |
* number components specifying access restrictions for the owner, |
| 8969 |
* the user group in which the owner is in, and to everybody else in |
| 8970 |
* this order. One component can be computed by adding up the needed |
| 8971 |
* permissions for that target user base. Number 1 means that you |
| 8972 |
* grant execute rights, number 2 means that you make the file |
| 8973 |
* writeable, number 4 means that you make the file readable. Add |
| 8974 |
* up these numbers to specify needed rights. You can also read more |
| 8975 |
* about modes on Unix systems with 'man 1 chmod' |
| 8976 |
* and 'man 2 chmod'. |
| 8977 |
* </p> |
| 8978 |
* <p> |
| 8979 |
* @return bool Returns true on success, false on failure. |
| 8980 |
*/ |
| 8981 |
function chmod ($filename, $mode) {} |
| 8982 |
|
| 8983 |
/** |
| 8984 |
* Sets access and modification time of file |
| 8985 |
* @link http://www.php.net/manual/en/function.touch.php |
| 8986 |
* @param filename string <p> |
| 8987 |
* The name of the file being touched. |
| 8988 |
* </p> |
| 8989 |
* @param time int[optional] <p> |
| 8990 |
* The touch time. If time is not supplied, |
| 8991 |
* the current system time is used. |
| 8992 |
* </p> |
| 8993 |
* @param atime int[optional] <p> |
| 8994 |
* If present, the access time of the given filename is set to |
| 8995 |
* the value of atime. Otherwise, it is set to |
| 8996 |
* the value passed to the time parameter. |
| 8997 |
* If neither are present, the current system time is used. |
| 8998 |
* </p> |
| 8999 |
* @return bool Returns true on success, false on failure. |
| 9000 |
*/ |
| 9001 |
function touch ($filename, $time = null, $atime = null) {} |
| 9002 |
|
| 9003 |
/** |
| 9004 |
* Clears file status cache |
| 9005 |
* @link http://www.php.net/manual/en/function.clearstatcache.php |
| 9006 |
* @param clear_realpath_cache bool[optional] <p> |
| 9007 |
* Whether to clear the realpath cache or not. |
| 9008 |
* </p> |
| 9009 |
* @param filename string[optional] <p> |
| 9010 |
* Clear the realpath and the stat cache for a specific filename only; only |
| 9011 |
* used if clear_realpath_cache is true. |
| 9012 |
* </p> |
| 9013 |
* @return void |
| 9014 |
*/ |
| 9015 |
function clearstatcache ($clear_realpath_cache = null, $filename = null) {} |
| 9016 |
|
| 9017 |
/** |
| 9018 |
* Returns the total size of a filesystem or disk partition |
| 9019 |
* @link http://www.php.net/manual/en/function.disk-total-space.php |
| 9020 |
* @param directory string <p> |
| 9021 |
* A directory of the filesystem or disk partition. |
| 9022 |
* </p> |
| 9023 |
* @return float the total number of bytes as a float |
| 9024 |
* &return.falseforfailure;. |
| 9025 |
*/ |
| 9026 |
function disk_total_space ($directory) {} |
| 9027 |
|
| 9028 |
/** |
| 9029 |
* Returns available space on filesystem or disk partition |
| 9030 |
* @link http://www.php.net/manual/en/function.disk-free-space.php |
| 9031 |
* @param directory string <p> |
| 9032 |
* A directory of the filesystem or disk partition. |
| 9033 |
* </p> |
| 9034 |
* |
| 9035 |
* <p> |
| 9036 |
* Given a file name instead of a directory, the behaviour of the |
| 9037 |
* function is unspecified and may differ between operating systems and |
| 9038 |
* PHP versions. |
| 9039 |
* </p> |
| 9040 |
* @return float the number of available bytes as a float |
| 9041 |
* &return.falseforfailure;. |
| 9042 |
*/ |
| 9043 |
function disk_free_space ($directory) {} |
| 9044 |
|
| 9045 |
/** |
| 9046 |
* &Alias; <function>disk_free_space</function> |
| 9047 |
* @link http://www.php.net/manual/en/function.diskfreespace.php |
| 9048 |
* @param path |
| 9049 |
*/ |
| 9050 |
function diskfreespace ($path) {} |
| 9051 |
|
| 9052 |
/** |
| 9053 |
* Get realpath cache size |
| 9054 |
* @link http://www.php.net/manual/en/function.realpath-cache-size.php |
| 9055 |
* @return int how much memory realpath cache is using. |
| 9056 |
*/ |
| 9057 |
function realpath_cache_size () {} |
| 9058 |
|
| 9059 |
/** |
| 9060 |
* Get realpath cache entries |
| 9061 |
* @link http://www.php.net/manual/en/function.realpath-cache-get.php |
| 9062 |
* @return array an array of realpath cache entries. The keys are original path |
| 9063 |
* entries, and the values are arrays of data items, containing the resolved |
| 9064 |
* path, expiration date, and other options kept in the cache. |
| 9065 |
*/ |
| 9066 |
function realpath_cache_get () {} |
| 9067 |
|
| 9068 |
/** |
| 9069 |
* Send mail |
| 9070 |
* @link http://www.php.net/manual/en/function.mail.php |
| 9071 |
* @param to string <p> |
| 9072 |
* Receiver, or receivers of the mail. |
| 9073 |
* </p> |
| 9074 |
* <p> |
| 9075 |
* The formatting of this string must comply with |
| 9076 |
* RFC 2822. Some examples are: |
| 9077 |
* |
| 9078 |
* [email protected] |
| 9079 |
* [email protected], [email protected] |
| 9080 |
* User |
| 9081 |
* User , Another User |
| 9082 |
* |
| 9083 |
* </p> |
| 9084 |
* @param subject string <p> |
| 9085 |
* Subject of the email to be sent. |
| 9086 |
* </p> |
| 9087 |
* |
| 9088 |
* <p> |
| 9089 |
* Subject must satisfy RFC 2047. |
| 9090 |
* </p> |
| 9091 |
* @param message string <p> |
| 9092 |
* Message to be sent. |
| 9093 |
* </p> |
| 9094 |
* <p> |
| 9095 |
* Each line should be separated with a CRLF (\r\n). Lines should not be |
| 9096 |
* larger than 70 characters. |
| 9097 |
* </p> |
| 9098 |
* |
| 9099 |
* <p> |
| 9100 |
* (Windows only) When PHP is talking to a SMTP server directly, if a full |
| 9101 |
* stop is found on the start of a line, it is removed. To counter-act this, |
| 9102 |
* replace these occurrences with a double dot. |
| 9103 |
* |
| 9104 |
* ]]> |
| 9105 |
* |
| 9106 |
* </p> |
| 9107 |
* @param additional_headers string[optional] <p> |
| 9108 |
* String to be inserted at the end of the email header. |
| 9109 |
* </p> |
| 9110 |
* <p> |
| 9111 |
* This is typically used to add extra headers (From, Cc, and Bcc). |
| 9112 |
* Multiple extra headers should be separated with a CRLF (\r\n). |
| 9113 |
* If outside data are used to compose this header, the data should be sanitized |
| 9114 |
* so that no unwanted headers could be injected. |
| 9115 |
* </p> |
| 9116 |
* |
| 9117 |
* <p> |
| 9118 |
* When sending mail, the mail must contain |
| 9119 |
* a From header. This can be set with the |
| 9120 |
* additional_headers parameter, or a default |
| 9121 |
* can be set in &php.ini;. |
| 9122 |
* </p> |
| 9123 |
* <p> |
| 9124 |
* Failing to do this will result in an error |
| 9125 |
* message similar to Warning: mail(): "sendmail_from" not |
| 9126 |
* set in php.ini or custom "From:" header missing. |
| 9127 |
* The From header sets also |
| 9128 |
* Return-Path under Windows. |
| 9129 |
* </p> |
| 9130 |
* |
| 9131 |
* |
| 9132 |
* <p> |
| 9133 |
* If messages are not received, try using a LF (\n) only. |
| 9134 |
* Some Unix mail transfer agents (most notably |
| 9135 |
* qmail) replace LF by CRLF |
| 9136 |
* automatically (which leads to doubling CR if CRLF is used). |
| 9137 |
* This should be a last resort, as it does not comply with |
| 9138 |
* RFC 2822. |
| 9139 |
* </p> |
| 9140 |
* @param additional_parameters string[optional] <p> |
| 9141 |
* The additional_parameters parameter |
| 9142 |
* can be used to pass additional flags as command line options to the |
| 9143 |
* program configured to be used when sending mail, as defined by the |
| 9144 |
* sendmail_path configuration setting. For example, |
| 9145 |
* this can be used to set the envelope sender address when using |
| 9146 |
* sendmail with the -f sendmail option. |
| 9147 |
* </p> |
| 9148 |
* <p> |
| 9149 |
* This parameter is escaped by escapeshellcmd internally |
| 9150 |
* to prevent command execution. escapeshellcmd prevents |
| 9151 |
* command execution, but allows to add addtional parameters. For security reasons, |
| 9152 |
* it is recommended for the user to sanitize this parameter to avoid adding unwanted |
| 9153 |
* parameters to the shell command. |
| 9154 |
* </p> |
| 9155 |
* <p> |
| 9156 |
* Since escapeshellcmd is applied automatically, some characters |
| 9157 |
* that are allowed as email addresses by internet RFCs cannot be used. |
| 9158 |
* mail can not allow such characters, so in programs where the use of |
| 9159 |
* such characters is required, alternative means of sending emails (such as using a framework |
| 9160 |
* or a library) is recommended. |
| 9161 |
* </p> |
| 9162 |
* <p> |
| 9163 |
* The user that the webserver runs as should be added as a trusted user to the |
| 9164 |
* sendmail configuration to prevent a 'X-Warning' header from being added |
| 9165 |
* to the message when the envelope sender (-f) is set using this method. |
| 9166 |
* For sendmail users, this file is /etc/mail/trusted-users. |
| 9167 |
* </p> |
| 9168 |
* @return bool true if the mail was successfully accepted for delivery, false otherwise. |
| 9169 |
* </p> |
| 9170 |
* <p> |
| 9171 |
* It is important to note that just because the mail was accepted for delivery, |
| 9172 |
* it does NOT mean the mail will actually reach the intended destination. |
| 9173 |
*/ |
| 9174 |
function mail ($to, $subject, $message, $additional_headers = null, $additional_parameters = null) {} |
| 9175 |
|
| 9176 |
/** |
| 9177 |
* Calculate the hash value needed by EZMLM |
| 9178 |
* @link http://www.php.net/manual/en/function.ezmlm-hash.php |
| 9179 |
* @param addr string <p> |
| 9180 |
* The email address that's being hashed. |
| 9181 |
* </p> |
| 9182 |
* @return int The hash value of addr. |
| 9183 |
*/ |
| 9184 |
function ezmlm_hash ($addr) {} |
| 9185 |
|
| 9186 |
/** |
| 9187 |
* Open connection to system logger |
| 9188 |
* @link http://www.php.net/manual/en/function.openlog.php |
| 9189 |
* @param ident string <p> |
| 9190 |
* The string ident is added to each message. |
| 9191 |
* </p> |
| 9192 |
* @param option int <p> |
| 9193 |
* The option argument is used to indicate |
| 9194 |
* what logging options will be used when generating a log message. |
| 9195 |
* <table> |
| 9196 |
* openlog Options |
| 9197 |
* |
| 9198 |
* |
| 9199 |
* <tr valign="top"> |
| 9200 |
* <td>Constant</td> |
| 9201 |
* <td>Description</td> |
| 9202 |
* </tr> |
| 9203 |
* |
| 9204 |
* |
| 9205 |
* <tr valign="top"> |
| 9206 |
* <td>LOG_CONS</td> |
| 9207 |
* <td> |
| 9208 |
* if there is an error while sending data to the system logger, |
| 9209 |
* write directly to the system console |
| 9210 |
* </td> |
| 9211 |
* </tr> |
| 9212 |
* <tr valign="top"> |
| 9213 |
* <td>LOG_NDELAY</td> |
| 9214 |
* <td> |
| 9215 |
* open the connection to the logger immediately |
| 9216 |
* </td> |
| 9217 |
* </tr> |
| 9218 |
* <tr valign="top"> |
| 9219 |
* <td>LOG_ODELAY</td> |
| 9220 |
* <td> |
| 9221 |
* (default) delay opening the connection until the first |
| 9222 |
* message is logged |
| 9223 |
* </td> |
| 9224 |
* </tr> |
| 9225 |
* <tr valign="top"> |
| 9226 |
* <td>LOG_PERROR</td> |
| 9227 |
* <td>print log message also to standard error</td> |
| 9228 |
* </tr> |
| 9229 |
* <tr valign="top"> |
| 9230 |
* <td>LOG_PID</td> |
| 9231 |
* <td>include PID with each message</td> |
| 9232 |
* </tr> |
| 9233 |
* |
| 9234 |
* |
| 9235 |
* </table> |
| 9236 |
* You can use one or more of this options. When using multiple options |
| 9237 |
* you need to OR them, i.e. to open the connection |
| 9238 |
* immediately, write to the console and include the PID in each message, |
| 9239 |
* you will use: LOG_CONS | LOG_NDELAY | LOG_PID |
| 9240 |
* </p> |
| 9241 |
* @param facility int <p> |
| 9242 |
* The facility argument is used to specify what |
| 9243 |
* type of program is logging the message. This allows you to specify |
| 9244 |
* (in your machine's syslog configuration) how messages coming from |
| 9245 |
* different facilities will be handled. |
| 9246 |
* <table> |
| 9247 |
* openlog Facilities |
| 9248 |
* |
| 9249 |
* |
| 9250 |
* <tr valign="top"> |
| 9251 |
* <td>Constant</td> |
| 9252 |
* <td>Description</td> |
| 9253 |
* </tr> |
| 9254 |
* |
| 9255 |
* |
| 9256 |
* <tr valign="top"> |
| 9257 |
* <td>LOG_AUTH</td> |
| 9258 |
* <td> |
| 9259 |
* security/authorization messages (use |
| 9260 |
* LOG_AUTHPRIV instead |
| 9261 |
* in systems where that constant is defined) |
| 9262 |
* </td> |
| 9263 |
* </tr> |
| 9264 |
* <tr valign="top"> |
| 9265 |
* <td>LOG_AUTHPRIV</td> |
| 9266 |
* <td>security/authorization messages (private)</td> |
| 9267 |
* </tr> |
| 9268 |
* <tr valign="top"> |
| 9269 |
* <td>LOG_CRON</td> |
| 9270 |
* <td>clock daemon (cron and at)</td> |
| 9271 |
* </tr> |
| 9272 |
* <tr valign="top"> |
| 9273 |
* <td>LOG_DAEMON</td> |
| 9274 |
* <td>other system daemons</td> |
| 9275 |
* </tr> |
| 9276 |
* <tr valign="top"> |
| 9277 |
* <td>LOG_KERN</td> |
| 9278 |
* <td>kernel messages</td> |
| 9279 |
* </tr> |
| 9280 |
* <tr valign="top"> |
| 9281 |
* <td>LOG_LOCAL0 ... LOG_LOCAL7</td> |
| 9282 |
* <td>reserved for local use, these are not available in Windows</td> |
| 9283 |
* </tr> |
| 9284 |
* <tr valign="top"> |
| 9285 |
* <td>LOG_LPR</td> |
| 9286 |
* <td>line printer subsystem</td> |
| 9287 |
* </tr> |
| 9288 |
* <tr valign="top"> |
| 9289 |
* <td>LOG_MAIL</td> |
| 9290 |
* <td>mail subsystem</td> |
| 9291 |
* </tr> |
| 9292 |
* <tr valign="top"> |
| 9293 |
* <td>LOG_NEWS</td> |
| 9294 |
* <td>USENET news subsystem</td> |
| 9295 |
* </tr> |
| 9296 |
* <tr valign="top"> |
| 9297 |
* <td>LOG_SYSLOG</td> |
| 9298 |
* <td>messages generated internally by syslogd</td> |
| 9299 |
* </tr> |
| 9300 |
* <tr valign="top"> |
| 9301 |
* <td>LOG_USER</td> |
| 9302 |
* <td>generic user-level messages</td> |
| 9303 |
* </tr> |
| 9304 |
* <tr valign="top"> |
| 9305 |
* <td>LOG_UUCP</td> |
| 9306 |
* <td>UUCP subsystem</td> |
| 9307 |
* </tr> |
| 9308 |
* |
| 9309 |
* |
| 9310 |
* </table> |
| 9311 |
* </p> |
| 9312 |
* |
| 9313 |
* <p> |
| 9314 |
* LOG_USER is the only valid log type under Windows |
| 9315 |
* operating systems |
| 9316 |
* </p> |
| 9317 |
* @return bool Returns true on success, false on failure. |
| 9318 |
*/ |
| 9319 |
function openlog ($ident, $option, $facility) {} |
| 9320 |
|
| 9321 |
/** |
| 9322 |
* Generate a system log message |
| 9323 |
* @link http://www.php.net/manual/en/function.syslog.php |
| 9324 |
* @param priority int <p> |
| 9325 |
* priority is a combination of the facility and |
| 9326 |
* the level. Possible values are: |
| 9327 |
* <table> |
| 9328 |
* syslog Priorities (in descending order) |
| 9329 |
* |
| 9330 |
* |
| 9331 |
* <tr valign="top"> |
| 9332 |
* <td>Constant</td> |
| 9333 |
* <td>Description</td> |
| 9334 |
* </tr> |
| 9335 |
* |
| 9336 |
* |
| 9337 |
* <tr valign="top"> |
| 9338 |
* <td>LOG_EMERG</td> |
| 9339 |
* <td>system is unusable</td> |
| 9340 |
* </tr> |
| 9341 |
* <tr valign="top"> |
| 9342 |
* <td>LOG_ALERT</td> |
| 9343 |
* <td>action must be taken immediately</td> |
| 9344 |
* </tr> |
| 9345 |
* <tr valign="top"> |
| 9346 |
* <td>LOG_CRIT</td> |
| 9347 |
* <td>critical conditions</td> |
| 9348 |
* </tr> |
| 9349 |
* <tr valign="top"> |
| 9350 |
* <td>LOG_ERR</td> |
| 9351 |
* <td>error conditions</td> |
| 9352 |
* </tr> |
| 9353 |
* <tr valign="top"> |
| 9354 |
* <td>LOG_WARNING</td> |
| 9355 |
* <td>warning conditions</td> |
| 9356 |
* </tr> |
| 9357 |
* <tr valign="top"> |
| 9358 |
* <td>LOG_NOTICE</td> |
| 9359 |
* <td>normal, but significant, condition</td> |
| 9360 |
* </tr> |
| 9361 |
* <tr valign="top"> |
| 9362 |
* <td>LOG_INFO</td> |
| 9363 |
* <td>informational message</td> |
| 9364 |
* </tr> |
| 9365 |
* <tr valign="top"> |
| 9366 |
* <td>LOG_DEBUG</td> |
| 9367 |
* <td>debug-level message</td> |
| 9368 |
* </tr> |
| 9369 |
* |
| 9370 |
* |
| 9371 |
* </table> |
| 9372 |
* </p> |
| 9373 |
* @param message string <p> |
| 9374 |
* The message to send, except that the two characters |
| 9375 |
* %m will be replaced by the error message string |
| 9376 |
* (strerror) corresponding to the present value of |
| 9377 |
* errno. |
| 9378 |
* </p> |
| 9379 |
* @return bool Returns true on success, false on failure. |
| 9380 |
*/ |
| 9381 |
function syslog ($priority, $message) {} |
| 9382 |
|
| 9383 |
/** |
| 9384 |
* Close connection to system logger |
| 9385 |
* @link http://www.php.net/manual/en/function.closelog.php |
| 9386 |
* @return bool Returns true on success, false on failure. |
| 9387 |
*/ |
| 9388 |
function closelog () {} |
| 9389 |
|
| 9390 |
/** |
| 9391 |
* Combined linear congruential generator |
| 9392 |
* @link http://www.php.net/manual/en/function.lcg-value.php |
| 9393 |
* @return float A pseudo random float value in the range of (0, 1) |
| 9394 |
*/ |
| 9395 |
function lcg_value () {} |
| 9396 |
|
| 9397 |
/** |
| 9398 |
* Calculate the metaphone key of a string |
| 9399 |
* @link http://www.php.net/manual/en/function.metaphone.php |
| 9400 |
* @param str string <p> |
| 9401 |
* The input string. |
| 9402 |
* </p> |
| 9403 |
* @param phonemes int[optional] <p> |
| 9404 |
* This parameter restricts the returned metaphone key to |
| 9405 |
* phonemes characters in length. |
| 9406 |
* The default value of 0 means no restriction. |
| 9407 |
* </p> |
| 9408 |
* @return string the metaphone key as a string, &return.falseforfailure;. |
| 9409 |
*/ |
| 9410 |
function metaphone ($str, $phonemes = null) {} |
| 9411 |
|
| 9412 |
/** |
| 9413 |
* Turn on output buffering |
| 9414 |
* @link http://www.php.net/manual/en/function.ob-start.php |
| 9415 |
* @param output_callback callable[optional] <p> |
| 9416 |
* An optional output_callback function may be |
| 9417 |
* specified. This function takes a string as a parameter and should |
| 9418 |
* return a string. The function will be called when |
| 9419 |
* the output buffer is flushed (sent) or cleaned (with |
| 9420 |
* ob_flush, ob_clean or similar |
| 9421 |
* function) or when the output buffer |
| 9422 |
* is flushed to the browser at the end of the request. When |
| 9423 |
* output_callback is called, it will receive the |
| 9424 |
* contents of the output buffer as its parameter and is expected to |
| 9425 |
* return a new output buffer as a result, which will be sent to the |
| 9426 |
* browser. If the output_callback is not a |
| 9427 |
* callable function, this function will return false. |
| 9428 |
* This is the callback signature: |
| 9429 |
* </p> |
| 9430 |
* <p> |
| 9431 |
* |
| 9432 |
* stringhandler |
| 9433 |
* stringbuffer |
| 9434 |
* intphase |
| 9435 |
* |
| 9436 |
* |
| 9437 |
* |
| 9438 |
* buffer |
| 9439 |
* |
| 9440 |
* |
| 9441 |
* Contents of the output buffer. |
| 9442 |
* @param chunk_size int[optional] <p> |
| 9443 |
* If the optional parameter chunk_size is passed, the |
| 9444 |
* buffer will be flushed after any output call which causes the buffer's |
| 9445 |
* length to equal or exceed chunk_size. The default |
| 9446 |
* value 0 means that the output function will only be |
| 9447 |
* called when the output buffer is closed. |
| 9448 |
* </p> |
| 9449 |
* <p> |
| 9450 |
* Prior to PHP 5.4.0, the value 1 was a special case |
| 9451 |
* value that set the chunk size to 4096 bytes. |
| 9452 |
* </p> |
| 9453 |
* @param flags int[optional] <p> |
| 9454 |
* The flags parameter is a bitmask that controls |
| 9455 |
* the operations that can be performed on the output buffer. The default |
| 9456 |
* is to allow output buffers to be cleaned, flushed and removed, which |
| 9457 |
* can be set explicitly via |
| 9458 |
* PHP_OUTPUT_HANDLER_CLEANABLE | |
| 9459 |
* PHP_OUTPUT_HANDLER_FLUSHABLE | |
| 9460 |
* PHP_OUTPUT_HANDLER_REMOVABLE, or |
| 9461 |
* PHP_OUTPUT_HANDLER_STDFLAGS as shorthand. |
| 9462 |
* </p> |
| 9463 |
* <p> |
| 9464 |
* Each flag controls access to a set of functions, as described below: |
| 9465 |
* |
| 9466 |
* |
| 9467 |
* |
| 9468 |
* <tr valign="top"> |
| 9469 |
* <td>Constant</td> |
| 9470 |
* <td>Functions</td> |
| 9471 |
* </tr> |
| 9472 |
* |
| 9473 |
* |
| 9474 |
* <tr valign="top"> |
| 9475 |
* <td>PHP_OUTPUT_HANDLER_CLEANABLE</td> |
| 9476 |
* <td> |
| 9477 |
* ob_clean, |
| 9478 |
* ob_end_clean, and |
| 9479 |
* ob_get_clean. |
| 9480 |
* </td> |
| 9481 |
* </tr> |
| 9482 |
* <tr valign="top"> |
| 9483 |
* <td>PHP_OUTPUT_HANDLER_FLUSHABLE</td> |
| 9484 |
* <td> |
| 9485 |
* ob_end_flush, |
| 9486 |
* ob_flush, and |
| 9487 |
* ob_get_flush. |
| 9488 |
* </td> |
| 9489 |
* </tr> |
| 9490 |
* <tr valign="top"> |
| 9491 |
* <td>PHP_OUTPUT_HANDLER_REMOVABLE</td> |
| 9492 |
* <td> |
| 9493 |
* ob_end_clean, |
| 9494 |
* ob_end_flush, and |
| 9495 |
* ob_get_flush. |
| 9496 |
* </td> |
| 9497 |
* </tr> |
| 9498 |
* |
| 9499 |
* |
| 9500 |
* |
| 9501 |
* </p> |
| 9502 |
* @return bool Returns true on success, false on failure. |
| 9503 |
*/ |
| 9504 |
function ob_start ($output_callback = null, $chunk_size = null, $flags = null) {} |
| 9505 |
|
| 9506 |
/** |
| 9507 |
* Flush (send) the output buffer |
| 9508 |
* @link http://www.php.net/manual/en/function.ob-flush.php |
| 9509 |
* @return void |
| 9510 |
*/ |
| 9511 |
function ob_flush () {} |
| 9512 |
|
| 9513 |
/** |
| 9514 |
* Clean (erase) the output buffer |
| 9515 |
* @link http://www.php.net/manual/en/function.ob-clean.php |
| 9516 |
* @return void |
| 9517 |
*/ |
| 9518 |
function ob_clean () {} |
| 9519 |
|
| 9520 |
/** |
| 9521 |
* Flush (send) the output buffer and turn off output buffering |
| 9522 |
* @link http://www.php.net/manual/en/function.ob-end-flush.php |
| 9523 |
* @return bool Returns true on success, false on failure. Reasons for failure are first that you called the |
| 9524 |
* function without an active buffer or that for some reason a buffer could |
| 9525 |
* not be deleted (possible for special buffer). |
| 9526 |
*/ |
| 9527 |
function ob_end_flush () {} |
| 9528 |
|
| 9529 |
/** |
| 9530 |
* Clean (erase) the output buffer and turn off output buffering |
| 9531 |
* @link http://www.php.net/manual/en/function.ob-end-clean.php |
| 9532 |
* @return bool Returns true on success, false on failure. Reasons for failure are first that you called the |
| 9533 |
* function without an active buffer or that for some reason a buffer could |
| 9534 |
* not be deleted (possible for special buffer). |
| 9535 |
*/ |
| 9536 |
function ob_end_clean () {} |
| 9537 |
|
| 9538 |
/** |
| 9539 |
* Flush the output buffer, return it as a string and turn off output buffering |
| 9540 |
* @link http://www.php.net/manual/en/function.ob-get-flush.php |
| 9541 |
* @return string the output buffer or false if no buffering is active. |
| 9542 |
*/ |
| 9543 |
function ob_get_flush () {} |
| 9544 |
|
| 9545 |
/** |
| 9546 |
* Get current buffer contents and delete current output buffer |
| 9547 |
* @link http://www.php.net/manual/en/function.ob-get-clean.php |
| 9548 |
* @return string the contents of the output buffer and end output buffering. |
| 9549 |
* If output buffering isn't active then false is returned. |
| 9550 |
*/ |
| 9551 |
function ob_get_clean () {} |
| 9552 |
|
| 9553 |
/** |
| 9554 |
* Return the length of the output buffer |
| 9555 |
* @link http://www.php.net/manual/en/function.ob-get-length.php |
| 9556 |
* @return int the length of the output buffer contents or false if no |
| 9557 |
* buffering is active. |
| 9558 |
*/ |
| 9559 |
function ob_get_length () {} |
| 9560 |
|
| 9561 |
/** |
| 9562 |
* Return the nesting level of the output buffering mechanism |
| 9563 |
* @link http://www.php.net/manual/en/function.ob-get-level.php |
| 9564 |
* @return int the level of nested output buffering handlers or zero if output |
| 9565 |
* buffering is not active. |
| 9566 |
*/ |
| 9567 |
function ob_get_level () {} |
| 9568 |
|
| 9569 |
/** |
| 9570 |
* Get status of output buffers |
| 9571 |
* @link http://www.php.net/manual/en/function.ob-get-status.php |
| 9572 |
* @param full_status bool[optional] <p> |
| 9573 |
* true to return all active output buffer levels. If false or not |
| 9574 |
* set, only the top level output buffer is returned. |
| 9575 |
* </p> |
| 9576 |
* @return array If called without the full_status parameter |
| 9577 |
* or with full_status = false a simple array |
| 9578 |
* with the following elements is returned: |
| 9579 |
* |
| 9580 |
* |
| 9581 |
* 2 |
| 9582 |
* [type] => 0 |
| 9583 |
* [status] => 0 |
| 9584 |
* [name] => URL-Rewriter |
| 9585 |
* [del] => 1 |
| 9586 |
* ) |
| 9587 |
* ]]> |
| 9588 |
* |
| 9589 |
* |
| 9590 |
* |
| 9591 |
* Simple ob_get_status results |
| 9592 |
* KeyValue |
| 9593 |
* levelOutput nesting level |
| 9594 |
* typePHP_OUTPUT_HANDLER_INTERNAL (0) or PHP_OUTPUT_HANDLER_USER (1) |
| 9595 |
* statusOne of PHP_OUTPUT_HANDLER_START (0), PHP_OUTPUT_HANDLER_CONT (1) or PHP_OUTPUT_HANDLER_END (2) |
| 9596 |
* nameName of active output handler or ' default output handler' if none is set |
| 9597 |
* delErase-flag as set by ob_start |
| 9598 |
* |
| 9599 |
* </p> |
| 9600 |
* <p> |
| 9601 |
* If called with full_status = true an array |
| 9602 |
* with one element for each active output buffer level is returned. |
| 9603 |
* The output level is used as key of the top level array and each array |
| 9604 |
* element itself is another array holding status information |
| 9605 |
* on one active output level. |
| 9606 |
* |
| 9607 |
* |
| 9608 |
* Array |
| 9609 |
* ( |
| 9610 |
* [chunk_size] => 0 |
| 9611 |
* [size] => 40960 |
| 9612 |
* [block_size] => 10240 |
| 9613 |
* [type] => 1 |
| 9614 |
* [status] => 0 |
| 9615 |
* [name] => default output handler |
| 9616 |
* [del] => 1 |
| 9617 |
* ) |
| 9618 |
* [1] => Array |
| 9619 |
* ( |
| 9620 |
* [chunk_size] => 0 |
| 9621 |
* [size] => 40960 |
| 9622 |
* [block_size] => 10240 |
| 9623 |
* [type] => 0 |
| 9624 |
* [buffer_size] => 0 |
| 9625 |
* [status] => 0 |
| 9626 |
* [name] => URL-Rewriter |
| 9627 |
* [del] => 1 |
| 9628 |
* ) |
| 9629 |
* ) |
| 9630 |
* ]]> |
| 9631 |
* |
| 9632 |
* |
| 9633 |
* </p> |
| 9634 |
* <p> |
| 9635 |
* The full output contains these additional elements: |
| 9636 |
* |
| 9637 |
* Full ob_get_status results |
| 9638 |
* KeyValue |
| 9639 |
* chunk_sizeChunk size as set by ob_start |
| 9640 |
* size... |
| 9641 |
* blocksize... |
| 9642 |
*/ |
| 9643 |
function ob_get_status ($full_status = null) {} |
| 9644 |
|
| 9645 |
/** |
| 9646 |
* Return the contents of the output buffer |
| 9647 |
* @link http://www.php.net/manual/en/function.ob-get-contents.php |
| 9648 |
* @return string This will return the contents of the output buffer or false, if output |
| 9649 |
* buffering isn't active. |
| 9650 |
*/ |
| 9651 |
function ob_get_contents () {} |
| 9652 |
|
| 9653 |
/** |
| 9654 |
* Turn implicit flush on/off |
| 9655 |
* @link http://www.php.net/manual/en/function.ob-implicit-flush.php |
| 9656 |
* @param flag int[optional] <p> |
| 9657 |
* true to turn implicit flushing on, false otherwise. |
| 9658 |
* </p> |
| 9659 |
* @return void |
| 9660 |
*/ |
| 9661 |
function ob_implicit_flush ($flag = null) {} |
| 9662 |
|
| 9663 |
/** |
| 9664 |
* List all output handlers in use |
| 9665 |
* @link http://www.php.net/manual/en/function.ob-list-handlers.php |
| 9666 |
* @return array This will return an array with the output handlers in use (if any). If |
| 9667 |
* output_buffering is enabled or |
| 9668 |
* an anonymous function was used with ob_start, |
| 9669 |
* ob_list_handlers will return "default output |
| 9670 |
* handler". |
| 9671 |
*/ |
| 9672 |
function ob_list_handlers () {} |
| 9673 |
|
| 9674 |
/** |
| 9675 |
* Sort an array by key |
| 9676 |
* @link http://www.php.net/manual/en/function.ksort.php |
| 9677 |
* @param array array <p> |
| 9678 |
* The input array. |
| 9679 |
* </p> |
| 9680 |
* @param sort_flags int[optional] <p> |
| 9681 |
* You may modify the behavior of the sort using the optional |
| 9682 |
* parameter sort_flags, for details |
| 9683 |
* see sort. |
| 9684 |
* </p> |
| 9685 |
* @return bool Returns true on success, false on failure. |
| 9686 |
*/ |
| 9687 |
function ksort (array &$array, $sort_flags = null) {} |
| 9688 |
|
| 9689 |
/** |
| 9690 |
* Sort an array by key in reverse order |
| 9691 |
* @link http://www.php.net/manual/en/function.krsort.php |
| 9692 |
* @param array array <p> |
| 9693 |
* The input array. |
| 9694 |
* </p> |
| 9695 |
* @param sort_flags int[optional] <p> |
| 9696 |
* You may modify the behavior of the sort using the optional parameter |
| 9697 |
* sort_flags, for details see |
| 9698 |
* sort. |
| 9699 |
* </p> |
| 9700 |
* @return bool Returns true on success, false on failure. |
| 9701 |
*/ |
| 9702 |
function krsort (array &$array, $sort_flags = null) {} |
| 9703 |
|
| 9704 |
/** |
| 9705 |
* Sort an array using a "natural order" algorithm |
| 9706 |
* @link http://www.php.net/manual/en/function.natsort.php |
| 9707 |
* @param array array <p> |
| 9708 |
* The input array. |
| 9709 |
* </p> |
| 9710 |
* @return bool Returns true on success, false on failure. |
| 9711 |
*/ |
| 9712 |
function natsort (array &$array) {} |
| 9713 |
|
| 9714 |
/** |
| 9715 |
* Sort an array using a case insensitive "natural order" algorithm |
| 9716 |
* @link http://www.php.net/manual/en/function.natcasesort.php |
| 9717 |
* @param array array <p> |
| 9718 |
* The input array. |
| 9719 |
* </p> |
| 9720 |
* @return bool Returns true on success, false on failure. |
| 9721 |
*/ |
| 9722 |
function natcasesort (array &$array) {} |
| 9723 |
|
| 9724 |
/** |
| 9725 |
* Sort an array and maintain index association |
| 9726 |
* @link http://www.php.net/manual/en/function.asort.php |
| 9727 |
* @param array array <p> |
| 9728 |
* The input array. |
| 9729 |
* </p> |
| 9730 |
* @param sort_flags int[optional] <p> |
| 9731 |
* You may modify the behavior of the sort using the optional |
| 9732 |
* parameter sort_flags, for details |
| 9733 |
* see sort. |
| 9734 |
* </p> |
| 9735 |
* @return bool Returns true on success, false on failure. |
| 9736 |
*/ |
| 9737 |
function asort (array &$array, $sort_flags = null) {} |
| 9738 |
|
| 9739 |
/** |
| 9740 |
* Sort an array in reverse order and maintain index association |
| 9741 |
* @link http://www.php.net/manual/en/function.arsort.php |
| 9742 |
* @param array array <p> |
| 9743 |
* The input array. |
| 9744 |
* </p> |
| 9745 |
* @param sort_flags int[optional] <p> |
| 9746 |
* You may modify the behavior of the sort using the optional parameter |
| 9747 |
* sort_flags, for details see |
| 9748 |
* sort. |
| 9749 |
* </p> |
| 9750 |
* @return bool Returns true on success, false on failure. |
| 9751 |
*/ |
| 9752 |
function arsort (array &$array, $sort_flags = null) {} |
| 9753 |
|
| 9754 |
/** |
| 9755 |
* Sort an array |
| 9756 |
* @link http://www.php.net/manual/en/function.sort.php |
| 9757 |
* @param array array <p> |
| 9758 |
* The input array. |
| 9759 |
* </p> |
| 9760 |
* @param sort_flags int[optional] <p> |
| 9761 |
* The optional second parameter sort_flags |
| 9762 |
* may be used to modify the sorting behavior using these values: |
| 9763 |
* </p> |
| 9764 |
* <p> |
| 9765 |
* Sorting type flags: |
| 9766 |
* |
| 9767 |
* |
| 9768 |
* SORT_REGULAR - compare items normally |
| 9769 |
* (don't change types) |
| 9770 |
* @return bool Returns true on success, false on failure. |
| 9771 |
*/ |
| 9772 |
function sort (array &$array, $sort_flags = null) {} |
| 9773 |
|
| 9774 |
/** |
| 9775 |
* Sort an array in reverse order |
| 9776 |
* @link http://www.php.net/manual/en/function.rsort.php |
| 9777 |
* @param array array <p> |
| 9778 |
* The input array. |
| 9779 |
* </p> |
| 9780 |
* @param sort_flags int[optional] <p> |
| 9781 |
* You may modify the behavior of the sort using the optional |
| 9782 |
* parameter sort_flags, for details see |
| 9783 |
* sort. |
| 9784 |
* </p> |
| 9785 |
* @return bool Returns true on success, false on failure. |
| 9786 |
*/ |
| 9787 |
function rsort (array &$array, $sort_flags = null) {} |
| 9788 |
|
| 9789 |
/** |
| 9790 |
* Sort an array by values using a user-defined comparison function |
| 9791 |
* @link http://www.php.net/manual/en/function.usort.php |
| 9792 |
* @param array array <p> |
| 9793 |
* The input array. |
| 9794 |
* </p> |
| 9795 |
* @param value_compare_func callable <p> |
| 9796 |
* &return.callbacksort; |
| 9797 |
* </p> |
| 9798 |
* &callback.cmp; |
| 9799 |
* |
| 9800 |
* <p> |
| 9801 |
* Returning non-integer values from the comparison |
| 9802 |
* function, such as float, will result in an internal cast to |
| 9803 |
* integer of the callback's return value. So values such as |
| 9804 |
* 0.99 and 0.1 will both be cast to an integer value of 0, which will |
| 9805 |
* compare such values as equal. |
| 9806 |
* </p> |
| 9807 |
* @return bool Returns true on success, false on failure. |
| 9808 |
*/ |
| 9809 |
function usort (array &$array, $value_compare_func) {} |
| 9810 |
|
| 9811 |
/** |
| 9812 |
* Sort an array with a user-defined comparison function and maintain index association |
| 9813 |
* @link http://www.php.net/manual/en/function.uasort.php |
| 9814 |
* @param array array <p> |
| 9815 |
* The input array. |
| 9816 |
* </p> |
| 9817 |
* @param value_compare_func callable <p> |
| 9818 |
* See usort and uksort for |
| 9819 |
* examples of user-defined comparison functions. |
| 9820 |
* </p> |
| 9821 |
* @return bool Returns true on success, false on failure. |
| 9822 |
*/ |
| 9823 |
function uasort (array &$array, $value_compare_func) {} |
| 9824 |
|
| 9825 |
/** |
| 9826 |
* Sort an array by keys using a user-defined comparison function |
| 9827 |
* @link http://www.php.net/manual/en/function.uksort.php |
| 9828 |
* @param array array <p> |
| 9829 |
* The input array. |
| 9830 |
* </p> |
| 9831 |
* @param key_compare_func callable <p> |
| 9832 |
* &return.callbacksort; |
| 9833 |
* </p> |
| 9834 |
* &callback.cmp; |
| 9835 |
* @return bool Returns true on success, false on failure. |
| 9836 |
*/ |
| 9837 |
function uksort (array &$array, $key_compare_func) {} |
| 9838 |
|
| 9839 |
/** |
| 9840 |
* Shuffle an array |
| 9841 |
* @link http://www.php.net/manual/en/function.shuffle.php |
| 9842 |
* @param array array <p> |
| 9843 |
* The array. |
| 9844 |
* </p> |
| 9845 |
* @return bool Returns true on success, false on failure. |
| 9846 |
*/ |
| 9847 |
function shuffle (array &$array) {} |
| 9848 |
|
| 9849 |
/** |
| 9850 |
* Apply a user supplied function to every member of an array |
| 9851 |
* @link http://www.php.net/manual/en/function.array-walk.php |
| 9852 |
* @param array array <p> |
| 9853 |
* The input array. |
| 9854 |
* </p> |
| 9855 |
* @param callback callable <p> |
| 9856 |
* Typically, callback takes on two parameters. |
| 9857 |
* The array parameter's value being the first, and |
| 9858 |
* the key/index second. |
| 9859 |
* </p> |
| 9860 |
* |
| 9861 |
* <p> |
| 9862 |
* If callback needs to be working with the |
| 9863 |
* actual values of the array, specify the first parameter of |
| 9864 |
* callback as a |
| 9865 |
* reference. Then, |
| 9866 |
* any changes made to those elements will be made in the |
| 9867 |
* original array itself. |
| 9868 |
* </p> |
| 9869 |
* |
| 9870 |
* |
| 9871 |
* <p> |
| 9872 |
* Many internal functions (for example strtolower) |
| 9873 |
* will throw a warning if more than the expected number of argument |
| 9874 |
* are passed in and are not usable directly as a |
| 9875 |
* callback. |
| 9876 |
* </p> |
| 9877 |
* |
| 9878 |
* <p> |
| 9879 |
* Only the values of the array may potentially be |
| 9880 |
* changed; its structure cannot be altered, i.e., the programmer cannot |
| 9881 |
* add, unset or reorder elements. If the callback does not respect this |
| 9882 |
* requirement, the behavior of this function is undefined, and |
| 9883 |
* unpredictable. |
| 9884 |
* </p> |
| 9885 |
* @param userdata mixed[optional] <p> |
| 9886 |
* If the optional userdata parameter is supplied, |
| 9887 |
* it will be passed as the third parameter to the |
| 9888 |
* callback. |
| 9889 |
* </p> |
| 9890 |
* @return bool Returns true on success, false on failure. |
| 9891 |
*/ |
| 9892 |
function array_walk (array &$array, $callback, $userdata = null) {} |
| 9893 |
|
| 9894 |
/** |
| 9895 |
* Apply a user function recursively to every member of an array |
| 9896 |
* @link http://www.php.net/manual/en/function.array-walk-recursive.php |
| 9897 |
* @param array array <p> |
| 9898 |
* The input array. |
| 9899 |
* </p> |
| 9900 |
* @param callback callable <p> |
| 9901 |
* Typically, callback takes on two parameters. |
| 9902 |
* The array parameter's value being the first, and |
| 9903 |
* the key/index second. |
| 9904 |
* </p> |
| 9905 |
* |
| 9906 |
* <p> |
| 9907 |
* If callback needs to be working with the |
| 9908 |
* actual values of the array, specify the first parameter of |
| 9909 |
* callback as a |
| 9910 |
* reference. Then, |
| 9911 |
* any changes made to those elements will be made in the |
| 9912 |
* original array itself. |
| 9913 |
* </p> |
| 9914 |
* @param userdata mixed[optional] <p> |
| 9915 |
* If the optional userdata parameter is supplied, |
| 9916 |
* it will be passed as the third parameter to the |
| 9917 |
* callback. |
| 9918 |
* </p> |
| 9919 |
* @return bool Returns true on success, false on failure. |
| 9920 |
*/ |
| 9921 |
function array_walk_recursive (array &$array, $callback, $userdata = null) {} |
| 9922 |
|
| 9923 |
/** |
| 9924 |
* Count all elements in an array, or something in an object |
| 9925 |
* @link http://www.php.net/manual/en/function.count.php |
| 9926 |
* @param array_or_countable mixed <p> |
| 9927 |
* An array or Countable object. |
| 9928 |
* </p> |
| 9929 |
* @param mode int[optional] <p> |
| 9930 |
* If the optional mode parameter is set to |
| 9931 |
* COUNT_RECURSIVE (or 1), count |
| 9932 |
* will recursively count the array. This is particularly useful for |
| 9933 |
* counting all the elements of a multidimensional array. |
| 9934 |
* </p> |
| 9935 |
* |
| 9936 |
* <p> |
| 9937 |
* count can detect recursion to avoid an infinite |
| 9938 |
* loop, but will emit an E_WARNING every time it |
| 9939 |
* does (in case the array contains itself more than once) and return a |
| 9940 |
* count higher than may be expected. |
| 9941 |
* </p> |
| 9942 |
* @return int the number of elements in array_or_countable. |
| 9943 |
* If the parameter is not an array or not an object with |
| 9944 |
* implemented Countable interface, |
| 9945 |
* 1 will be returned. |
| 9946 |
* There is one exception, if array_or_countable is &null;, |
| 9947 |
* 0 will be returned. |
| 9948 |
* </p> |
| 9949 |
* |
| 9950 |
* <p> |
| 9951 |
* count may return 0 for a variable that isn't set, |
| 9952 |
* but it may also return 0 for a variable that has been initialized with an |
| 9953 |
* empty array. Use isset to test if a variable is set. |
| 9954 |
*/ |
| 9955 |
function count ($array_or_countable, $mode = null) {} |
| 9956 |
|
| 9957 |
/** |
| 9958 |
* Set the internal pointer of an array to its last element |
| 9959 |
* @link http://www.php.net/manual/en/function.end.php |
| 9960 |
* @param array array <p> |
| 9961 |
* The array. This array is passed by reference because it is modified by |
| 9962 |
* the function. This means you must pass it a real variable and not |
| 9963 |
* a function returning an array because only actual variables may be |
| 9964 |
* passed by reference. |
| 9965 |
* </p> |
| 9966 |
* @return mixed the value of the last element or false for empty array. |
| 9967 |
*/ |
| 9968 |
function end (array &$array) {} |
| 9969 |
|
| 9970 |
/** |
| 9971 |
* Rewind the internal array pointer |
| 9972 |
* @link http://www.php.net/manual/en/function.prev.php |
| 9973 |
* @param array array <p> |
| 9974 |
* The input array. |
| 9975 |
* </p> |
| 9976 |
* @return mixed the array value in the previous place that's pointed to by |
| 9977 |
* the internal array pointer, or false if there are no more |
| 9978 |
* elements. |
| 9979 |
*/ |
| 9980 |
function prev (array &$array) {} |
| 9981 |
|
| 9982 |
/** |
| 9983 |
* Advance the internal array pointer of an array |
| 9984 |
* @link http://www.php.net/manual/en/function.next.php |
| 9985 |
* @param array array <p> |
| 9986 |
* The array being affected. |
| 9987 |
* </p> |
| 9988 |
* @return mixed the array value in the next place that's pointed to by the |
| 9989 |
* internal array pointer, or false if there are no more elements. |
| 9990 |
*/ |
| 9991 |
function next (array &$array) {} |
| 9992 |
|
| 9993 |
/** |
| 9994 |
* Set the internal pointer of an array to its first element |
| 9995 |
* @link http://www.php.net/manual/en/function.reset.php |
| 9996 |
* @param array array <p> |
| 9997 |
* The input array. |
| 9998 |
* </p> |
| 9999 |
* @return mixed the value of the first array element, or false if the array is |
| 10000 |
* empty. |
| 10001 |
*/ |
| 10002 |
function reset (array &$array) {} |
| 10003 |
|
| 10004 |
/** |
| 10005 |
* Return the current element in an array |
| 10006 |
* @link http://www.php.net/manual/en/function.current.php |
| 10007 |
* @param array array <p> |
| 10008 |
* The array. |
| 10009 |
* </p> |
| 10010 |
* @return mixed The current function simply returns the |
| 10011 |
* value of the array element that's currently being pointed to by the |
| 10012 |
* internal pointer. It does not move the pointer in any way. If the |
| 10013 |
* internal pointer points beyond the end of the elements list or the array is |
| 10014 |
* empty, current returns false. |
| 10015 |
*/ |
| 10016 |
function current (array &$array) {} |
| 10017 |
|
| 10018 |
/** |
| 10019 |
* Fetch a key from an array |
| 10020 |
* @link http://www.php.net/manual/en/function.key.php |
| 10021 |
* @param array array <p> |
| 10022 |
* The array. |
| 10023 |
* </p> |
| 10024 |
* @return mixed The key function simply returns the |
| 10025 |
* key of the array element that's currently being pointed to by the |
| 10026 |
* internal pointer. It does not move the pointer in any way. If the |
| 10027 |
* internal pointer points beyond the end of the elements list or the array is |
| 10028 |
* empty, key returns &null;. |
| 10029 |
*/ |
| 10030 |
function key (array &$array) {} |
| 10031 |
|
| 10032 |
/** |
| 10033 |
* Find lowest value |
| 10034 |
* @link http://www.php.net/manual/en/function.min.php |
| 10035 |
* @param values array <p> |
| 10036 |
* An array containing the values. |
| 10037 |
* </p> |
| 10038 |
* @return mixed min returns the parameter value considered "lowest" according to standard |
| 10039 |
* comparisons. If multiple values of different types evaluate as equal (e.g. 0 |
| 10040 |
* and 'abc') the first provided to the function will be returned. |
| 10041 |
*/ |
| 10042 |
function min (array $values) {} |
| 10043 |
|
| 10044 |
/** |
| 10045 |
* Find highest value |
| 10046 |
* @link http://www.php.net/manual/en/function.max.php |
| 10047 |
* @param values array <p> |
| 10048 |
* An array containing the values. |
| 10049 |
* </p> |
| 10050 |
* @return mixed max returns the parameter value considered "highest" according to standard |
| 10051 |
* comparisons. If multiple values of different types evaluate as equal (e.g. 0 |
| 10052 |
* and 'abc') the first provided to the function will be returned. |
| 10053 |
*/ |
| 10054 |
function max (array $values) {} |
| 10055 |
|
| 10056 |
/** |
| 10057 |
* Checks if a value exists in an array |
| 10058 |
* @link http://www.php.net/manual/en/function.in-array.php |
| 10059 |
* @param needle mixed <p> |
| 10060 |
* The searched value. |
| 10061 |
* </p> |
| 10062 |
* |
| 10063 |
* <p> |
| 10064 |
* If needle is a string, the comparison is done |
| 10065 |
* in a case-sensitive manner. |
| 10066 |
* </p> |
| 10067 |
* @param haystack array <p> |
| 10068 |
* The array. |
| 10069 |
* </p> |
| 10070 |
* @param strict bool[optional] <p> |
| 10071 |
* If the third parameter strict is set to true |
| 10072 |
* then the in_array function will also check the |
| 10073 |
* types of the |
| 10074 |
* needle in the haystack. |
| 10075 |
* </p> |
| 10076 |
* @return bool true if needle is found in the array, |
| 10077 |
* false otherwise. |
| 10078 |
*/ |
| 10079 |
function in_array ($needle, array $haystack, $strict = null) {} |
| 10080 |
|
| 10081 |
/** |
| 10082 |
* Searches the array for a given value and returns the corresponding key if successful |
| 10083 |
* @link http://www.php.net/manual/en/function.array-search.php |
| 10084 |
* @param needle mixed <p> |
| 10085 |
* The searched value. |
| 10086 |
* </p> |
| 10087 |
* |
| 10088 |
* <p> |
| 10089 |
* If needle is a string, the comparison is done |
| 10090 |
* in a case-sensitive manner. |
| 10091 |
* </p> |
| 10092 |
* @param haystack array <p> |
| 10093 |
* The array. |
| 10094 |
* </p> |
| 10095 |
* @param strict bool[optional] <p> |
| 10096 |
* If the third parameter strict is set to true |
| 10097 |
* then the array_search function will search for |
| 10098 |
* identical elements in the |
| 10099 |
* haystack. This means it will also check the |
| 10100 |
* types of the |
| 10101 |
* needle in the haystack, |
| 10102 |
* and objects must be the same instance. |
| 10103 |
* </p> |
| 10104 |
* @return mixed the key for needle if it is found in the |
| 10105 |
* array, false otherwise. |
| 10106 |
* </p> |
| 10107 |
* <p> |
| 10108 |
* If needle is found in haystack |
| 10109 |
* more than once, the first matching key is returned. To return the keys for |
| 10110 |
* all matching values, use array_keys with the optional |
| 10111 |
* search_value parameter instead. |
| 10112 |
*/ |
| 10113 |
function array_search ($needle, array $haystack, $strict = null) {} |
| 10114 |
|
| 10115 |
/** |
| 10116 |
* Import variables into the current symbol table from an array |
| 10117 |
* @link http://www.php.net/manual/en/function.extract.php |
| 10118 |
* @param array array <p> |
| 10119 |
* Note that prefix is only required if |
| 10120 |
* flags is EXTR_PREFIX_SAME, |
| 10121 |
* EXTR_PREFIX_ALL, EXTR_PREFIX_INVALID |
| 10122 |
* or EXTR_PREFIX_IF_EXISTS. If |
| 10123 |
* the prefixed result is not a valid variable name, it is not |
| 10124 |
* imported into the symbol table. Prefixes are automatically separated from |
| 10125 |
* the array key by an underscore character. |
| 10126 |
* </p> |
| 10127 |
* @param flags int[optional] <p> |
| 10128 |
* The way invalid/numeric keys and collisions are treated is determined |
| 10129 |
* by the extraction flags. It can be one of the |
| 10130 |
* following values: |
| 10131 |
* |
| 10132 |
* |
| 10133 |
* EXTR_OVERWRITE |
| 10134 |
* |
| 10135 |
* |
| 10136 |
* If there is a collision, overwrite the existing variable. |
| 10137 |
* @param prefix string[optional] Only overwrite the variable if it already exists in the |
| 10138 |
* current symbol table, otherwise do nothing. This is useful |
| 10139 |
* for defining a list of valid variables and then extracting |
| 10140 |
* only those variables you have defined out of |
| 10141 |
* $_REQUEST, for example. |
| 10142 |
* @return int the number of variables successfully imported into the symbol |
| 10143 |
* table. |
| 10144 |
*/ |
| 10145 |
function extract (array &$array, $flags = null, $prefix = null) {} |
| 10146 |
|
| 10147 |
/** |
| 10148 |
* Create array containing variables and their values |
| 10149 |
* @link http://www.php.net/manual/en/function.compact.php |
| 10150 |
* @param varname1 mixed <p> |
| 10151 |
* compact takes a variable number of parameters. |
| 10152 |
* Each parameter can be either a string containing the name of the |
| 10153 |
* variable, or an array of variable names. The array can contain other |
| 10154 |
* arrays of variable names inside it; compact |
| 10155 |
* handles it recursively. |
| 10156 |
* </p> |
| 10157 |
* @param _ mixed[optional] |
| 10158 |
* @return array the output array with all the variables added to it. |
| 10159 |
*/ |
| 10160 |
function compact ($varname1, $_ = null) {} |
| 10161 |
|
| 10162 |
/** |
| 10163 |
* Fill an array with values |
| 10164 |
* @link http://www.php.net/manual/en/function.array-fill.php |
| 10165 |
* @param start_index int <p> |
| 10166 |
* The first index of the returned array. |
| 10167 |
* </p> |
| 10168 |
* <p> |
| 10169 |
* If start_index is negative, |
| 10170 |
* the first index of the returned array will be |
| 10171 |
* start_index and the following |
| 10172 |
* indices will start from zero |
| 10173 |
* (see example). |
| 10174 |
* </p> |
| 10175 |
* @param num int <p> |
| 10176 |
* Number of elements to insert. |
| 10177 |
* Must be greater than zero. |
| 10178 |
* </p> |
| 10179 |
* @param value mixed <p> |
| 10180 |
* Value to use for filling |
| 10181 |
* </p> |
| 10182 |
* @return array the filled array |
| 10183 |
*/ |
| 10184 |
function array_fill ($start_index, $num, $value) {} |
| 10185 |
|
| 10186 |
/** |
| 10187 |
* Fill an array with values, specifying keys |
| 10188 |
* @link http://www.php.net/manual/en/function.array-fill-keys.php |
| 10189 |
* @param keys array <p> |
| 10190 |
* Array of values that will be used as keys. Illegal values |
| 10191 |
* for key will be converted to string. |
| 10192 |
* </p> |
| 10193 |
* @param value mixed <p> |
| 10194 |
* Value to use for filling |
| 10195 |
* </p> |
| 10196 |
* @return array the filled array |
| 10197 |
*/ |
| 10198 |
function array_fill_keys (array $keys, $value) {} |
| 10199 |
|
| 10200 |
/** |
| 10201 |
* Create an array containing a range of elements |
| 10202 |
* @link http://www.php.net/manual/en/function.range.php |
| 10203 |
* @param start mixed <p> |
| 10204 |
* First value of the sequence. |
| 10205 |
* </p> |
| 10206 |
* @param end mixed <p> |
| 10207 |
* The sequence is ended upon reaching the |
| 10208 |
* end value. |
| 10209 |
* </p> |
| 10210 |
* @param step number[optional] <p> |
| 10211 |
* If a step value is given, it will be used as the |
| 10212 |
* increment between elements in the sequence. step |
| 10213 |
* should be given as a positive number. If not specified, |
| 10214 |
* step will default to 1. |
| 10215 |
* </p> |
| 10216 |
* @return array an array of elements from start to |
| 10217 |
* end, inclusive. |
| 10218 |
*/ |
| 10219 |
function range ($start, $end, $step = null) {} |
| 10220 |
|
| 10221 |
/** |
| 10222 |
* Sort multiple or multi-dimensional arrays |
| 10223 |
* @link http://www.php.net/manual/en/function.array-multisort.php |
| 10224 |
* @param array1 array <p> |
| 10225 |
* An array being sorted. |
| 10226 |
* </p> |
| 10227 |
* @param array1_sort_order mixed[optional] <p> |
| 10228 |
* The order used to sort the previous array argument. Either |
| 10229 |
* SORT_ASC to sort ascendingly or SORT_DESC |
| 10230 |
* to sort descendingly. |
| 10231 |
* </p> |
| 10232 |
* <p> |
| 10233 |
* This argument can be swapped with array1_sort_flags |
| 10234 |
* or omitted entirely, in which case SORT_ASC is assumed. |
| 10235 |
* </p> |
| 10236 |
* @param array1_sort_flags mixed[optional] <p> |
| 10237 |
* Sort options for the previous array argument: |
| 10238 |
* </p> |
| 10239 |
* <p> |
| 10240 |
* Sorting type flags: |
| 10241 |
* |
| 10242 |
* |
| 10243 |
* SORT_REGULAR - compare items normally |
| 10244 |
* (don't change types) |
| 10245 |
* @param _ mixed[optional] |
| 10246 |
* @return bool Returns true on success, false on failure. |
| 10247 |
*/ |
| 10248 |
function array_multisort (array &$array1, $array1_sort_order = null, $array1_sort_flags = null, $_ = null) {} |
| 10249 |
|
| 10250 |
/** |
| 10251 |
* Push one or more elements onto the end of array |
| 10252 |
* @link http://www.php.net/manual/en/function.array-push.php |
| 10253 |
* @param array array <p> |
| 10254 |
* The input array. |
| 10255 |
* </p> |
| 10256 |
* @param value1 mixed <p> |
| 10257 |
* The first value to push onto the end of the array. |
| 10258 |
* </p> |
| 10259 |
* @param _ mixed[optional] |
| 10260 |
* @return int the new number of elements in the array. |
| 10261 |
*/ |
| 10262 |
function array_push (array &$array, $value1, $_ = null) {} |
| 10263 |
|
| 10264 |
/** |
| 10265 |
* Pop the element off the end of array |
| 10266 |
* @link http://www.php.net/manual/en/function.array-pop.php |
| 10267 |
* @param array array <p> |
| 10268 |
* The array to get the value from. |
| 10269 |
* </p> |
| 10270 |
* @return mixed the last value of array. |
| 10271 |
* If array is empty (or is not an array), |
| 10272 |
* &null; will be returned. |
| 10273 |
*/ |
| 10274 |
function array_pop (array &$array) {} |
| 10275 |
|
| 10276 |
/** |
| 10277 |
* Shift an element off the beginning of array |
| 10278 |
* @link http://www.php.net/manual/en/function.array-shift.php |
| 10279 |
* @param array array <p> |
| 10280 |
* The input array. |
| 10281 |
* </p> |
| 10282 |
* @return mixed the shifted value, or &null; if array is |
| 10283 |
* empty or is not an array. |
| 10284 |
*/ |
| 10285 |
function array_shift (array &$array) {} |
| 10286 |
|
| 10287 |
/** |
| 10288 |
* Prepend one or more elements to the beginning of an array |
| 10289 |
* @link http://www.php.net/manual/en/function.array-unshift.php |
| 10290 |
* @param array array <p> |
| 10291 |
* The input array. |
| 10292 |
* </p> |
| 10293 |
* @param value1 mixed <p> |
| 10294 |
* First value to prepend. |
| 10295 |
* </p> |
| 10296 |
* @param _ mixed[optional] |
| 10297 |
* @return int the new number of elements in the array. |
| 10298 |
*/ |
| 10299 |
function array_unshift (array &$array, $value1, $_ = null) {} |
| 10300 |
|
| 10301 |
/** |
| 10302 |
* Remove a portion of the array and replace it with something else |
| 10303 |
* @link http://www.php.net/manual/en/function.array-splice.php |
| 10304 |
* @param input array <p> |
| 10305 |
* The input array. |
| 10306 |
* </p> |
| 10307 |
* @param offset int <p> |
| 10308 |
* If offset is positive then the start of removed |
| 10309 |
* portion is at that offset from the beginning of the |
| 10310 |
* input array. If offset |
| 10311 |
* is negative then it starts that far from the end of the |
| 10312 |
* input array. |
| 10313 |
* </p> |
| 10314 |
* @param length int[optional] <p> |
| 10315 |
* If length is omitted, removes everything |
| 10316 |
* from offset to the end of the array. If |
| 10317 |
* length is specified and is positive, then |
| 10318 |
* that many elements will be removed. If |
| 10319 |
* length is specified and is negative then |
| 10320 |
* the end of the removed portion will be that many elements from |
| 10321 |
* the end of the array. Tip: to remove everything from |
| 10322 |
* offset to the end of the array when |
| 10323 |
* replacement is also specified, use |
| 10324 |
* count($input) for |
| 10325 |
* length. |
| 10326 |
* </p> |
| 10327 |
* @param replacement mixed[optional] <p> |
| 10328 |
* If replacement array is specified, then the |
| 10329 |
* removed elements are replaced with elements from this array. |
| 10330 |
* </p> |
| 10331 |
* <p> |
| 10332 |
* If offset and length |
| 10333 |
* are such that nothing is removed, then the elements from the |
| 10334 |
* replacement array are inserted in the place |
| 10335 |
* specified by the offset. Note that keys in |
| 10336 |
* replacement array are not preserved. |
| 10337 |
* </p> |
| 10338 |
* <p> |
| 10339 |
* If replacement is just one element it is |
| 10340 |
* not necessary to put array() |
| 10341 |
* around it, unless the element is an array itself, an object or &null;. |
| 10342 |
* </p> |
| 10343 |
* @return array the array consisting of the extracted elements. |
| 10344 |
*/ |
| 10345 |
function array_splice (array &$input, $offset, $length = null, $replacement = null) {} |
| 10346 |
|
| 10347 |
/** |
| 10348 |
* Extract a slice of the array |
| 10349 |
* @link http://www.php.net/manual/en/function.array-slice.php |
| 10350 |
* @param array array <p> |
| 10351 |
* The input array. |
| 10352 |
* </p> |
| 10353 |
* @param offset int <p> |
| 10354 |
* If offset is non-negative, the sequence will |
| 10355 |
* start at that offset in the array. If |
| 10356 |
* offset is negative, the sequence will |
| 10357 |
* start that far from the end of the array. |
| 10358 |
* </p> |
| 10359 |
* @param length int[optional] <p> |
| 10360 |
* If length is given and is positive, then |
| 10361 |
* the sequence will have up to that many elements in it. If the array |
| 10362 |
* is shorter than the length, then only the |
| 10363 |
* available array elements will be present. If |
| 10364 |
* length is given and is negative then the |
| 10365 |
* sequence will stop that many elements from the end of the |
| 10366 |
* array. If it is omitted, then the sequence will have everything |
| 10367 |
* from offset up until the end of the |
| 10368 |
* array. |
| 10369 |
* </p> |
| 10370 |
* @param preserve_keys bool[optional] <p> |
| 10371 |
* Note that array_slice will reorder and reset the |
| 10372 |
* numeric array indices by default. You can change this behaviour by setting |
| 10373 |
* preserve_keys to true. |
| 10374 |
* </p> |
| 10375 |
* @return array the slice. |
| 10376 |
*/ |
| 10377 |
function array_slice (array $array, $offset, $length = null, $preserve_keys = null) {} |
| 10378 |
|
| 10379 |
/** |
| 10380 |
* Merge one or more arrays |
| 10381 |
* @link http://www.php.net/manual/en/function.array-merge.php |
| 10382 |
* @param array1 array <p> |
| 10383 |
* Initial array to merge. |
| 10384 |
* </p> |
| 10385 |
* @param _ array[optional] |
| 10386 |
* @return array the resulting array. |
| 10387 |
*/ |
| 10388 |
function array_merge (array $array1, array $_ = null) {} |
| 10389 |
|
| 10390 |
/** |
| 10391 |
* Merge two or more arrays recursively |
| 10392 |
* @link http://www.php.net/manual/en/function.array-merge-recursive.php |
| 10393 |
* @param array1 array <p> |
| 10394 |
* Initial array to merge. |
| 10395 |
* </p> |
| 10396 |
* @param _ array[optional] |
| 10397 |
* @return array An array of values resulted from merging the arguments together. |
| 10398 |
*/ |
| 10399 |
function array_merge_recursive (array $array1, array $_ = null) {} |
| 10400 |
|
| 10401 |
/** |
| 10402 |
* Replaces elements from passed arrays into the first array |
| 10403 |
* @link http://www.php.net/manual/en/function.array-replace.php |
| 10404 |
* @param array1 array <p> |
| 10405 |
* The array in which elements are replaced. |
| 10406 |
* </p> |
| 10407 |
* @param array2 array <p> |
| 10408 |
* The array from which elements will be extracted. |
| 10409 |
* </p> |
| 10410 |
* @param _ array[optional] |
| 10411 |
* @return array an array, or &null; if an error occurs. |
| 10412 |
*/ |
| 10413 |
function array_replace (array $array1, array $array2, array $_ = null) {} |
| 10414 |
|
| 10415 |
/** |
| 10416 |
* Replaces elements from passed arrays into the first array recursively |
| 10417 |
* @link http://www.php.net/manual/en/function.array-replace-recursive.php |
| 10418 |
* @param array1 array <p> |
| 10419 |
* The array in which elements are replaced. |
| 10420 |
* </p> |
| 10421 |
* @param array2 array <p> |
| 10422 |
* The array from which elements will be extracted. |
| 10423 |
* </p> |
| 10424 |
* @param _ array[optional] |
| 10425 |
* @return array an array, or &null; if an error occurs. |
| 10426 |
*/ |
| 10427 |
function array_replace_recursive (array $array1, array $array2, array $_ = null) {} |
| 10428 |
|
| 10429 |
/** |
| 10430 |
* Return all the keys or a subset of the keys of an array |
| 10431 |
* @link http://www.php.net/manual/en/function.array-keys.php |
| 10432 |
* @param array array <p> |
| 10433 |
* An array containing keys to return. |
| 10434 |
* </p> |
| 10435 |
* @param search_value mixed[optional] <p> |
| 10436 |
* If specified, then only keys containing these values are returned. |
| 10437 |
* </p> |
| 10438 |
* @param strict bool[optional] <p> |
| 10439 |
* Determines if strict comparison (===) should be used during the search. |
| 10440 |
* </p> |
| 10441 |
* @return array an array of all the keys in array. |
| 10442 |
*/ |
| 10443 |
function array_keys (array $array, $search_value = null, $strict = null) {} |
| 10444 |
|
| 10445 |
/** |
| 10446 |
* Return all the values of an array |
| 10447 |
* @link http://www.php.net/manual/en/function.array-values.php |
| 10448 |
* @param array array <p> |
| 10449 |
* The array. |
| 10450 |
* </p> |
| 10451 |
* @return array an indexed array of values. |
| 10452 |
*/ |
| 10453 |
function array_values (array $array) {} |
| 10454 |
|
| 10455 |
/** |
| 10456 |
* Counts all the values of an array |
| 10457 |
* @link http://www.php.net/manual/en/function.array-count-values.php |
| 10458 |
* @param array array <p> |
| 10459 |
* The array of values to count |
| 10460 |
* </p> |
| 10461 |
* @return array an associative array of values from array as |
| 10462 |
* keys and their count as value. |
| 10463 |
*/ |
| 10464 |
function array_count_values (array $array) {} |
| 10465 |
|
| 10466 |
/** |
| 10467 |
* Return the values from a single column in the input array |
| 10468 |
* @link http://www.php.net/manual/en/function.array-column.php |
| 10469 |
* @param array array <p> |
| 10470 |
* A multi-dimensional array (record set) from which to pull a column of |
| 10471 |
* values. |
| 10472 |
* </p> |
| 10473 |
* @param column_key mixed <p> |
| 10474 |
* The column of values to return. This value may be the integer key of the |
| 10475 |
* column you wish to retrieve, or it may be the string key name for an |
| 10476 |
* associative array. It may also be &null; to return complete arrays |
| 10477 |
* (useful together with index_key to reindex the |
| 10478 |
* array). |
| 10479 |
* </p> |
| 10480 |
* @param index_key mixed[optional] <p> |
| 10481 |
* The column to use as the index/keys for the returned array. This value |
| 10482 |
* may be the integer key of the column, or it may be the string key name. |
| 10483 |
* </p> |
| 10484 |
* @return array an array of values representing a single column from the input array. |
| 10485 |
*/ |
| 10486 |
function array_column (array $array, $column_key, $index_key = null) {} |
| 10487 |
|
| 10488 |
/** |
| 10489 |
* Return an array with elements in reverse order |
| 10490 |
* @link http://www.php.net/manual/en/function.array-reverse.php |
| 10491 |
* @param array array <p> |
| 10492 |
* The input array. |
| 10493 |
* </p> |
| 10494 |
* @param preserve_keys bool[optional] <p> |
| 10495 |
* If set to true numeric keys are preserved. |
| 10496 |
* Non-numeric keys are not affected by this setting and will always be preserved. |
| 10497 |
* </p> |
| 10498 |
* @return array the reversed array. |
| 10499 |
*/ |
| 10500 |
function array_reverse (array $array, $preserve_keys = null) {} |
| 10501 |
|
| 10502 |
/** |
| 10503 |
* Iteratively reduce the array to a single value using a callback function |
| 10504 |
* @link http://www.php.net/manual/en/function.array-reduce.php |
| 10505 |
* @param array array <p> |
| 10506 |
* The input array. |
| 10507 |
* </p> |
| 10508 |
* @param callback callable mixedcallback |
| 10509 |
* mixedcarry |
| 10510 |
* mixeditem |
| 10511 |
* |
| 10512 |
* |
| 10513 |
* |
| 10514 |
* carry |
| 10515 |
* |
| 10516 |
* <p> |
| 10517 |
* Holds the return value of the previous iteration; in the case of the |
| 10518 |
* first iteration it instead holds the value of |
| 10519 |
* initial. |
| 10520 |
* </p> |
| 10521 |
* @param initial mixed[optional] <p> |
| 10522 |
* If the optional initial is available, it will |
| 10523 |
* be used at the beginning of the process, or as a final result in case |
| 10524 |
* the array is empty. |
| 10525 |
* </p> |
| 10526 |
* @return mixed the resulting value. |
| 10527 |
* </p> |
| 10528 |
* <p> |
| 10529 |
* If the array is empty and initial is not passed, |
| 10530 |
* array_reduce returns &null;. |
| 10531 |
*/ |
| 10532 |
function array_reduce (array $array, $callback, $initial = null) {} |
| 10533 |
|
| 10534 |
/** |
| 10535 |
* Pad array to the specified length with a value |
| 10536 |
* @link http://www.php.net/manual/en/function.array-pad.php |
| 10537 |
* @param array array <p> |
| 10538 |
* Initial array of values to pad. |
| 10539 |
* </p> |
| 10540 |
* @param size int <p> |
| 10541 |
* New size of the array. |
| 10542 |
* </p> |
| 10543 |
* @param value mixed <p> |
| 10544 |
* Value to pad if array is less than |
| 10545 |
* size. |
| 10546 |
* </p> |
| 10547 |
* @return array a copy of the array padded to size specified |
| 10548 |
* by size with value |
| 10549 |
* value. If size is |
| 10550 |
* positive then the array is padded on the right, if it's negative then |
| 10551 |
* on the left. If the absolute value of size is less |
| 10552 |
* than or equal to the length of the array then no |
| 10553 |
* padding takes place. |
| 10554 |
*/ |
| 10555 |
function array_pad (array $array, $size, $value) {} |
| 10556 |
|
| 10557 |
/** |
| 10558 |
* Exchanges all keys with their associated values in an array |
| 10559 |
* @link http://www.php.net/manual/en/function.array-flip.php |
| 10560 |
* @param array array <p> |
| 10561 |
* An array of key/value pairs to be flipped. |
| 10562 |
* </p> |
| 10563 |
* @return array the flipped array on success and &null; on failure. |
| 10564 |
*/ |
| 10565 |
function array_flip (array $array) {} |
| 10566 |
|
| 10567 |
/** |
| 10568 |
* Changes the case of all keys in an array |
| 10569 |
* @link http://www.php.net/manual/en/function.array-change-key-case.php |
| 10570 |
* @param array array <p> |
| 10571 |
* The array to work on |
| 10572 |
* </p> |
| 10573 |
* @param case int[optional] <p> |
| 10574 |
* Either CASE_UPPER or |
| 10575 |
* CASE_LOWER (default) |
| 10576 |
* </p> |
| 10577 |
* @return array an array with its keys lower or uppercased, or false if |
| 10578 |
* array is not an array. |
| 10579 |
*/ |
| 10580 |
function array_change_key_case (array $array, $case = null) {} |
| 10581 |
|
| 10582 |
/** |
| 10583 |
* Pick one or more random entries out of an array |
| 10584 |
* @link http://www.php.net/manual/en/function.array-rand.php |
| 10585 |
* @param array array <p> |
| 10586 |
* The input array. |
| 10587 |
* </p> |
| 10588 |
* @param num int[optional] <p> |
| 10589 |
* Specifies how many entries should be picked. |
| 10590 |
* </p> |
| 10591 |
* @return mixed When picking only one entry, array_rand returns |
| 10592 |
* the key for a random entry. Otherwise, an array of keys for the random |
| 10593 |
* entries is returned. This is done so that random keys can be picked |
| 10594 |
* from the array as well as random values. Trying to pick more elements |
| 10595 |
* than there are in the array will result in an |
| 10596 |
* E_WARNING level error, and NULL will be returned. |
| 10597 |
*/ |
| 10598 |
function array_rand (array $array, $num = null) {} |
| 10599 |
|
| 10600 |
/** |
| 10601 |
* Removes duplicate values from an array |
| 10602 |
* @link http://www.php.net/manual/en/function.array-unique.php |
| 10603 |
* @param array array <p> |
| 10604 |
* The input array. |
| 10605 |
* </p> |
| 10606 |
* @param sort_flags int[optional] <p> |
| 10607 |
* The optional second parameter sort_flags |
| 10608 |
* may be used to modify the sorting behavior using these values: |
| 10609 |
* </p> |
| 10610 |
* <p> |
| 10611 |
* Sorting type flags: |
| 10612 |
* |
| 10613 |
* |
| 10614 |
* SORT_REGULAR - compare items normally |
| 10615 |
* (don't change types) |
| 10616 |
* @return array the filtered array. |
| 10617 |
*/ |
| 10618 |
function array_unique (array $array, $sort_flags = null) {} |
| 10619 |
|
| 10620 |
/** |
| 10621 |
* Computes the intersection of arrays |
| 10622 |
* @link http://www.php.net/manual/en/function.array-intersect.php |
| 10623 |
* @param array1 array <p> |
| 10624 |
* The array with master values to check. |
| 10625 |
* </p> |
| 10626 |
* @param array2 array <p> |
| 10627 |
* An array to compare values against. |
| 10628 |
* </p> |
| 10629 |
* @param _ array[optional] |
| 10630 |
* @return array an array containing all of the values in |
| 10631 |
* array1 whose values exist in all of the parameters. |
| 10632 |
*/ |
| 10633 |
function array_intersect (array $array1, array $array2, array $_ = null) {} |
| 10634 |
|
| 10635 |
/** |
| 10636 |
* Computes the intersection of arrays using keys for comparison |
| 10637 |
* @link http://www.php.net/manual/en/function.array-intersect-key.php |
| 10638 |
* @param array1 array <p> |
| 10639 |
* The array with master keys to check. |
| 10640 |
* </p> |
| 10641 |
* @param array2 array <p> |
| 10642 |
* An array to compare keys against. |
| 10643 |
* </p> |
| 10644 |
* @param _ array[optional] |
| 10645 |
* @return array an associative array containing all the entries of |
| 10646 |
* array1 which have keys that are present in all |
| 10647 |
* arguments. |
| 10648 |
*/ |
| 10649 |
function array_intersect_key (array $array1, array $array2, array $_ = null) {} |
| 10650 |
|
| 10651 |
/** |
| 10652 |
* Computes the intersection of arrays using a callback function on the keys for comparison |
| 10653 |
* @link http://www.php.net/manual/en/function.array-intersect-ukey.php |
| 10654 |
* @param array1 array <p> |
| 10655 |
* Initial array for comparison of the arrays. |
| 10656 |
* </p> |
| 10657 |
* @param array2 array <p> |
| 10658 |
* First array to compare keys against. |
| 10659 |
* </p> |
| 10660 |
* @param _ array[optional] |
| 10661 |
* @param key_compare_func callable <p> |
| 10662 |
* &return.callbacksort; |
| 10663 |
* </p> |
| 10664 |
* &callback.cmp; |
| 10665 |
* @return array the values of array1 whose keys exist |
| 10666 |
* in all the arguments. |
| 10667 |
*/ |
| 10668 |
function array_intersect_ukey (array $array1, array $array2, array $_ = null, $key_compare_func) {} |
| 10669 |
|
| 10670 |
/** |
| 10671 |
* Computes the intersection of arrays, compares data by a callback function |
| 10672 |
* @link http://www.php.net/manual/en/function.array-uintersect.php |
| 10673 |
* @param array1 array <p> |
| 10674 |
* The first array. |
| 10675 |
* </p> |
| 10676 |
* @param array2 array <p> |
| 10677 |
* The second array. |
| 10678 |
* </p> |
| 10679 |
* @param _ array[optional] |
| 10680 |
* @param value_compare_func callable <p> |
| 10681 |
* &return.callbacksort; |
| 10682 |
* </p> |
| 10683 |
* &callback.cmp; |
| 10684 |
* @return array an array containing all the values of array1 |
| 10685 |
* that are present in all the arguments. |
| 10686 |
*/ |
| 10687 |
function array_uintersect (array $array1, array $array2, array $_ = null, $value_compare_func) {} |
| 10688 |
|
| 10689 |
/** |
| 10690 |
* Computes the intersection of arrays with additional index check |
| 10691 |
* @link http://www.php.net/manual/en/function.array-intersect-assoc.php |
| 10692 |
* @param array1 array <p> |
| 10693 |
* The array with master values to check. |
| 10694 |
* </p> |
| 10695 |
* @param array2 array <p> |
| 10696 |
* An array to compare values against. |
| 10697 |
* </p> |
| 10698 |
* @param _ array[optional] |
| 10699 |
* @return array an associative array containing all the values in |
| 10700 |
* array1 that are present in all of the arguments. |
| 10701 |
*/ |
| 10702 |
function array_intersect_assoc (array $array1, array $array2, array $_ = null) {} |
| 10703 |
|
| 10704 |
/** |
| 10705 |
* Computes the intersection of arrays with additional index check, compares data by a callback function |
| 10706 |
* @link http://www.php.net/manual/en/function.array-uintersect-assoc.php |
| 10707 |
* @param array1 array <p> |
| 10708 |
* The first array. |
| 10709 |
* </p> |
| 10710 |
* @param array2 array <p> |
| 10711 |
* The second array. |
| 10712 |
* </p> |
| 10713 |
* @param _ array[optional] |
| 10714 |
* @param value_compare_func callable <p> |
| 10715 |
* &return.callbacksort; |
| 10716 |
* </p> |
| 10717 |
* &callback.cmp; |
| 10718 |
* @return array an array containing all the values of |
| 10719 |
* array1 that are present in all the arguments. |
| 10720 |
*/ |
| 10721 |
function array_uintersect_assoc (array $array1, array $array2, array $_ = null, $value_compare_func) {} |
| 10722 |
|
| 10723 |
/** |
| 10724 |
* Computes the intersection of arrays with additional index check, compares indexes by a callback function |
| 10725 |
* @link http://www.php.net/manual/en/function.array-intersect-uassoc.php |
| 10726 |
* @param array1 array <p> |
| 10727 |
* Initial array for comparison of the arrays. |
| 10728 |
* </p> |
| 10729 |
* @param array2 array <p> |
| 10730 |
* First array to compare keys against. |
| 10731 |
* </p> |
| 10732 |
* @param _ array[optional] |
| 10733 |
* @param key_compare_func callable <p> |
| 10734 |
* &return.callbacksort; |
| 10735 |
* </p> |
| 10736 |
* &callback.cmp; |
| 10737 |
* @return array the values of array1 whose values exist |
| 10738 |
* in all of the arguments. |
| 10739 |
*/ |
| 10740 |
function array_intersect_uassoc (array $array1, array $array2, array $_ = null, $key_compare_func) {} |
| 10741 |
|
| 10742 |
/** |
| 10743 |
* Computes the intersection of arrays with additional index check, compares data and indexes by a callback functions |
| 10744 |
* @link http://www.php.net/manual/en/function.array-uintersect-uassoc.php |
| 10745 |
* @param array1 array <p> |
| 10746 |
* The first array. |
| 10747 |
* </p> |
| 10748 |
* @param array2 array <p> |
| 10749 |
* The second array. |
| 10750 |
* </p> |
| 10751 |
* @param _ array[optional] |
| 10752 |
* @param value_compare_func callable <p> |
| 10753 |
* &return.callbacksort; |
| 10754 |
* </p> |
| 10755 |
* &callback.cmp; |
| 10756 |
* @param key_compare_func callable <p> |
| 10757 |
* Key comparison callback function. |
| 10758 |
* </p> |
| 10759 |
* @return array an array containing all the values of |
| 10760 |
* array1 that are present in all the arguments. |
| 10761 |
*/ |
| 10762 |
function array_uintersect_uassoc (array $array1, array $array2, array $_ = null, $value_compare_func, $key_compare_func) {} |
| 10763 |
|
| 10764 |
/** |
| 10765 |
* Computes the difference of arrays |
| 10766 |
* @link http://www.php.net/manual/en/function.array-diff.php |
| 10767 |
* @param array1 array <p> |
| 10768 |
* The array to compare from |
| 10769 |
* </p> |
| 10770 |
* @param array2 array <p> |
| 10771 |
* An array to compare against |
| 10772 |
* </p> |
| 10773 |
* @param _ array[optional] |
| 10774 |
* @return array an array containing all the entries from |
| 10775 |
* array1 that are not present in any of the other arrays. |
| 10776 |
*/ |
| 10777 |
function array_diff (array $array1, array $array2, array $_ = null) {} |
| 10778 |
|
| 10779 |
/** |
| 10780 |
* Computes the difference of arrays using keys for comparison |
| 10781 |
* @link http://www.php.net/manual/en/function.array-diff-key.php |
| 10782 |
* @param array1 array <p> |
| 10783 |
* The array to compare from |
| 10784 |
* </p> |
| 10785 |
* @param array2 array <p> |
| 10786 |
* An array to compare against |
| 10787 |
* </p> |
| 10788 |
* @param _ array[optional] |
| 10789 |
* @return array an array containing all the entries from |
| 10790 |
* array1 whose keys are not present in any of the |
| 10791 |
* other arrays. |
| 10792 |
*/ |
| 10793 |
function array_diff_key (array $array1, array $array2, array $_ = null) {} |
| 10794 |
|
| 10795 |
/** |
| 10796 |
* Computes the difference of arrays using a callback function on the keys for comparison |
| 10797 |
* @link http://www.php.net/manual/en/function.array-diff-ukey.php |
| 10798 |
* @param array1 array <p> |
| 10799 |
* The array to compare from |
| 10800 |
* </p> |
| 10801 |
* @param array2 array <p> |
| 10802 |
* An array to compare against |
| 10803 |
* </p> |
| 10804 |
* @param _ array[optional] |
| 10805 |
* @param key_compare_func callable <p> |
| 10806 |
* &return.callbacksort; |
| 10807 |
* </p> |
| 10808 |
* &callback.cmp; |
| 10809 |
* @return array an array containing all the entries from |
| 10810 |
* array1 that are not present in any of the other arrays. |
| 10811 |
*/ |
| 10812 |
function array_diff_ukey (array $array1, array $array2, array $_ = null, $key_compare_func) {} |
| 10813 |
|
| 10814 |
/** |
| 10815 |
* Computes the difference of arrays by using a callback function for data comparison |
| 10816 |
* @link http://www.php.net/manual/en/function.array-udiff.php |
| 10817 |
* @param array1 array <p> |
| 10818 |
* The first array. |
| 10819 |
* </p> |
| 10820 |
* @param array2 array <p> |
| 10821 |
* The second array. |
| 10822 |
* </p> |
| 10823 |
* @param _ array[optional] |
| 10824 |
* @param value_compare_func callable <p> |
| 10825 |
* The callback comparison function. |
| 10826 |
* </p> |
| 10827 |
* <p> |
| 10828 |
* &return.callbacksort; |
| 10829 |
* </p> |
| 10830 |
* &callback.cmp; |
| 10831 |
* @return array an array containing all the values of array1 |
| 10832 |
* that are not present in any of the other arguments. |
| 10833 |
*/ |
| 10834 |
function array_udiff (array $array1, array $array2, array $_ = null, $value_compare_func) {} |
| 10835 |
|
| 10836 |
/** |
| 10837 |
* Computes the difference of arrays with additional index check |
| 10838 |
* @link http://www.php.net/manual/en/function.array-diff-assoc.php |
| 10839 |
* @param array1 array <p> |
| 10840 |
* The array to compare from |
| 10841 |
* </p> |
| 10842 |
* @param array2 array <p> |
| 10843 |
* An array to compare against |
| 10844 |
* </p> |
| 10845 |
* @param _ array[optional] |
| 10846 |
* @return array an array containing all the values from |
| 10847 |
* array1 that are not present in any of the other arrays. |
| 10848 |
*/ |
| 10849 |
function array_diff_assoc (array $array1, array $array2, array $_ = null) {} |
| 10850 |
|
| 10851 |
/** |
| 10852 |
* Computes the difference of arrays with additional index check, compares data by a callback function |
| 10853 |
* @link http://www.php.net/manual/en/function.array-udiff-assoc.php |
| 10854 |
* @param array1 array <p> |
| 10855 |
* The first array. |
| 10856 |
* </p> |
| 10857 |
* @param array2 array <p> |
| 10858 |
* The second array. |
| 10859 |
* </p> |
| 10860 |
* @param _ array[optional] |
| 10861 |
* @param value_compare_func callable <p> |
| 10862 |
* &return.callbacksort; |
| 10863 |
* </p> |
| 10864 |
* &callback.cmp; |
| 10865 |
* @return array array_udiff_assoc returns an array |
| 10866 |
* containing all the values from array1 |
| 10867 |
* that are not present in any of the other arguments. |
| 10868 |
* Note that the keys are used in the comparison unlike |
| 10869 |
* array_diff and array_udiff. |
| 10870 |
* The comparison of arrays' data is performed by using an user-supplied |
| 10871 |
* callback. In this aspect the behaviour is opposite to the behaviour of |
| 10872 |
* array_diff_assoc which uses internal function for |
| 10873 |
* comparison. |
| 10874 |
*/ |
| 10875 |
function array_udiff_assoc (array $array1, array $array2, array $_ = null, $value_compare_func) {} |
| 10876 |
|
| 10877 |
/** |
| 10878 |
* Computes the difference of arrays with additional index check which is performed by a user supplied callback function |
| 10879 |
* @link http://www.php.net/manual/en/function.array-diff-uassoc.php |
| 10880 |
* @param array1 array <p> |
| 10881 |
* The array to compare from |
| 10882 |
* </p> |
| 10883 |
* @param array2 array <p> |
| 10884 |
* An array to compare against |
| 10885 |
* </p> |
| 10886 |
* @param _ array[optional] |
| 10887 |
* @param key_compare_func callable <p> |
| 10888 |
* &return.callbacksort; |
| 10889 |
* </p> |
| 10890 |
* &callback.cmp; |
| 10891 |
* @return array an array containing all the entries from |
| 10892 |
* array1 that are not present in any of the other arrays. |
| 10893 |
*/ |
| 10894 |
function array_diff_uassoc (array $array1, array $array2, array $_ = null, $key_compare_func) {} |
| 10895 |
|
| 10896 |
/** |
| 10897 |
* Computes the difference of arrays with additional index check, compares data and indexes by a callback function |
| 10898 |
* @link http://www.php.net/manual/en/function.array-udiff-uassoc.php |
| 10899 |
* @param array1 array <p> |
| 10900 |
* The first array. |
| 10901 |
* </p> |
| 10902 |
* @param array2 array <p> |
| 10903 |
* The second array. |
| 10904 |
* </p> |
| 10905 |
* @param _ array[optional] |
| 10906 |
* @param value_compare_func callable <p> |
| 10907 |
* &return.callbacksort; |
| 10908 |
* </p> |
| 10909 |
* &callback.cmp; |
| 10910 |
* @param key_compare_func callable <p> |
| 10911 |
* The comparison of keys (indices) is done also by the callback function |
| 10912 |
* key_compare_func. This behaviour is unlike what |
| 10913 |
* array_udiff_assoc does, since the latter compares |
| 10914 |
* the indices by using an internal function. |
| 10915 |
* </p> |
| 10916 |
* @return array an array containing all the values from |
| 10917 |
* array1 that are not present in any of the other |
| 10918 |
* arguments. |
| 10919 |
*/ |
| 10920 |
function array_udiff_uassoc (array $array1, array $array2, array $_ = null, $value_compare_func, $key_compare_func) {} |
| 10921 |
|
| 10922 |
/** |
| 10923 |
* Calculate the sum of values in an array |
| 10924 |
* @link http://www.php.net/manual/en/function.array-sum.php |
| 10925 |
* @param array array <p> |
| 10926 |
* The input array. |
| 10927 |
* </p> |
| 10928 |
* @return number the sum of values as an integer or float. |
| 10929 |
*/ |
| 10930 |
function array_sum (array $array) {} |
| 10931 |
|
| 10932 |
/** |
| 10933 |
* Calculate the product of values in an array |
| 10934 |
* @link http://www.php.net/manual/en/function.array-product.php |
| 10935 |
* @param array array <p> |
| 10936 |
* The array. |
| 10937 |
* </p> |
| 10938 |
* @return number the product as an integer or float. |
| 10939 |
*/ |
| 10940 |
function array_product (array $array) {} |
| 10941 |
|
| 10942 |
/** |
| 10943 |
* Filters elements of an array using a callback function |
| 10944 |
* @link http://www.php.net/manual/en/function.array-filter.php |
| 10945 |
* @param array array <p> |
| 10946 |
* The array to iterate over |
| 10947 |
* </p> |
| 10948 |
* @param callback callable[optional] <p> |
| 10949 |
* The callback function to use |
| 10950 |
* </p> |
| 10951 |
* <p> |
| 10952 |
* If no callback is supplied, all entries of |
| 10953 |
* array equal to false (see |
| 10954 |
* converting to |
| 10955 |
* boolean) will be removed. |
| 10956 |
* </p> |
| 10957 |
* @param flag int[optional] <p> |
| 10958 |
* Flag determining what arguments are sent to callback: |
| 10959 |
* |
| 10960 |
* |
| 10961 |
* ARRAY_FILTER_USE_KEY - pass key as the only argument |
| 10962 |
* to callback instead of the value |
| 10963 |
* @return array the filtered array. |
| 10964 |
*/ |
| 10965 |
function array_filter (array $array, $callback = null, $flag = null) {} |
| 10966 |
|
| 10967 |
/** |
| 10968 |
* Applies the callback to the elements of the given arrays |
| 10969 |
* @link http://www.php.net/manual/en/function.array-map.php |
| 10970 |
* @param callback callable <p> |
| 10971 |
* Callback function to run for each element in each array. |
| 10972 |
* </p> |
| 10973 |
* @param array1 array <p> |
| 10974 |
* An array to run through the callback function. |
| 10975 |
* </p> |
| 10976 |
* @param _ array[optional] |
| 10977 |
* @return array an array containing all the elements of array1 |
| 10978 |
* after applying the callback function to each one. |
| 10979 |
*/ |
| 10980 |
function array_map ($callback, array $array1, array $_ = null) {} |
| 10981 |
|
| 10982 |
/** |
| 10983 |
* Split an array into chunks |
| 10984 |
* @link http://www.php.net/manual/en/function.array-chunk.php |
| 10985 |
* @param array array <p> |
| 10986 |
* The array to work on |
| 10987 |
* </p> |
| 10988 |
* @param size int <p> |
| 10989 |
* The size of each chunk |
| 10990 |
* </p> |
| 10991 |
* @param preserve_keys bool[optional] <p> |
| 10992 |
* When set to true keys will be preserved. |
| 10993 |
* Default is false which will reindex the chunk numerically |
| 10994 |
* </p> |
| 10995 |
* @return array a multidimensional numerically indexed array, starting with zero, |
| 10996 |
* with each dimension containing size elements. |
| 10997 |
*/ |
| 10998 |
function array_chunk (array $array, $size, $preserve_keys = null) {} |
| 10999 |
|
| 11000 |
/** |
| 11001 |
* Creates an array by using one array for keys and another for its values |
| 11002 |
* @link http://www.php.net/manual/en/function.array-combine.php |
| 11003 |
* @param keys array <p> |
| 11004 |
* Array of keys to be used. Illegal values for key will be |
| 11005 |
* converted to string. |
| 11006 |
* </p> |
| 11007 |
* @param values array <p> |
| 11008 |
* Array of values to be used |
| 11009 |
* </p> |
| 11010 |
* @return array the combined array, false if the number of elements |
| 11011 |
* for each array isn't equal. |
| 11012 |
*/ |
| 11013 |
function array_combine (array $keys, array $values) {} |
| 11014 |
|
| 11015 |
/** |
| 11016 |
* Checks if the given key or index exists in the array |
| 11017 |
* @link http://www.php.net/manual/en/function.array-key-exists.php |
| 11018 |
* @param key mixed <p> |
| 11019 |
* Value to check. |
| 11020 |
* </p> |
| 11021 |
* @param array array <p> |
| 11022 |
* An array with keys to check. |
| 11023 |
* </p> |
| 11024 |
* @return bool Returns true on success, false on failure. |
| 11025 |
*/ |
| 11026 |
function array_key_exists ($key, array $array) {} |
| 11027 |
|
| 11028 |
/** |
| 11029 |
* &Alias; <function>current</function> |
| 11030 |
* @link http://www.php.net/manual/en/function.pos.php |
| 11031 |
* @param arg |
| 11032 |
*/ |
| 11033 |
function pos (&$arg) {} |
| 11034 |
|
| 11035 |
/** |
| 11036 |
* &Alias; <function>count</function> |
| 11037 |
* @link http://www.php.net/manual/en/function.sizeof.php |
| 11038 |
* @param var |
| 11039 |
* @param mode[optional] |
| 11040 |
*/ |
| 11041 |
function sizeof ($var, $mode) {} |
| 11042 |
|
| 11043 |
/** |
| 11044 |
* &Alias; <function>array_key_exists</function> |
| 11045 |
* @link http://www.php.net/manual/en/function.key-exists.php |
| 11046 |
* @param key |
| 11047 |
* @param search |
| 11048 |
*/ |
| 11049 |
function key_exists ($key, $search) {} |
| 11050 |
|
| 11051 |
/** |
| 11052 |
* Checks if assertion is &false; |
| 11053 |
* @link http://www.php.net/manual/en/function.assert.php |
| 11054 |
* @param assertion mixed <p> |
| 11055 |
* The assertion. |
| 11056 |
* </p> |
| 11057 |
* @param description string[optional] <p> |
| 11058 |
* An optional description that will be included in the failure message if |
| 11059 |
* the assertion fails. |
| 11060 |
* </p> |
| 11061 |
* @return bool false if the assertion is false, true otherwise. |
| 11062 |
*/ |
| 11063 |
function assert ($assertion, $description = null) {} |
| 11064 |
|
| 11065 |
/** |
| 11066 |
* Set/get the various assert flags |
| 11067 |
* @link http://www.php.net/manual/en/function.assert-options.php |
| 11068 |
* @param what int <p> |
| 11069 |
* <table> |
| 11070 |
* Assert Options |
| 11071 |
* |
| 11072 |
* |
| 11073 |
* <tr valign="top"> |
| 11074 |
* <td>Option</td> |
| 11075 |
* <td>INI Setting</td> |
| 11076 |
* <td>Default value</td> |
| 11077 |
* <td>Description</td> |
| 11078 |
* </tr> |
| 11079 |
* |
| 11080 |
* |
| 11081 |
* <tr valign="top"> |
| 11082 |
* <td>ASSERT_ACTIVE</td> |
| 11083 |
* <td>assert.active</td> |
| 11084 |
* <td>1</td> |
| 11085 |
* <td>enable assert evaluation</td> |
| 11086 |
* </tr> |
| 11087 |
* <tr valign="top"> |
| 11088 |
* <td>ASSERT_WARNING</td> |
| 11089 |
* <td>assert.warning</td> |
| 11090 |
* <td>1</td> |
| 11091 |
* <td>issue a PHP warning for each failed assertion</td> |
| 11092 |
* </tr> |
| 11093 |
* <tr valign="top"> |
| 11094 |
* <td>ASSERT_BAIL</td> |
| 11095 |
* <td>assert.bail</td> |
| 11096 |
* <td>0</td> |
| 11097 |
* <td>terminate execution on failed assertions</td> |
| 11098 |
* </tr> |
| 11099 |
* <tr valign="top"> |
| 11100 |
* <td>ASSERT_QUIET_EVAL</td> |
| 11101 |
* <td>assert.quiet_eval</td> |
| 11102 |
* <td>0</td> |
| 11103 |
* <td> |
| 11104 |
* disable error_reporting during assertion expression |
| 11105 |
* evaluation |
| 11106 |
* </td> |
| 11107 |
* </tr> |
| 11108 |
* <tr valign="top"> |
| 11109 |
* <td>ASSERT_CALLBACK</td> |
| 11110 |
* <td>assert.callback</td> |
| 11111 |
* <td)<&null;)</td> |
| 11112 |
* <td>Callback to call on failed assertions</td> |
| 11113 |
* </tr> |
| 11114 |
* |
| 11115 |
* |
| 11116 |
* </table> |
| 11117 |
* </p> |
| 11118 |
* @param value mixed[optional] <p> |
| 11119 |
* An optional new value for the option. |
| 11120 |
* </p> |
| 11121 |
* @return mixed the original setting of any option or false on errors. |
| 11122 |
*/ |
| 11123 |
function assert_options ($what, $value = null) {} |
| 11124 |
|
| 11125 |
/** |
| 11126 |
* Compares two "PHP-standardized" version number strings |
| 11127 |
* @link http://www.php.net/manual/en/function.version-compare.php |
| 11128 |
* @param version1 string <p> |
| 11129 |
* First version number. |
| 11130 |
* </p> |
| 11131 |
* @param version2 string <p> |
| 11132 |
* Second version number. |
| 11133 |
* </p> |
| 11134 |
* @param operator string[optional] <p> |
| 11135 |
* If the third optional operator argument is |
| 11136 |
* specified, test for a particular relationship. The possible operators |
| 11137 |
* are: =, ge, |
| 11138 |
* ==, =, eq, |
| 11139 |
* !=, , ne |
| 11140 |
* respectively. |
| 11141 |
* </p> |
| 11142 |
* <p> |
| 11143 |
* This parameter is case-sensitive, values should be lowercase. |
| 11144 |
* </p> |
| 11145 |
* @return mixed By default, version_compare returns |
| 11146 |
* -1 if the first version is lower than the second, |
| 11147 |
* 0 if they are equal, and |
| 11148 |
* 1 if the second is lower. |
| 11149 |
* </p> |
| 11150 |
* <p> |
| 11151 |
* When using the optional operator argument, the |
| 11152 |
* function will return true if the relationship is the one specified |
| 11153 |
* by the operator, false otherwise. |
| 11154 |
*/ |
| 11155 |
function version_compare ($version1, $version2, $operator = null) {} |
| 11156 |
|
| 11157 |
/** |
| 11158 |
* Convert a pathname and a project identifier to a System V IPC key |
| 11159 |
* @link http://www.php.net/manual/en/function.ftok.php |
| 11160 |
* @param pathname string <p> |
| 11161 |
* Path to an accessible file. |
| 11162 |
* </p> |
| 11163 |
* @param proj string <p> |
| 11164 |
* Project identifier. This must be a one character string. |
| 11165 |
* </p> |
| 11166 |
* @return int On success the return value will be the created key value, otherwise |
| 11167 |
* -1 is returned. |
| 11168 |
*/ |
| 11169 |
function ftok ($pathname, $proj) {} |
| 11170 |
|
| 11171 |
/** |
| 11172 |
* Perform the rot13 transform on a string |
| 11173 |
* @link http://www.php.net/manual/en/function.str-rot13.php |
| 11174 |
* @param str string <p> |
| 11175 |
* The input string. |
| 11176 |
* </p> |
| 11177 |
* @return string the ROT13 version of the given string. |
| 11178 |
*/ |
| 11179 |
function str_rot13 ($str) {} |
| 11180 |
|
| 11181 |
/** |
| 11182 |
* Retrieve list of registered filters |
| 11183 |
* @link http://www.php.net/manual/en/function.stream-get-filters.php |
| 11184 |
* @return array an indexed array containing the name of all stream filters |
| 11185 |
* available. |
| 11186 |
*/ |
| 11187 |
function stream_get_filters () {} |
| 11188 |
|
| 11189 |
/** |
| 11190 |
* Register a user defined stream filter |
| 11191 |
* @link http://www.php.net/manual/en/function.stream-filter-register.php |
| 11192 |
* @param filtername string <p> |
| 11193 |
* The filter name to be registered. |
| 11194 |
* </p> |
| 11195 |
* @param classname string <p> |
| 11196 |
* To implement a filter, you need to define a class as an extension of |
| 11197 |
* php_user_filter with a number of member |
| 11198 |
* functions. When performing read/write operations on the stream |
| 11199 |
* to which your filter is attached, PHP will pass the data through your |
| 11200 |
* filter (and any other filters attached to that stream) so that the |
| 11201 |
* data may be modified as desired. You must implement the methods |
| 11202 |
* exactly as described in php_user_filter - doing |
| 11203 |
* otherwise will lead to undefined behaviour. |
| 11204 |
* </p> |
| 11205 |
* @return bool Returns true on success, false on failure. |
| 11206 |
* </p> |
| 11207 |
* <p> |
| 11208 |
* stream_filter_register will return false if the |
| 11209 |
* filtername is already defined. |
| 11210 |
*/ |
| 11211 |
function stream_filter_register ($filtername, $classname) {} |
| 11212 |
|
| 11213 |
/** |
| 11214 |
* Return a bucket object from the brigade for operating on |
| 11215 |
* @link http://www.php.net/manual/en/function.stream-bucket-make-writeable.php |
| 11216 |
* @param brigade resource |
| 11217 |
* @return object |
| 11218 |
*/ |
| 11219 |
function stream_bucket_make_writeable ($brigade) {} |
| 11220 |
|
| 11221 |
/** |
| 11222 |
* Prepend bucket to brigade |
| 11223 |
* @link http://www.php.net/manual/en/function.stream-bucket-prepend.php |
| 11224 |
* @param brigade resource <p> |
| 11225 |
* brigade is a resource pointing to a bucket brigade |
| 11226 |
* which contains one or more bucket objects. |
| 11227 |
* </p> |
| 11228 |
* @param bucket resource <p> |
| 11229 |
* A bucket object. |
| 11230 |
* </p> |
| 11231 |
* @return void |
| 11232 |
*/ |
| 11233 |
function stream_bucket_prepend ($brigade, $bucket) {} |
| 11234 |
|
| 11235 |
/** |
| 11236 |
* Append bucket to brigade |
| 11237 |
* @link http://www.php.net/manual/en/function.stream-bucket-append.php |
| 11238 |
* @param brigade resource |
| 11239 |
* @param bucket resource |
| 11240 |
* @return void |
| 11241 |
*/ |
| 11242 |
function stream_bucket_append ($brigade, $bucket) {} |
| 11243 |
|
| 11244 |
/** |
| 11245 |
* Create a new bucket for use on the current stream |
| 11246 |
* @link http://www.php.net/manual/en/function.stream-bucket-new.php |
| 11247 |
* @param stream resource |
| 11248 |
* @param buffer string |
| 11249 |
* @return object |
| 11250 |
*/ |
| 11251 |
function stream_bucket_new ($stream, $buffer) {} |
| 11252 |
|
| 11253 |
/** |
| 11254 |
* Add URL rewriter values |
| 11255 |
* @link http://www.php.net/manual/en/function.output-add-rewrite-var.php |
| 11256 |
* @param name string <p> |
| 11257 |
* The variable name. |
| 11258 |
* </p> |
| 11259 |
* @param value string <p> |
| 11260 |
* The variable value. |
| 11261 |
* </p> |
| 11262 |
* @return bool Returns true on success, false on failure. |
| 11263 |
*/ |
| 11264 |
function output_add_rewrite_var ($name, $value) {} |
| 11265 |
|
| 11266 |
/** |
| 11267 |
* Reset URL rewriter values |
| 11268 |
* @link http://www.php.net/manual/en/function.output-reset-rewrite-vars.php |
| 11269 |
* @return bool Returns true on success, false on failure. |
| 11270 |
*/ |
| 11271 |
function output_reset_rewrite_vars () {} |
| 11272 |
|
| 11273 |
/** |
| 11274 |
* Returns directory path used for temporary files |
| 11275 |
* @link http://www.php.net/manual/en/function.sys-get-temp-dir.php |
| 11276 |
* @return string the path of the temporary directory. |
| 11277 |
*/ |
| 11278 |
function sys_get_temp_dir () {} |
| 11279 |
|
| 11280 |
/** |
| 11281 |
* Loads a PHP extension at runtime |
| 11282 |
* @link http://www.php.net/manual/en/function.dl.php |
| 11283 |
* @param library string <p> |
| 11284 |
* This parameter is only the filename of the |
| 11285 |
* extension to load which also depends on your platform. For example, |
| 11286 |
* the sockets extension (if compiled |
| 11287 |
* as a shared module, not the default!) would be called |
| 11288 |
* sockets.so on Unix platforms whereas it is called |
| 11289 |
* php_sockets.dll on the Windows platform. |
| 11290 |
* </p> |
| 11291 |
* <p> |
| 11292 |
* The directory where the extension is loaded from depends on your |
| 11293 |
* platform: |
| 11294 |
* </p> |
| 11295 |
* <p> |
| 11296 |
* Windows - If not explicitly set in the &php.ini;, the extension is |
| 11297 |
* loaded from C:\php4\extensions\ (PHP 4) or |
| 11298 |
* C:\php5\ (PHP 5) by default. |
| 11299 |
* </p> |
| 11300 |
* <p> |
| 11301 |
* Unix - If not explicitly set in the &php.ini;, the default extension |
| 11302 |
* directory depends on |
| 11303 |
* |
| 11304 |
* |
| 11305 |
* |
| 11306 |
* whether PHP has been built with --enable-debug |
| 11307 |
* or not |
| 11308 |
* @return bool Returns true on success, false on failure. If the functionality of loading modules is not available |
| 11309 |
* or has been disabled (either by setting |
| 11310 |
* enable_dl off or by enabling &safemode; |
| 11311 |
* in &php.ini;) an E_ERROR is emitted |
| 11312 |
* and execution is stopped. If dl fails because the |
| 11313 |
* specified library couldn't be loaded, in addition to false an |
| 11314 |
* E_WARNING message is emitted. |
| 11315 |
*/ |
| 11316 |
function dl ($library) {} |
| 11317 |
|
| 11318 |
/** |
| 11319 |
* Sets the process title |
| 11320 |
* @link http://www.php.net/manual/en/function.cli-set-process-title.php |
| 11321 |
* @param title string <p> |
| 11322 |
* The new title. |
| 11323 |
* </p> |
| 11324 |
* @return bool Returns true on success, false on failure. |
| 11325 |
*/ |
| 11326 |
function cli_set_process_title ($title) {} |
| 11327 |
|
| 11328 |
/** |
| 11329 |
* Returns the current process title |
| 11330 |
* @link http://www.php.net/manual/en/function.cli-get-process-title.php |
| 11331 |
* @return string Return a string with the current process title or &null; on error. |
| 11332 |
*/ |
| 11333 |
function cli_get_process_title () {} |
| 11334 |
|
| 11335 |
define ('CONNECTION_ABORTED', 1); |
| 11336 |
define ('CONNECTION_NORMAL', 0); |
| 11337 |
define ('CONNECTION_TIMEOUT', 2); |
| 11338 |
define ('INI_USER', 1); |
| 11339 |
define ('INI_PERDIR', 2); |
| 11340 |
define ('INI_SYSTEM', 4); |
| 11341 |
define ('INI_ALL', 7); |
| 11342 |
|
| 11343 |
/** |
| 11344 |
* Normal INI scanner mode (since PHP 5.3). |
| 11345 |
* @link http://www.php.net/manual/en/filesystem.constants.php |
| 11346 |
*/ |
| 11347 |
define ('INI_SCANNER_NORMAL', 0); |
| 11348 |
|
| 11349 |
/** |
| 11350 |
* Raw INI scanner mode (since PHP 5.3). |
| 11351 |
* @link http://www.php.net/manual/en/filesystem.constants.php |
| 11352 |
*/ |
| 11353 |
define ('INI_SCANNER_RAW', 1); |
| 11354 |
define ('PHP_URL_SCHEME', 0); |
| 11355 |
define ('PHP_URL_HOST', 1); |
| 11356 |
define ('PHP_URL_PORT', 2); |
| 11357 |
define ('PHP_URL_USER', 3); |
| 11358 |
define ('PHP_URL_PASS', 4); |
| 11359 |
define ('PHP_URL_PATH', 5); |
| 11360 |
define ('PHP_URL_QUERY', 6); |
| 11361 |
define ('PHP_URL_FRAGMENT', 7); |
| 11362 |
define ('PHP_QUERY_RFC1738', 1); |
| 11363 |
define ('PHP_QUERY_RFC3986', 2); |
| 11364 |
define ('M_E', 2.718281828459); |
| 11365 |
define ('M_LOG2E', 1.442695040889); |
| 11366 |
define ('M_LOG10E', 0.43429448190325); |
| 11367 |
define ('M_LN2', 0.69314718055995); |
| 11368 |
define ('M_LN10', 2.302585092994); |
| 11369 |
|
| 11370 |
/** |
| 11371 |
* Round halves up |
| 11372 |
* @link http://www.php.net/manual/en/math.constants.php |
| 11373 |
*/ |
| 11374 |
define ('M_PI', 3.1415926535898); |
| 11375 |
define ('M_PI_2', 1.5707963267949); |
| 11376 |
define ('M_PI_4', 0.78539816339745); |
| 11377 |
define ('M_1_PI', 0.31830988618379); |
| 11378 |
define ('M_2_PI', 0.63661977236758); |
| 11379 |
define ('M_SQRTPI', 1.7724538509055); |
| 11380 |
define ('M_2_SQRTPI', 1.1283791670955); |
| 11381 |
define ('M_LNPI', 1.1447298858494); |
| 11382 |
define ('M_EULER', 0.57721566490153); |
| 11383 |
define ('M_SQRT2', 1.4142135623731); |
| 11384 |
define ('M_SQRT1_2', 0.70710678118655); |
| 11385 |
define ('M_SQRT3', 1.7320508075689); |
| 11386 |
define ('INF', INF); |
| 11387 |
define ('NAN', NAN); |
| 11388 |
define ('PHP_ROUND_HALF_UP', 1); |
| 11389 |
|
| 11390 |
/** |
| 11391 |
* Round halves down |
| 11392 |
* @link http://www.php.net/manual/en/math.constants.php |
| 11393 |
*/ |
| 11394 |
define ('PHP_ROUND_HALF_DOWN', 2); |
| 11395 |
|
| 11396 |
/** |
| 11397 |
* Round halves to even numbers |
| 11398 |
* @link http://www.php.net/manual/en/math.constants.php |
| 11399 |
*/ |
| 11400 |
define ('PHP_ROUND_HALF_EVEN', 3); |
| 11401 |
|
| 11402 |
/** |
| 11403 |
* Round halves to odd numbers |
| 11404 |
* @link http://www.php.net/manual/en/math.constants.php |
| 11405 |
*/ |
| 11406 |
define ('PHP_ROUND_HALF_ODD', 4); |
| 11407 |
define ('INFO_GENERAL', 1); |
| 11408 |
|
| 11409 |
/** |
| 11410 |
* PHP Credits. See also phpcredits. |
| 11411 |
* @link http://www.php.net/manual/en/info.constants.php |
| 11412 |
*/ |
| 11413 |
define ('INFO_CREDITS', 2); |
| 11414 |
|
| 11415 |
/** |
| 11416 |
* Current Local and Master values for PHP directives. See |
| 11417 |
* also ini_get. |
| 11418 |
* @link http://www.php.net/manual/en/info.constants.php |
| 11419 |
*/ |
| 11420 |
define ('INFO_CONFIGURATION', 4); |
| 11421 |
|
| 11422 |
/** |
| 11423 |
* Loaded modules and their respective settings. |
| 11424 |
* @link http://www.php.net/manual/en/info.constants.php |
| 11425 |
*/ |
| 11426 |
define ('INFO_MODULES', 8); |
| 11427 |
|
| 11428 |
/** |
| 11429 |
* Environment Variable information that's also available in |
| 11430 |
* $_ENV. |
| 11431 |
* @link http://www.php.net/manual/en/info.constants.php |
| 11432 |
*/ |
| 11433 |
define ('INFO_ENVIRONMENT', 16); |
| 11434 |
|
| 11435 |
/** |
| 11436 |
* Shows all |
| 11437 |
* predefined variables from EGPCS (Environment, GET, |
| 11438 |
* POST, Cookie, Server). |
| 11439 |
* @link http://www.php.net/manual/en/info.constants.php |
| 11440 |
*/ |
| 11441 |
define ('INFO_VARIABLES', 32); |
| 11442 |
|
| 11443 |
/** |
| 11444 |
* PHP License information. See also the license faq. |
| 11445 |
* @link http://www.php.net/manual/en/info.constants.php |
| 11446 |
*/ |
| 11447 |
define ('INFO_LICENSE', 64); |
| 11448 |
|
| 11449 |
/** |
| 11450 |
* Unused |
| 11451 |
* @link http://www.php.net/manual/en/info.constants.php |
| 11452 |
*/ |
| 11453 |
define ('INFO_ALL', 4294967295); |
| 11454 |
|
| 11455 |
/** |
| 11456 |
* A list of the core developers |
| 11457 |
* @link http://www.php.net/manual/en/info.constants.php |
| 11458 |
*/ |
| 11459 |
define ('CREDITS_GROUP', 1); |
| 11460 |
|
| 11461 |
/** |
| 11462 |
* General credits: Language design and concept, PHP |
| 11463 |
* authors and SAPI module. |
| 11464 |
* @link http://www.php.net/manual/en/info.constants.php |
| 11465 |
*/ |
| 11466 |
define ('CREDITS_GENERAL', 2); |
| 11467 |
|
| 11468 |
/** |
| 11469 |
* A list of the server API modules for PHP, and their authors. |
| 11470 |
* @link http://www.php.net/manual/en/info.constants.php |
| 11471 |
*/ |
| 11472 |
define ('CREDITS_SAPI', 4); |
| 11473 |
|
| 11474 |
/** |
| 11475 |
* A list of the extension modules for PHP, and their authors. |
| 11476 |
* @link http://www.php.net/manual/en/info.constants.php |
| 11477 |
*/ |
| 11478 |
define ('CREDITS_MODULES', 8); |
| 11479 |
|
| 11480 |
/** |
| 11481 |
* The credits for the documentation team. |
| 11482 |
* @link http://www.php.net/manual/en/info.constants.php |
| 11483 |
*/ |
| 11484 |
define ('CREDITS_DOCS', 16); |
| 11485 |
|
| 11486 |
/** |
| 11487 |
* Usually used in combination with the other flags. Indicates |
| 11488 |
* that a complete stand-alone HTML page needs to be |
| 11489 |
* printed including the information indicated by the other |
| 11490 |
* flags. |
| 11491 |
* @link http://www.php.net/manual/en/info.constants.php |
| 11492 |
*/ |
| 11493 |
define ('CREDITS_FULLPAGE', 32); |
| 11494 |
|
| 11495 |
/** |
| 11496 |
* The credits for the quality assurance team. |
| 11497 |
* @link http://www.php.net/manual/en/info.constants.php |
| 11498 |
*/ |
| 11499 |
define ('CREDITS_QA', 64); |
| 11500 |
|
| 11501 |
/** |
| 11502 |
* The configuration line, &php.ini; location, build date, Web |
| 11503 |
* Server, System and more. |
| 11504 |
* @link http://www.php.net/manual/en/info.constants.php |
| 11505 |
*/ |
| 11506 |
define ('CREDITS_ALL', 4294967295); |
| 11507 |
define ('HTML_SPECIALCHARS', 0); |
| 11508 |
define ('HTML_ENTITIES', 1); |
| 11509 |
define ('ENT_COMPAT', 2); |
| 11510 |
define ('ENT_QUOTES', 3); |
| 11511 |
define ('ENT_NOQUOTES', 0); |
| 11512 |
define ('ENT_IGNORE', 4); |
| 11513 |
define ('ENT_SUBSTITUTE', 8); |
| 11514 |
define ('ENT_DISALLOWED', 128); |
| 11515 |
define ('ENT_HTML401', 0); |
| 11516 |
define ('ENT_XML1', 16); |
| 11517 |
define ('ENT_XHTML', 32); |
| 11518 |
define ('ENT_HTML5', 48); |
| 11519 |
define ('STR_PAD_LEFT', 0); |
| 11520 |
define ('STR_PAD_RIGHT', 1); |
| 11521 |
define ('STR_PAD_BOTH', 2); |
| 11522 |
define ('PATHINFO_DIRNAME', 1); |
| 11523 |
define ('PATHINFO_BASENAME', 2); |
| 11524 |
define ('PATHINFO_EXTENSION', 4); |
| 11525 |
|
| 11526 |
/** |
| 11527 |
* Since PHP 5.2.0. |
| 11528 |
* @link http://www.php.net/manual/en/filesystem.constants.php |
| 11529 |
*/ |
| 11530 |
define ('PATHINFO_FILENAME', 8); |
| 11531 |
define ('CHAR_MAX', 127); |
| 11532 |
define ('LC_CTYPE', 0); |
| 11533 |
define ('LC_NUMERIC', 1); |
| 11534 |
define ('LC_TIME', 2); |
| 11535 |
define ('LC_COLLATE', 3); |
| 11536 |
define ('LC_MONETARY', 4); |
| 11537 |
define ('LC_ALL', 6); |
| 11538 |
define ('LC_MESSAGES', 5); |
| 11539 |
define ('SEEK_SET', 0); |
| 11540 |
define ('SEEK_CUR', 1); |
| 11541 |
define ('SEEK_END', 2); |
| 11542 |
define ('LOCK_SH', 1); |
| 11543 |
define ('LOCK_EX', 2); |
| 11544 |
define ('LOCK_UN', 3); |
| 11545 |
define ('LOCK_NB', 4); |
| 11546 |
|
| 11547 |
/** |
| 11548 |
* A connection with an external resource has been established. |
| 11549 |
* @link http://www.php.net/manual/en/stream.constants.php |
| 11550 |
*/ |
| 11551 |
define ('STREAM_NOTIFY_CONNECT', 2); |
| 11552 |
|
| 11553 |
/** |
| 11554 |
* Additional authorization is required to access the specified resource. |
| 11555 |
* Typical issued with severity level of |
| 11556 |
* STREAM_NOTIFY_SEVERITY_ERR. |
| 11557 |
* @link http://www.php.net/manual/en/stream.constants.php |
| 11558 |
*/ |
| 11559 |
define ('STREAM_NOTIFY_AUTH_REQUIRED', 3); |
| 11560 |
|
| 11561 |
/** |
| 11562 |
* Authorization has been completed (with or without success). |
| 11563 |
* @link http://www.php.net/manual/en/stream.constants.php |
| 11564 |
*/ |
| 11565 |
define ('STREAM_NOTIFY_AUTH_RESULT', 10); |
| 11566 |
|
| 11567 |
/** |
| 11568 |
* The mime-type of resource has been identified, |
| 11569 |
* refer to message for a description of the |
| 11570 |
* discovered type. |
| 11571 |
* @link http://www.php.net/manual/en/stream.constants.php |
| 11572 |
*/ |
| 11573 |
define ('STREAM_NOTIFY_MIME_TYPE_IS', 4); |
| 11574 |
|
| 11575 |
/** |
| 11576 |
* The size of the resource has been discovered. |
| 11577 |
* @link http://www.php.net/manual/en/stream.constants.php |
| 11578 |
*/ |
| 11579 |
define ('STREAM_NOTIFY_FILE_SIZE_IS', 5); |
| 11580 |
|
| 11581 |
/** |
| 11582 |
* The external resource has redirected the stream to an alternate |
| 11583 |
* location. Refer to message. |
| 11584 |
* @link http://www.php.net/manual/en/stream.constants.php |
| 11585 |
*/ |
| 11586 |
define ('STREAM_NOTIFY_REDIRECTED', 6); |
| 11587 |
|
| 11588 |
/** |
| 11589 |
* Indicates current progress of the stream transfer in |
| 11590 |
* bytes_transferred and possibly |
| 11591 |
* bytes_max as well. |
| 11592 |
* @link http://www.php.net/manual/en/stream.constants.php |
| 11593 |
*/ |
| 11594 |
define ('STREAM_NOTIFY_PROGRESS', 7); |
| 11595 |
|
| 11596 |
/** |
| 11597 |
* A generic error occurred on the stream, consult |
| 11598 |
* message and message_code |
| 11599 |
* for details. |
| 11600 |
* @link http://www.php.net/manual/en/stream.constants.php |
| 11601 |
*/ |
| 11602 |
define ('STREAM_NOTIFY_FAILURE', 9); |
| 11603 |
|
| 11604 |
/** |
| 11605 |
* There is no more data available on the stream. |
| 11606 |
* @link http://www.php.net/manual/en/stream.constants.php |
| 11607 |
*/ |
| 11608 |
define ('STREAM_NOTIFY_COMPLETED', 8); |
| 11609 |
|
| 11610 |
/** |
| 11611 |
* A remote address required for this stream has been resolved, or the resolution |
| 11612 |
* failed. See severity for an indication of which happened. |
| 11613 |
* @link http://www.php.net/manual/en/stream.constants.php |
| 11614 |
*/ |
| 11615 |
define ('STREAM_NOTIFY_RESOLVE', 1); |
| 11616 |
|
| 11617 |
/** |
| 11618 |
* Normal, non-error related, notification. |
| 11619 |
* @link http://www.php.net/manual/en/stream.constants.php |
| 11620 |
*/ |
| 11621 |
define ('STREAM_NOTIFY_SEVERITY_INFO', 0); |
| 11622 |
|
| 11623 |
/** |
| 11624 |
* Non critical error condition. Processing may continue. |
| 11625 |
* @link http://www.php.net/manual/en/stream.constants.php |
| 11626 |
*/ |
| 11627 |
define ('STREAM_NOTIFY_SEVERITY_WARN', 1); |
| 11628 |
|
| 11629 |
/** |
| 11630 |
* A critical error occurred. Processing cannot continue. |
| 11631 |
* @link http://www.php.net/manual/en/stream.constants.php |
| 11632 |
*/ |
| 11633 |
define ('STREAM_NOTIFY_SEVERITY_ERR', 2); |
| 11634 |
|
| 11635 |
/** |
| 11636 |
* Used with stream_filter_append and |
| 11637 |
* stream_filter_prepend to indicate |
| 11638 |
* that the specified filter should only be applied when |
| 11639 |
* reading |
| 11640 |
* @link http://www.php.net/manual/en/stream.constants.php |
| 11641 |
*/ |
| 11642 |
define ('STREAM_FILTER_READ', 1); |
| 11643 |
|
| 11644 |
/** |
| 11645 |
* Used with stream_filter_append and |
| 11646 |
* stream_filter_prepend to indicate |
| 11647 |
* that the specified filter should only be applied when |
| 11648 |
* writing |
| 11649 |
* @link http://www.php.net/manual/en/stream.constants.php |
| 11650 |
*/ |
| 11651 |
define ('STREAM_FILTER_WRITE', 2); |
| 11652 |
|
| 11653 |
/** |
| 11654 |
* This constant is equivalent to |
| 11655 |
* STREAM_FILTER_READ | STREAM_FILTER_WRITE |
| 11656 |
* @link http://www.php.net/manual/en/stream.constants.php |
| 11657 |
*/ |
| 11658 |
define ('STREAM_FILTER_ALL', 3); |
| 11659 |
|
| 11660 |
/** |
| 11661 |
* Client socket opened with stream_socket_client |
| 11662 |
* should remain persistent between page loads. |
| 11663 |
* @link http://www.php.net/manual/en/stream.constants.php |
| 11664 |
*/ |
| 11665 |
define ('STREAM_CLIENT_PERSISTENT', 1); |
| 11666 |
|
| 11667 |
/** |
| 11668 |
* Open client socket asynchronously. This option must be used |
| 11669 |
* together with the STREAM_CLIENT_CONNECT flag. |
| 11670 |
* Used with stream_socket_client. |
| 11671 |
* @link http://www.php.net/manual/en/stream.constants.php |
| 11672 |
*/ |
| 11673 |
define ('STREAM_CLIENT_ASYNC_CONNECT', 2); |
| 11674 |
|
| 11675 |
/** |
| 11676 |
* Open client socket connection. Client sockets should always |
| 11677 |
* include this flag. Used with stream_socket_client. |
| 11678 |
* @link http://www.php.net/manual/en/stream.constants.php |
| 11679 |
*/ |
| 11680 |
define ('STREAM_CLIENT_CONNECT', 4); |
| 11681 |
define ('STREAM_CRYPTO_METHOD_ANY_CLIENT', 63); |
| 11682 |
define ('STREAM_CRYPTO_METHOD_SSLv2_CLIENT', 3); |
| 11683 |
define ('STREAM_CRYPTO_METHOD_SSLv3_CLIENT', 5); |
| 11684 |
define ('STREAM_CRYPTO_METHOD_SSLv23_CLIENT', 7); |
| 11685 |
define ('STREAM_CRYPTO_METHOD_TLS_CLIENT', 57); |
| 11686 |
define ('STREAM_CRYPTO_METHOD_TLSv1_0_CLIENT', 9); |
| 11687 |
define ('STREAM_CRYPTO_METHOD_TLSv1_1_CLIENT', 17); |
| 11688 |
define ('STREAM_CRYPTO_METHOD_TLSv1_2_CLIENT', 33); |
| 11689 |
define ('STREAM_CRYPTO_METHOD_ANY_SERVER', 62); |
| 11690 |
define ('STREAM_CRYPTO_METHOD_SSLv2_SERVER', 2); |
| 11691 |
define ('STREAM_CRYPTO_METHOD_SSLv3_SERVER', 4); |
| 11692 |
define ('STREAM_CRYPTO_METHOD_SSLv23_SERVER', 6); |
| 11693 |
define ('STREAM_CRYPTO_METHOD_TLS_SERVER', 56); |
| 11694 |
define ('STREAM_CRYPTO_METHOD_TLSv1_0_SERVER', 8); |
| 11695 |
define ('STREAM_CRYPTO_METHOD_TLSv1_1_SERVER', 16); |
| 11696 |
define ('STREAM_CRYPTO_METHOD_TLSv1_2_SERVER', 32); |
| 11697 |
|
| 11698 |
/** |
| 11699 |
* Used with stream_socket_shutdown to disable |
| 11700 |
* further receptions. Added in PHP 5.2.1. |
| 11701 |
* @link http://www.php.net/manual/en/stream.constants.php |
| 11702 |
*/ |
| 11703 |
define ('STREAM_SHUT_RD', 0); |
| 11704 |
|
| 11705 |
/** |
| 11706 |
* Used with stream_socket_shutdown to disable |
| 11707 |
* further transmissions. Added in PHP 5.2.1. |
| 11708 |
* @link http://www.php.net/manual/en/stream.constants.php |
| 11709 |
*/ |
| 11710 |
define ('STREAM_SHUT_WR', 1); |
| 11711 |
|
| 11712 |
/** |
| 11713 |
* Used with stream_socket_shutdown to disable |
| 11714 |
* further receptions and transmissions. Added in PHP 5.2.1. |
| 11715 |
* @link http://www.php.net/manual/en/stream.constants.php |
| 11716 |
*/ |
| 11717 |
define ('STREAM_SHUT_RDWR', 2); |
| 11718 |
|
| 11719 |
/** |
| 11720 |
* Internet Protocol Version 4 (IPv4). |
| 11721 |
* @link http://www.php.net/manual/en/stream.constants.php |
| 11722 |
*/ |
| 11723 |
define ('STREAM_PF_INET', 2); |
| 11724 |
|
| 11725 |
/** |
| 11726 |
* Internet Protocol Version 6 (IPv6). |
| 11727 |
* @link http://www.php.net/manual/en/stream.constants.php |
| 11728 |
*/ |
| 11729 |
define ('STREAM_PF_INET6', 10); |
| 11730 |
|
| 11731 |
/** |
| 11732 |
* Unix system internal protocols. |
| 11733 |
* @link http://www.php.net/manual/en/stream.constants.php |
| 11734 |
*/ |
| 11735 |
define ('STREAM_PF_UNIX', 1); |
| 11736 |
|
| 11737 |
/** |
| 11738 |
* Provides a IP socket. |
| 11739 |
* @link http://www.php.net/manual/en/stream.constants.php |
| 11740 |
*/ |
| 11741 |
define ('STREAM_IPPROTO_IP', 0); |
| 11742 |
|
| 11743 |
/** |
| 11744 |
* Provides a TCP socket. |
| 11745 |
* @link http://www.php.net/manual/en/stream.constants.php |
| 11746 |
*/ |
| 11747 |
define ('STREAM_IPPROTO_TCP', 6); |
| 11748 |
|
| 11749 |
/** |
| 11750 |
* Provides a UDP socket. |
| 11751 |
* @link http://www.php.net/manual/en/stream.constants.php |
| 11752 |
*/ |
| 11753 |
define ('STREAM_IPPROTO_UDP', 17); |
| 11754 |
|
| 11755 |
/** |
| 11756 |
* Provides a ICMP socket. |
| 11757 |
* @link http://www.php.net/manual/en/stream.constants.php |
| 11758 |
*/ |
| 11759 |
define ('STREAM_IPPROTO_ICMP', 1); |
| 11760 |
|
| 11761 |
/** |
| 11762 |
* Provides a RAW socket. |
| 11763 |
* @link http://www.php.net/manual/en/stream.constants.php |
| 11764 |
*/ |
| 11765 |
define ('STREAM_IPPROTO_RAW', 255); |
| 11766 |
|
| 11767 |
/** |
| 11768 |
* Provides sequenced, two-way byte streams with a transmission mechanism |
| 11769 |
* for out-of-band data (TCP, for example). |
| 11770 |
* @link http://www.php.net/manual/en/stream.constants.php |
| 11771 |
*/ |
| 11772 |
define ('STREAM_SOCK_STREAM', 1); |
| 11773 |
|
| 11774 |
/** |
| 11775 |
* Provides datagrams, which are connectionless messages (UDP, for |
| 11776 |
* example). |
| 11777 |
* @link http://www.php.net/manual/en/stream.constants.php |
| 11778 |
*/ |
| 11779 |
define ('STREAM_SOCK_DGRAM', 2); |
| 11780 |
|
| 11781 |
/** |
| 11782 |
* Provides a raw socket, which provides access to internal network |
| 11783 |
* protocols and interfaces. Usually this type of socket is just available |
| 11784 |
* to the root user. |
| 11785 |
* @link http://www.php.net/manual/en/stream.constants.php |
| 11786 |
*/ |
| 11787 |
define ('STREAM_SOCK_RAW', 3); |
| 11788 |
|
| 11789 |
/** |
| 11790 |
* Provides a sequenced packet stream socket. |
| 11791 |
* @link http://www.php.net/manual/en/stream.constants.php |
| 11792 |
*/ |
| 11793 |
define ('STREAM_SOCK_SEQPACKET', 5); |
| 11794 |
|
| 11795 |
/** |
| 11796 |
* Provides a RDM (Reliably-delivered messages) socket. |
| 11797 |
* @link http://www.php.net/manual/en/stream.constants.php |
| 11798 |
*/ |
| 11799 |
define ('STREAM_SOCK_RDM', 4); |
| 11800 |
define ('STREAM_PEEK', 2); |
| 11801 |
define ('STREAM_OOB', 1); |
| 11802 |
|
| 11803 |
/** |
| 11804 |
* Tells a stream created with stream_socket_server |
| 11805 |
* to bind to the specified target. Server sockets should always include this flag. |
| 11806 |
* @link http://www.php.net/manual/en/stream.constants.php |
| 11807 |
*/ |
| 11808 |
define ('STREAM_SERVER_BIND', 4); |
| 11809 |
|
| 11810 |
/** |
| 11811 |
* Tells a stream created with stream_socket_server |
| 11812 |
* and bound using the STREAM_SERVER_BIND flag to start |
| 11813 |
* listening on the socket. Connection-orientated transports (such as TCP) |
| 11814 |
* must use this flag, otherwise the server socket will not be enabled. |
| 11815 |
* Using this flag for connect-less transports (such as UDP) is an error. |
| 11816 |
* @link http://www.php.net/manual/en/stream.constants.php |
| 11817 |
*/ |
| 11818 |
define ('STREAM_SERVER_LISTEN', 8); |
| 11819 |
|
| 11820 |
/** |
| 11821 |
* Search for filename in |
| 11822 |
* include_path (since PHP 5). |
| 11823 |
* @link http://www.php.net/manual/en/filesystem.constants.php |
| 11824 |
*/ |
| 11825 |
define ('FILE_USE_INCLUDE_PATH', 1); |
| 11826 |
|
| 11827 |
/** |
| 11828 |
* Strip EOL characters (since PHP 5). |
| 11829 |
* @link http://www.php.net/manual/en/filesystem.constants.php |
| 11830 |
*/ |
| 11831 |
define ('FILE_IGNORE_NEW_LINES', 2); |
| 11832 |
|
| 11833 |
/** |
| 11834 |
* Skip empty lines (since PHP 5). |
| 11835 |
* @link http://www.php.net/manual/en/filesystem.constants.php |
| 11836 |
*/ |
| 11837 |
define ('FILE_SKIP_EMPTY_LINES', 4); |
| 11838 |
|
| 11839 |
/** |
| 11840 |
* Append content to existing file. |
| 11841 |
* @link http://www.php.net/manual/en/filesystem.constants.php |
| 11842 |
*/ |
| 11843 |
define ('FILE_APPEND', 8); |
| 11844 |
define ('FILE_NO_DEFAULT_CONTEXT', 16); |
| 11845 |
|
| 11846 |
/** |
| 11847 |
* <p> |
| 11848 |
* Text mode (since PHP 5.2.7). |
| 11849 |
* |
| 11850 |
* <p> |
| 11851 |
* This constant has no effect, and is only available for |
| 11852 |
* forward compatibility. |
| 11853 |
* </p> |
| 11854 |
* |
| 11855 |
* </p> |
| 11856 |
* @link http://www.php.net/manual/en/filesystem.constants.php |
| 11857 |
*/ |
| 11858 |
define ('FILE_TEXT', 0); |
| 11859 |
|
| 11860 |
/** |
| 11861 |
* <p> |
| 11862 |
* Binary mode (since PHP 5.2.7). |
| 11863 |
* |
| 11864 |
* <p> |
| 11865 |
* This constant has no effect, and is only available for |
| 11866 |
* forward compatibility. |
| 11867 |
* </p> |
| 11868 |
* |
| 11869 |
* </p> |
| 11870 |
* @link http://www.php.net/manual/en/filesystem.constants.php |
| 11871 |
*/ |
| 11872 |
define ('FILE_BINARY', 0); |
| 11873 |
|
| 11874 |
/** |
| 11875 |
* Disable backslash escaping. |
| 11876 |
* @link http://www.php.net/manual/en/filesystem.constants.php |
| 11877 |
*/ |
| 11878 |
define ('FNM_NOESCAPE', 2); |
| 11879 |
|
| 11880 |
/** |
| 11881 |
* Slash in string only matches slash in the given pattern. |
| 11882 |
* @link http://www.php.net/manual/en/filesystem.constants.php |
| 11883 |
*/ |
| 11884 |
define ('FNM_PATHNAME', 1); |
| 11885 |
|
| 11886 |
/** |
| 11887 |
* Leading period in string must be exactly matched by period in the given pattern. |
| 11888 |
* @link http://www.php.net/manual/en/filesystem.constants.php |
| 11889 |
*/ |
| 11890 |
define ('FNM_PERIOD', 4); |
| 11891 |
|
| 11892 |
/** |
| 11893 |
* Caseless match. Part of the GNU extension. |
| 11894 |
* @link http://www.php.net/manual/en/filesystem.constants.php |
| 11895 |
*/ |
| 11896 |
define ('FNM_CASEFOLD', 16); |
| 11897 |
|
| 11898 |
/** |
| 11899 |
* Return Code indicating that the |
| 11900 |
* userspace filter returned buckets in $out. |
| 11901 |
* @link http://www.php.net/manual/en/stream.constants.php |
| 11902 |
*/ |
| 11903 |
define ('PSFS_PASS_ON', 2); |
| 11904 |
|
| 11905 |
/** |
| 11906 |
* Return Code indicating that the |
| 11907 |
* userspace filter did not return buckets in $out |
| 11908 |
* (i.e. No data available). |
| 11909 |
* @link http://www.php.net/manual/en/stream.constants.php |
| 11910 |
*/ |
| 11911 |
define ('PSFS_FEED_ME', 1); |
| 11912 |
|
| 11913 |
/** |
| 11914 |
* Return Code indicating that the |
| 11915 |
* userspace filter encountered an unrecoverable error |
| 11916 |
* (i.e. Invalid data received). |
| 11917 |
* @link http://www.php.net/manual/en/stream.constants.php |
| 11918 |
*/ |
| 11919 |
define ('PSFS_ERR_FATAL', 0); |
| 11920 |
|
| 11921 |
/** |
| 11922 |
* Regular read/write. |
| 11923 |
* @link http://www.php.net/manual/en/stream.constants.php |
| 11924 |
*/ |
| 11925 |
define ('PSFS_FLAG_NORMAL', 0); |
| 11926 |
|
| 11927 |
/** |
| 11928 |
* An incremental flush. |
| 11929 |
* @link http://www.php.net/manual/en/stream.constants.php |
| 11930 |
*/ |
| 11931 |
define ('PSFS_FLAG_FLUSH_INC', 1); |
| 11932 |
|
| 11933 |
/** |
| 11934 |
* Final flush prior to closing. |
| 11935 |
* @link http://www.php.net/manual/en/stream.constants.php |
| 11936 |
*/ |
| 11937 |
define ('PSFS_FLAG_FLUSH_CLOSE', 2); |
| 11938 |
|
| 11939 |
/** |
| 11940 |
* <p> |
| 11941 |
* The default algorithm to use for hashing if no algorithm is provided. |
| 11942 |
* This may change in newer PHP releases when newer, stronger hashing |
| 11943 |
* algorithms are supported. |
| 11944 |
* </p> |
| 11945 |
* <p> |
| 11946 |
* It is worth noting that over time this constant can (and likely will) |
| 11947 |
* change. Therefore you should be aware that the length of the resulting |
| 11948 |
* hash can change. Therefore, if you use PASSWORD_DEFAULT |
| 11949 |
* you should store the resulting hash in a way that can store more than 60 |
| 11950 |
* characters (255 is the recomended width). |
| 11951 |
* </p> |
| 11952 |
* <p> |
| 11953 |
* Values for this constant: |
| 11954 |
* </p> |
| 11955 |
* |
| 11956 |
* |
| 11957 |
* |
| 11958 |
* PHP 5.5.0 - PASSWORD_BCRYPT |
| 11959 |
* @link http://www.php.net/manual/en/password.constants.php |
| 11960 |
*/ |
| 11961 |
define ('PASSWORD_DEFAULT', 1); |
| 11962 |
|
| 11963 |
/** |
| 11964 |
* <p> |
| 11965 |
* PASSWORD_BCRYPT is used to create new password |
| 11966 |
* hashes using the CRYPT_BLOWFISH algorithm. |
| 11967 |
* </p> |
| 11968 |
* <p> |
| 11969 |
* This will always result in a hash using the "$2y$" crypt format, |
| 11970 |
* which is always 60 characters wide. |
| 11971 |
* </p> |
| 11972 |
* <p> |
| 11973 |
* Supported Options: |
| 11974 |
* </p> |
| 11975 |
* |
| 11976 |
* |
| 11977 |
* <p> |
| 11978 |
* salt - to manually provide a salt to use when hashing the password. |
| 11979 |
* Note that this will override and prevent a salt from being automatically generated. |
| 11980 |
* </p> |
| 11981 |
* <p> |
| 11982 |
* If omitted, a random salt will be generated by password_hash for |
| 11983 |
* each password hashed. This is the intended mode of operation. |
| 11984 |
* </p> |
| 11985 |
* @link http://www.php.net/manual/en/password.constants.php |
| 11986 |
*/ |
| 11987 |
define ('PASSWORD_BCRYPT', 1); |
| 11988 |
define ('PASSWORD_BCRYPT_DEFAULT_COST', 10); |
| 11989 |
define ('ABDAY_1', 131072); |
| 11990 |
define ('ABDAY_2', 131073); |
| 11991 |
define ('ABDAY_3', 131074); |
| 11992 |
define ('ABDAY_4', 131075); |
| 11993 |
define ('ABDAY_5', 131076); |
| 11994 |
define ('ABDAY_6', 131077); |
| 11995 |
define ('ABDAY_7', 131078); |
| 11996 |
define ('DAY_1', 131079); |
| 11997 |
define ('DAY_2', 131080); |
| 11998 |
define ('DAY_3', 131081); |
| 11999 |
define ('DAY_4', 131082); |
| 12000 |
define ('DAY_5', 131083); |
| 12001 |
define ('DAY_6', 131084); |
| 12002 |
define ('DAY_7', 131085); |
| 12003 |
define ('ABMON_1', 131086); |
| 12004 |
define ('ABMON_2', 131087); |
| 12005 |
define ('ABMON_3', 131088); |
| 12006 |
define ('ABMON_4', 131089); |
| 12007 |
define ('ABMON_5', 131090); |
| 12008 |
define ('ABMON_6', 131091); |
| 12009 |
define ('ABMON_7', 131092); |
| 12010 |
define ('ABMON_8', 131093); |
| 12011 |
define ('ABMON_9', 131094); |
| 12012 |
define ('ABMON_10', 131095); |
| 12013 |
define ('ABMON_11', 131096); |
| 12014 |
define ('ABMON_12', 131097); |
| 12015 |
define ('MON_1', 131098); |
| 12016 |
define ('MON_2', 131099); |
| 12017 |
define ('MON_3', 131100); |
| 12018 |
define ('MON_4', 131101); |
| 12019 |
define ('MON_5', 131102); |
| 12020 |
define ('MON_6', 131103); |
| 12021 |
define ('MON_7', 131104); |
| 12022 |
define ('MON_8', 131105); |
| 12023 |
define ('MON_9', 131106); |
| 12024 |
define ('MON_10', 131107); |
| 12025 |
define ('MON_11', 131108); |
| 12026 |
define ('MON_12', 131109); |
| 12027 |
define ('AM_STR', 131110); |
| 12028 |
define ('PM_STR', 131111); |
| 12029 |
define ('D_T_FMT', 131112); |
| 12030 |
define ('D_FMT', 131113); |
| 12031 |
define ('T_FMT', 131114); |
| 12032 |
define ('T_FMT_AMPM', 131115); |
| 12033 |
define ('ERA', 131116); |
| 12034 |
define ('ERA_D_T_FMT', 131120); |
| 12035 |
define ('ERA_D_FMT', 131118); |
| 12036 |
define ('ERA_T_FMT', 131121); |
| 12037 |
define ('ALT_DIGITS', 131119); |
| 12038 |
define ('CRNCYSTR', 262159); |
| 12039 |
define ('RADIXCHAR', 65536); |
| 12040 |
define ('THOUSEP', 65537); |
| 12041 |
define ('YESEXPR', 327680); |
| 12042 |
define ('NOEXPR', 327681); |
| 12043 |
define ('CODESET', 14); |
| 12044 |
define ('CRYPT_SALT_LENGTH', 123); |
| 12045 |
define ('CRYPT_STD_DES', 1); |
| 12046 |
define ('CRYPT_EXT_DES', 1); |
| 12047 |
define ('CRYPT_MD5', 1); |
| 12048 |
define ('CRYPT_BLOWFISH', 1); |
| 12049 |
define ('CRYPT_SHA256', 1); |
| 12050 |
define ('CRYPT_SHA512', 1); |
| 12051 |
define ('DIRECTORY_SEPARATOR', "/"); |
| 12052 |
|
| 12053 |
/** |
| 12054 |
* Available since PHP 4.3.0. Semicolon on Windows, colon otherwise. |
| 12055 |
* @link http://www.php.net/manual/en/dir.constants.php |
| 12056 |
*/ |
| 12057 |
define ('PATH_SEPARATOR', ":"); |
| 12058 |
|
| 12059 |
/** |
| 12060 |
* Available since PHP 5.4.0. |
| 12061 |
* @link http://www.php.net/manual/en/dir.constants.php |
| 12062 |
*/ |
| 12063 |
define ('SCANDIR_SORT_ASCENDING', 0); |
| 12064 |
|
| 12065 |
/** |
| 12066 |
* Available since PHP 5.4.0. |
| 12067 |
* @link http://www.php.net/manual/en/dir.constants.php |
| 12068 |
*/ |
| 12069 |
define ('SCANDIR_SORT_DESCENDING', 1); |
| 12070 |
|
| 12071 |
/** |
| 12072 |
* Available since PHP 5.4.0. |
| 12073 |
* @link http://www.php.net/manual/en/dir.constants.php |
| 12074 |
*/ |
| 12075 |
define ('SCANDIR_SORT_NONE', 2); |
| 12076 |
define ('GLOB_BRACE', 1024); |
| 12077 |
define ('GLOB_MARK', 2); |
| 12078 |
define ('GLOB_NOSORT', 4); |
| 12079 |
define ('GLOB_NOCHECK', 16); |
| 12080 |
define ('GLOB_NOESCAPE', 64); |
| 12081 |
define ('GLOB_ERR', 1); |
| 12082 |
define ('GLOB_ONLYDIR', 8192); |
| 12083 |
define ('GLOB_AVAILABLE_FLAGS', 9303); |
| 12084 |
|
| 12085 |
/** |
| 12086 |
* system is unusable |
| 12087 |
* @link http://www.php.net/manual/en/network.constants.php |
| 12088 |
*/ |
| 12089 |
define ('LOG_EMERG', 0); |
| 12090 |
|
| 12091 |
/** |
| 12092 |
* action must be taken immediately |
| 12093 |
* @link http://www.php.net/manual/en/network.constants.php |
| 12094 |
*/ |
| 12095 |
define ('LOG_ALERT', 1); |
| 12096 |
|
| 12097 |
/** |
| 12098 |
* critical conditions |
| 12099 |
* @link http://www.php.net/manual/en/network.constants.php |
| 12100 |
*/ |
| 12101 |
define ('LOG_CRIT', 2); |
| 12102 |
|
| 12103 |
/** |
| 12104 |
* error conditions |
| 12105 |
* @link http://www.php.net/manual/en/network.constants.php |
| 12106 |
*/ |
| 12107 |
define ('LOG_ERR', 3); |
| 12108 |
|
| 12109 |
/** |
| 12110 |
* warning conditions |
| 12111 |
* @link http://www.php.net/manual/en/network.constants.php |
| 12112 |
*/ |
| 12113 |
define ('LOG_WARNING', 4); |
| 12114 |
|
| 12115 |
/** |
| 12116 |
* normal, but significant, condition |
| 12117 |
* @link http://www.php.net/manual/en/network.constants.php |
| 12118 |
*/ |
| 12119 |
define ('LOG_NOTICE', 5); |
| 12120 |
|
| 12121 |
/** |
| 12122 |
* informational message |
| 12123 |
* @link http://www.php.net/manual/en/network.constants.php |
| 12124 |
*/ |
| 12125 |
define ('LOG_INFO', 6); |
| 12126 |
|
| 12127 |
/** |
| 12128 |
* debug-level message |
| 12129 |
* @link http://www.php.net/manual/en/network.constants.php |
| 12130 |
*/ |
| 12131 |
define ('LOG_DEBUG', 7); |
| 12132 |
|
| 12133 |
/** |
| 12134 |
* kernel messages |
| 12135 |
* @link http://www.php.net/manual/en/network.constants.php |
| 12136 |
*/ |
| 12137 |
define ('LOG_KERN', 0); |
| 12138 |
|
| 12139 |
/** |
| 12140 |
* generic user-level messages |
| 12141 |
* @link http://www.php.net/manual/en/network.constants.php |
| 12142 |
*/ |
| 12143 |
define ('LOG_USER', 8); |
| 12144 |
|
| 12145 |
/** |
| 12146 |
* mail subsystem |
| 12147 |
* @link http://www.php.net/manual/en/network.constants.php |
| 12148 |
*/ |
| 12149 |
define ('LOG_MAIL', 16); |
| 12150 |
|
| 12151 |
/** |
| 12152 |
* other system daemons |
| 12153 |
* @link http://www.php.net/manual/en/network.constants.php |
| 12154 |
*/ |
| 12155 |
define ('LOG_DAEMON', 24); |
| 12156 |
|
| 12157 |
/** |
| 12158 |
* security/authorization messages (use LOG_AUTHPRIV instead |
| 12159 |
* in systems where that constant is defined) |
| 12160 |
* @link http://www.php.net/manual/en/network.constants.php |
| 12161 |
*/ |
| 12162 |
define ('LOG_AUTH', 32); |
| 12163 |
|
| 12164 |
/** |
| 12165 |
* messages generated internally by syslogd |
| 12166 |
* @link http://www.php.net/manual/en/network.constants.php |
| 12167 |
*/ |
| 12168 |
define ('LOG_SYSLOG', 40); |
| 12169 |
|
| 12170 |
/** |
| 12171 |
* line printer subsystem |
| 12172 |
* @link http://www.php.net/manual/en/network.constants.php |
| 12173 |
*/ |
| 12174 |
define ('LOG_LPR', 48); |
| 12175 |
|
| 12176 |
/** |
| 12177 |
* USENET news subsystem |
| 12178 |
* @link http://www.php.net/manual/en/network.constants.php |
| 12179 |
*/ |
| 12180 |
define ('LOG_NEWS', 56); |
| 12181 |
|
| 12182 |
/** |
| 12183 |
* UUCP subsystem |
| 12184 |
* @link http://www.php.net/manual/en/network.constants.php |
| 12185 |
*/ |
| 12186 |
define ('LOG_UUCP', 64); |
| 12187 |
|
| 12188 |
/** |
| 12189 |
* clock daemon (cron and at) |
| 12190 |
* @link http://www.php.net/manual/en/network.constants.php |
| 12191 |
*/ |
| 12192 |
define ('LOG_CRON', 72); |
| 12193 |
|
| 12194 |
/** |
| 12195 |
* security/authorization messages (private) |
| 12196 |
* @link http://www.php.net/manual/en/network.constants.php |
| 12197 |
*/ |
| 12198 |
define ('LOG_AUTHPRIV', 80); |
| 12199 |
define ('LOG_LOCAL0', 128); |
| 12200 |
define ('LOG_LOCAL1', 136); |
| 12201 |
define ('LOG_LOCAL2', 144); |
| 12202 |
define ('LOG_LOCAL3', 152); |
| 12203 |
define ('LOG_LOCAL4', 160); |
| 12204 |
define ('LOG_LOCAL5', 168); |
| 12205 |
define ('LOG_LOCAL6', 176); |
| 12206 |
define ('LOG_LOCAL7', 184); |
| 12207 |
|
| 12208 |
/** |
| 12209 |
* include PID with each message |
| 12210 |
* @link http://www.php.net/manual/en/network.constants.php |
| 12211 |
*/ |
| 12212 |
define ('LOG_PID', 1); |
| 12213 |
|
| 12214 |
/** |
| 12215 |
* if there is an error while sending data to the system logger, |
| 12216 |
* write directly to the system console |
| 12217 |
* @link http://www.php.net/manual/en/network.constants.php |
| 12218 |
*/ |
| 12219 |
define ('LOG_CONS', 2); |
| 12220 |
|
| 12221 |
/** |
| 12222 |
* (default) delay opening the connection until the first |
| 12223 |
* message is logged |
| 12224 |
* @link http://www.php.net/manual/en/network.constants.php |
| 12225 |
*/ |
| 12226 |
define ('LOG_ODELAY', 4); |
| 12227 |
|
| 12228 |
/** |
| 12229 |
* open the connection to the logger immediately |
| 12230 |
* @link http://www.php.net/manual/en/network.constants.php |
| 12231 |
*/ |
| 12232 |
define ('LOG_NDELAY', 8); |
| 12233 |
define ('LOG_NOWAIT', 16); |
| 12234 |
|
| 12235 |
/** |
| 12236 |
* print log message also to standard error |
| 12237 |
* @link http://www.php.net/manual/en/network.constants.php |
| 12238 |
*/ |
| 12239 |
define ('LOG_PERROR', 32); |
| 12240 |
define ('EXTR_OVERWRITE', 0); |
| 12241 |
define ('EXTR_SKIP', 1); |
| 12242 |
define ('EXTR_PREFIX_SAME', 2); |
| 12243 |
define ('EXTR_PREFIX_ALL', 3); |
| 12244 |
define ('EXTR_PREFIX_INVALID', 4); |
| 12245 |
define ('EXTR_PREFIX_IF_EXISTS', 5); |
| 12246 |
define ('EXTR_IF_EXISTS', 6); |
| 12247 |
define ('EXTR_REFS', 256); |
| 12248 |
|
| 12249 |
/** |
| 12250 |
* SORT_ASC is used with |
| 12251 |
* array_multisort to sort in ascending order. |
| 12252 |
* @link http://www.php.net/manual/en/array.constants.php |
| 12253 |
*/ |
| 12254 |
define ('SORT_ASC', 4); |
| 12255 |
|
| 12256 |
/** |
| 12257 |
* SORT_DESC is used with |
| 12258 |
* array_multisort to sort in descending order. |
| 12259 |
* @link http://www.php.net/manual/en/array.constants.php |
| 12260 |
*/ |
| 12261 |
define ('SORT_DESC', 3); |
| 12262 |
|
| 12263 |
/** |
| 12264 |
* SORT_REGULAR is used to compare items normally. |
| 12265 |
* @link http://www.php.net/manual/en/array.constants.php |
| 12266 |
*/ |
| 12267 |
define ('SORT_REGULAR', 0); |
| 12268 |
|
| 12269 |
/** |
| 12270 |
* SORT_NUMERIC is used to compare items numerically. |
| 12271 |
* @link http://www.php.net/manual/en/array.constants.php |
| 12272 |
*/ |
| 12273 |
define ('SORT_NUMERIC', 1); |
| 12274 |
|
| 12275 |
/** |
| 12276 |
* SORT_STRING is used to compare items as strings. |
| 12277 |
* @link http://www.php.net/manual/en/array.constants.php |
| 12278 |
*/ |
| 12279 |
define ('SORT_STRING', 2); |
| 12280 |
|
| 12281 |
/** |
| 12282 |
* SORT_LOCALE_STRING is used to compare items as |
| 12283 |
* strings, based on the current locale. Added in PHP 4.4.0 and 5.0.2. |
| 12284 |
* @link http://www.php.net/manual/en/array.constants.php |
| 12285 |
*/ |
| 12286 |
define ('SORT_LOCALE_STRING', 5); |
| 12287 |
|
| 12288 |
/** |
| 12289 |
* SORT_NATURAL is used to compare items as |
| 12290 |
* strings using "natural ordering" like natsort. Added in PHP 5.4.0. |
| 12291 |
* @link http://www.php.net/manual/en/array.constants.php |
| 12292 |
*/ |
| 12293 |
define ('SORT_NATURAL', 6); |
| 12294 |
|
| 12295 |
/** |
| 12296 |
* SORT_FLAG_CASE can be combined |
| 12297 |
* (bitwise OR) with |
| 12298 |
* SORT_STRING or |
| 12299 |
* SORT_NATURAL to sort strings case-insensitively. Added in PHP 5.4.0. |
| 12300 |
* @link http://www.php.net/manual/en/array.constants.php |
| 12301 |
*/ |
| 12302 |
define ('SORT_FLAG_CASE', 8); |
| 12303 |
|
| 12304 |
/** |
| 12305 |
* CASE_LOWER is used with |
| 12306 |
* array_change_key_case and is used to convert array |
| 12307 |
* keys to lower case. This is also the default case for |
| 12308 |
* array_change_key_case. |
| 12309 |
* @link http://www.php.net/manual/en/array.constants.php |
| 12310 |
*/ |
| 12311 |
define ('CASE_LOWER', 0); |
| 12312 |
|
| 12313 |
/** |
| 12314 |
* CASE_UPPER is used with |
| 12315 |
* array_change_key_case and is used to convert array |
| 12316 |
* keys to upper case. |
| 12317 |
* @link http://www.php.net/manual/en/array.constants.php |
| 12318 |
*/ |
| 12319 |
define ('CASE_UPPER', 1); |
| 12320 |
define ('COUNT_NORMAL', 0); |
| 12321 |
define ('COUNT_RECURSIVE', 1); |
| 12322 |
|
| 12323 |
/** |
| 12324 |
* ARRAY_FILTER_USE_BOTH is used with |
| 12325 |
* array_filter to pass both value and key to the given callback function. |
| 12326 |
* Added in PHP 5.6.0. |
| 12327 |
* @link http://www.php.net/manual/en/array.constants.php |
| 12328 |
*/ |
| 12329 |
define ('ARRAY_FILTER_USE_BOTH', 1); |
| 12330 |
|
| 12331 |
/** |
| 12332 |
* ARRAY_FILTER_USE_KEY is used with |
| 12333 |
* array_filter to pass each key as the first argument to the given callback function. |
| 12334 |
* Added in PHP 5.6.0. |
| 12335 |
* @link http://www.php.net/manual/en/array.constants.php |
| 12336 |
*/ |
| 12337 |
define ('ARRAY_FILTER_USE_KEY', 2); |
| 12338 |
define ('ASSERT_ACTIVE', 1); |
| 12339 |
define ('ASSERT_CALLBACK', 2); |
| 12340 |
define ('ASSERT_BAIL', 3); |
| 12341 |
define ('ASSERT_WARNING', 4); |
| 12342 |
define ('ASSERT_QUIET_EVAL', 5); |
| 12343 |
|
| 12344 |
/** |
| 12345 |
* Flag indicating if the stream |
| 12346 |
* used the include path. |
| 12347 |
* @link http://www.php.net/manual/en/stream.constants.php |
| 12348 |
*/ |
| 12349 |
define ('STREAM_USE_PATH', 1); |
| 12350 |
define ('STREAM_IGNORE_URL', 2); |
| 12351 |
|
| 12352 |
/** |
| 12353 |
* Flag indicating if the wrapper |
| 12354 |
* is responsible for raising errors using trigger_error |
| 12355 |
* during opening of the stream. If this flag is not set, you |
| 12356 |
* should not raise any errors. |
| 12357 |
* @link http://www.php.net/manual/en/stream.constants.php |
| 12358 |
*/ |
| 12359 |
define ('STREAM_REPORT_ERRORS', 8); |
| 12360 |
|
| 12361 |
/** |
| 12362 |
* This flag is useful when your extension really must be able to randomly |
| 12363 |
* seek around in a stream. Some streams may not be seekable in their |
| 12364 |
* native form, so this flag asks the streams API to check to see if the |
| 12365 |
* stream does support seeking. If it does not, it will copy the stream |
| 12366 |
* into temporary storage (which may be a temporary file or a memory |
| 12367 |
* stream) which does support seeking. |
| 12368 |
* Please note that this flag is not useful when you want to seek the |
| 12369 |
* stream and write to it, because the stream you are accessing might |
| 12370 |
* not be bound to the actual resource you requested. |
| 12371 |
* |
| 12372 |
* |
| 12373 |
* |
| 12374 |
* If the requested resource is network based, this flag will cause the |
| 12375 |
* opener to block until the whole contents have been downloaded. |
| 12376 |
* @link http://www.php.net/manual/en/internals2.ze1.streams.constants.php |
| 12377 |
*/ |
| 12378 |
define ('STREAM_MUST_SEEK', 16); |
| 12379 |
define ('STREAM_URL_STAT_LINK', 1); |
| 12380 |
define ('STREAM_URL_STAT_QUIET', 2); |
| 12381 |
define ('STREAM_MKDIR_RECURSIVE', 1); |
| 12382 |
define ('STREAM_IS_URL', 1); |
| 12383 |
define ('STREAM_OPTION_BLOCKING', 1); |
| 12384 |
define ('STREAM_OPTION_READ_TIMEOUT', 4); |
| 12385 |
define ('STREAM_OPTION_READ_BUFFER', 2); |
| 12386 |
define ('STREAM_OPTION_WRITE_BUFFER', 3); |
| 12387 |
define ('STREAM_BUFFER_NONE', 0); |
| 12388 |
define ('STREAM_BUFFER_LINE', 1); |
| 12389 |
define ('STREAM_BUFFER_FULL', 2); |
| 12390 |
|
| 12391 |
/** |
| 12392 |
* Stream casting, when stream_cast is called |
| 12393 |
* otherwise (see above). |
| 12394 |
* @link http://www.php.net/manual/en/stream.constants.php |
| 12395 |
*/ |
| 12396 |
define ('STREAM_CAST_AS_STREAM', 0); |
| 12397 |
|
| 12398 |
/** |
| 12399 |
* Stream casting, for when stream_select is |
| 12400 |
* calling stream_cast. |
| 12401 |
* @link http://www.php.net/manual/en/stream.constants.php |
| 12402 |
*/ |
| 12403 |
define ('STREAM_CAST_FOR_SELECT', 3); |
| 12404 |
|
| 12405 |
/** |
| 12406 |
* Used with stream_metadata, to specify touch call. |
| 12407 |
* @link http://www.php.net/manual/en/stream.constants.php |
| 12408 |
*/ |
| 12409 |
define ('STREAM_META_TOUCH', 1); |
| 12410 |
|
| 12411 |
/** |
| 12412 |
* Used with stream_metadata, to specify chown call. |
| 12413 |
* @link http://www.php.net/manual/en/stream.constants.php |
| 12414 |
*/ |
| 12415 |
define ('STREAM_META_OWNER', 3); |
| 12416 |
|
| 12417 |
/** |
| 12418 |
* Used with stream_metadata, to specify chown call. |
| 12419 |
* @link http://www.php.net/manual/en/stream.constants.php |
| 12420 |
*/ |
| 12421 |
define ('STREAM_META_OWNER_NAME', 2); |
| 12422 |
|
| 12423 |
/** |
| 12424 |
* Used with stream_metadata, to specify chgrp call. |
| 12425 |
* @link http://www.php.net/manual/en/stream.constants.php |
| 12426 |
*/ |
| 12427 |
define ('STREAM_META_GROUP', 5); |
| 12428 |
|
| 12429 |
/** |
| 12430 |
* Used with stream_metadata, to specify chgrp call. |
| 12431 |
* @link http://www.php.net/manual/en/stream.constants.php |
| 12432 |
*/ |
| 12433 |
define ('STREAM_META_GROUP_NAME', 4); |
| 12434 |
|
| 12435 |
/** |
| 12436 |
* Used with stream_metadata, to specify chmod call. |
| 12437 |
* @link http://www.php.net/manual/en/stream.constants.php |
| 12438 |
*/ |
| 12439 |
define ('STREAM_META_ACCESS', 6); |
| 12440 |
|
| 12441 |
/** |
| 12442 |
* Image type constant used by the |
| 12443 |
* image_type_to_mime_type and |
| 12444 |
* image_type_to_extension functions. |
| 12445 |
* @link http://www.php.net/manual/en/image.constants.php |
| 12446 |
*/ |
| 12447 |
define ('IMAGETYPE_GIF', 1); |
| 12448 |
|
| 12449 |
/** |
| 12450 |
* Image type constant used by the |
| 12451 |
* image_type_to_mime_type and |
| 12452 |
* image_type_to_extension functions. |
| 12453 |
* @link http://www.php.net/manual/en/image.constants.php |
| 12454 |
*/ |
| 12455 |
define ('IMAGETYPE_JPEG', 2); |
| 12456 |
|
| 12457 |
/** |
| 12458 |
* Image type constant used by the |
| 12459 |
* image_type_to_mime_type and |
| 12460 |
* image_type_to_extension functions. |
| 12461 |
* @link http://www.php.net/manual/en/image.constants.php |
| 12462 |
*/ |
| 12463 |
define ('IMAGETYPE_PNG', 3); |
| 12464 |
|
| 12465 |
/** |
| 12466 |
* Image type constant used by the |
| 12467 |
* image_type_to_mime_type and |
| 12468 |
* image_type_to_extension functions. |
| 12469 |
* @link http://www.php.net/manual/en/image.constants.php |
| 12470 |
*/ |
| 12471 |
define ('IMAGETYPE_SWF', 4); |
| 12472 |
|
| 12473 |
/** |
| 12474 |
* Image type constant used by the |
| 12475 |
* image_type_to_mime_type and |
| 12476 |
* image_type_to_extension functions. |
| 12477 |
* @link http://www.php.net/manual/en/image.constants.php |
| 12478 |
*/ |
| 12479 |
define ('IMAGETYPE_PSD', 5); |
| 12480 |
|
| 12481 |
/** |
| 12482 |
* Image type constant used by the |
| 12483 |
* image_type_to_mime_type and |
| 12484 |
* image_type_to_extension functions. |
| 12485 |
* @link http://www.php.net/manual/en/image.constants.php |
| 12486 |
*/ |
| 12487 |
define ('IMAGETYPE_BMP', 6); |
| 12488 |
|
| 12489 |
/** |
| 12490 |
* Image type constant used by the |
| 12491 |
* image_type_to_mime_type and |
| 12492 |
* image_type_to_extension functions. |
| 12493 |
* @link http://www.php.net/manual/en/image.constants.php |
| 12494 |
*/ |
| 12495 |
define ('IMAGETYPE_TIFF_II', 7); |
| 12496 |
|
| 12497 |
/** |
| 12498 |
* Image type constant used by the |
| 12499 |
* image_type_to_mime_type and |
| 12500 |
* image_type_to_extension functions. |
| 12501 |
* @link http://www.php.net/manual/en/image.constants.php |
| 12502 |
*/ |
| 12503 |
define ('IMAGETYPE_TIFF_MM', 8); |
| 12504 |
|
| 12505 |
/** |
| 12506 |
* Image type constant used by the |
| 12507 |
* image_type_to_mime_type and |
| 12508 |
* image_type_to_extension functions. |
| 12509 |
* @link http://www.php.net/manual/en/image.constants.php |
| 12510 |
*/ |
| 12511 |
define ('IMAGETYPE_JPC', 9); |
| 12512 |
|
| 12513 |
/** |
| 12514 |
* Image type constant used by the |
| 12515 |
* image_type_to_mime_type and |
| 12516 |
* image_type_to_extension functions. |
| 12517 |
* @link http://www.php.net/manual/en/image.constants.php |
| 12518 |
*/ |
| 12519 |
define ('IMAGETYPE_JP2', 10); |
| 12520 |
|
| 12521 |
/** |
| 12522 |
* Image type constant used by the |
| 12523 |
* image_type_to_mime_type and |
| 12524 |
* image_type_to_extension functions. |
| 12525 |
* @link http://www.php.net/manual/en/image.constants.php |
| 12526 |
*/ |
| 12527 |
define ('IMAGETYPE_JPX', 11); |
| 12528 |
|
| 12529 |
/** |
| 12530 |
* Image type constant used by the |
| 12531 |
* image_type_to_mime_type and |
| 12532 |
* image_type_to_extension functions. |
| 12533 |
* @link http://www.php.net/manual/en/image.constants.php |
| 12534 |
*/ |
| 12535 |
define ('IMAGETYPE_JB2', 12); |
| 12536 |
|
| 12537 |
/** |
| 12538 |
* Image type constant used by the |
| 12539 |
* image_type_to_mime_type and |
| 12540 |
* image_type_to_extension functions. |
| 12541 |
* @link http://www.php.net/manual/en/image.constants.php |
| 12542 |
*/ |
| 12543 |
define ('IMAGETYPE_SWC', 13); |
| 12544 |
|
| 12545 |
/** |
| 12546 |
* Image type constant used by the |
| 12547 |
* image_type_to_mime_type and |
| 12548 |
* image_type_to_extension functions. |
| 12549 |
* @link http://www.php.net/manual/en/image.constants.php |
| 12550 |
*/ |
| 12551 |
define ('IMAGETYPE_IFF', 14); |
| 12552 |
|
| 12553 |
/** |
| 12554 |
* Image type constant used by the |
| 12555 |
* image_type_to_mime_type and |
| 12556 |
* image_type_to_extension functions. |
| 12557 |
* @link http://www.php.net/manual/en/image.constants.php |
| 12558 |
*/ |
| 12559 |
define ('IMAGETYPE_WBMP', 15); |
| 12560 |
|
| 12561 |
/** |
| 12562 |
* Image type constant used by the |
| 12563 |
* image_type_to_mime_type and |
| 12564 |
* image_type_to_extension functions. |
| 12565 |
* @link http://www.php.net/manual/en/image.constants.php |
| 12566 |
*/ |
| 12567 |
define ('IMAGETYPE_JPEG2000', 9); |
| 12568 |
|
| 12569 |
/** |
| 12570 |
* Image type constant used by the |
| 12571 |
* image_type_to_mime_type and |
| 12572 |
* image_type_to_extension functions. |
| 12573 |
* @link http://www.php.net/manual/en/image.constants.php |
| 12574 |
*/ |
| 12575 |
define ('IMAGETYPE_XBM', 16); |
| 12576 |
|
| 12577 |
/** |
| 12578 |
* Image type constant used by the |
| 12579 |
* image_type_to_mime_type and |
| 12580 |
* image_type_to_extension functions. |
| 12581 |
* (Available as of PHP 5.3.0) |
| 12582 |
* @link http://www.php.net/manual/en/image.constants.php |
| 12583 |
*/ |
| 12584 |
define ('IMAGETYPE_ICO', 17); |
| 12585 |
define ('IMAGETYPE_UNKNOWN', 0); |
| 12586 |
define ('IMAGETYPE_COUNT', 18); |
| 12587 |
|
| 12588 |
/** |
| 12589 |
* IPv4 Address Resource |
| 12590 |
* @link http://www.php.net/manual/en/network.constants.php |
| 12591 |
*/ |
| 12592 |
define ('DNS_A', 1); |
| 12593 |
|
| 12594 |
/** |
| 12595 |
* Authoritative Name Server Resource |
| 12596 |
* @link http://www.php.net/manual/en/network.constants.php |
| 12597 |
*/ |
| 12598 |
define ('DNS_NS', 2); |
| 12599 |
|
| 12600 |
/** |
| 12601 |
* Alias (Canonical Name) Resource |
| 12602 |
* @link http://www.php.net/manual/en/network.constants.php |
| 12603 |
*/ |
| 12604 |
define ('DNS_CNAME', 16); |
| 12605 |
|
| 12606 |
/** |
| 12607 |
* Start of Authority Resource |
| 12608 |
* @link http://www.php.net/manual/en/network.constants.php |
| 12609 |
*/ |
| 12610 |
define ('DNS_SOA', 32); |
| 12611 |
|
| 12612 |
/** |
| 12613 |
* Pointer Resource |
| 12614 |
* @link http://www.php.net/manual/en/network.constants.php |
| 12615 |
*/ |
| 12616 |
define ('DNS_PTR', 2048); |
| 12617 |
|
| 12618 |
/** |
| 12619 |
* Host Info Resource (See IANA's |
| 12620 |
* Operating System Names |
| 12621 |
* for the meaning of these values) |
| 12622 |
* @link http://www.php.net/manual/en/network.constants.php |
| 12623 |
*/ |
| 12624 |
define ('DNS_HINFO', 4096); |
| 12625 |
|
| 12626 |
/** |
| 12627 |
* Mail Exchanger Resource |
| 12628 |
* @link http://www.php.net/manual/en/network.constants.php |
| 12629 |
*/ |
| 12630 |
define ('DNS_MX', 16384); |
| 12631 |
|
| 12632 |
/** |
| 12633 |
* Text Resource |
| 12634 |
* @link http://www.php.net/manual/en/network.constants.php |
| 12635 |
*/ |
| 12636 |
define ('DNS_TXT', 32768); |
| 12637 |
define ('DNS_SRV', 33554432); |
| 12638 |
define ('DNS_NAPTR', 67108864); |
| 12639 |
|
| 12640 |
/** |
| 12641 |
* IPv6 Address Resource |
| 12642 |
* @link http://www.php.net/manual/en/network.constants.php |
| 12643 |
*/ |
| 12644 |
define ('DNS_AAAA', 134217728); |
| 12645 |
define ('DNS_A6', 16777216); |
| 12646 |
|
| 12647 |
/** |
| 12648 |
* Any Resource Record. On most systems |
| 12649 |
* this returns all resource records, however |
| 12650 |
* it should not be counted upon for critical |
| 12651 |
* uses. Try DNS_ALL instead. |
| 12652 |
* @link http://www.php.net/manual/en/network.constants.php |
| 12653 |
*/ |
| 12654 |
define ('DNS_ANY', 268435456); |
| 12655 |
|
| 12656 |
/** |
| 12657 |
* Iteratively query the name server for |
| 12658 |
* each available record type. |
| 12659 |
* @link http://www.php.net/manual/en/network.constants.php |
| 12660 |
*/ |
| 12661 |
define ('DNS_ALL', 251713587); |
| 12662 |
|
| 12663 |
// End of standard v.5.6.0 |
| 12664 |
?> |