PageRenderTime 122ms CodeModel.GetById 42ms app.highlight 38ms RepoModel.GetById 1ms app.codeStats 4ms

/plugins/com.aptana.editor.php.epl/Resources/language/php5.3/standard.php

https://gitlab.com/N3X15/studio3-php
PHP | 11372 lines | 865 code | 676 blank | 9831 comment | 0 complexity | 2d3db2026b5d92568f4380db7664b400 MD5 | raw file

Large files files are truncated, but you can click here to view the full file

   1<?php
   2
   3// Start of standard v.5.3.2
   4
   5class __PHP_Incomplete_Class  {
   6}
   7
   8class php_user_filter  {
   9	public $filtername;
  10	public $params;
  11
  12
  13	/**
  14	 * @param in
  15	 * @param out
  16	 * @param consumed
  17	 * @param closing
  18	 */
  19	public function filter ($in, $out, &$consumed, $closing) {}
  20
  21	public function onCreate () {}
  22
  23	public function onClose () {}
  24
  25}
  26
  27class Directory  {
  28
  29	public function close () {}
  30
  31	public function rewind () {}
  32
  33	public function read () {}
  34
  35}
  36
  37/**
  38 * Returns the value of a constant
  39 * @link http://www.php.net/manual/en/function.constant.php
  40 * @param name string <p>
  41 * The constant name.
  42 * </p>
  43 * @return mixed the value of the constant, or &null; if the constant is not
  44 * defined.
  45 */
  46function constant ($name) {}
  47
  48/**
  49 * Convert binary data into hexadecimal representation
  50 * @link http://www.php.net/manual/en/function.bin2hex.php
  51 * @param str string <p>
  52 * A character.
  53 * </p>
  54 * @return string the hexadecimal representation of the given string.
  55 */
  56function bin2hex ($str) {}
  57
  58/**
  59 * Delay execution
  60 * @link http://www.php.net/manual/en/function.sleep.php
  61 * @param seconds int <p>
  62 * Halt time in seconds.
  63 * </p>
  64 * @return int zero on success, or false on errors. If the call was interrupted
  65 * by a signal, sleep returns the number of seconds left
  66 * to sleep.
  67 */
  68function sleep ($seconds) {}
  69
  70/**
  71 * Delay execution in microseconds
  72 * @link http://www.php.net/manual/en/function.usleep.php
  73 * @param micro_seconds int <p>
  74 * Halt time in micro seconds. A micro second is one millionth of a
  75 * second.
  76 * </p>
  77 * @return void 
  78 */
  79function usleep ($micro_seconds) {}
  80
  81/**
  82 * Delay for a number of seconds and nanoseconds
  83 * @link http://www.php.net/manual/en/function.time-nanosleep.php
  84 * @param seconds int <p>
  85 * Must be a positive integer.
  86 * </p>
  87 * @param nanoseconds int <p>
  88 * Must be a positive integer less than 1 billion.
  89 * </p>
  90 * @return mixed Returns true on success or false on failure.
  91 * </p>
  92 * <p>
  93 * If the delay was interrupted by a signal, an associative array will be
  94 * returned with the components:
  95 * seconds - number of seconds remaining in
  96 * the delay
  97 * nanoseconds - number of nanoseconds
  98 * remaining in the delay
  99 */
 100function time_nanosleep ($seconds, $nanoseconds) {}
 101
 102/**
 103 * Make the script sleep until the specified time
 104 * @link http://www.php.net/manual/en/function.time-sleep-until.php
 105 * @param timestamp float <p>
 106 * The timestamp when the script should wake.
 107 * </p>
 108 * @return bool Returns true on success or false on failure.
 109 */
 110function time_sleep_until ($timestamp) {}
 111
 112/**
 113 * Parse a time/date generated with <function>strftime</function>
 114 * @link http://www.php.net/manual/en/function.strptime.php
 115 * @param date string <p>
 116 * The string to parse (e.g. returned from strftime)
 117 * </p>
 118 * @param format string <p>
 119 * The format used in date (e.g. the same as
 120 * used in strftime).
 121 * </p>
 122 * <p>
 123 * For more information about the format options, read the
 124 * strftime page.
 125 * </p>
 126 * @return array an array&return.falseforfailure;.
 127 * </p>
 128 * <p>
 129 * <table>
 130 * The following parameters are returned in the array
 131 * <tr valign="top">
 132 * <td>parameters</td>
 133 * <td>Description</td>
 134 * </tr>
 135 * <tr valign="top">
 136 * <td>"tm_sec"</td>
 137 * <td>Seconds after the minute (0-61)</td>
 138 * </tr>
 139 * <tr valign="top">
 140 * <td>"tm_min"</td>
 141 * <td>Minutes after the hour (0-59)</td>
 142 * </tr>
 143 * <tr valign="top">
 144 * <td>"tm_hour"</td>
 145 * <td>Hour since midnight (0-23)</td>
 146 * </tr>
 147 * <tr valign="top">
 148 * <td>"tm_mday"</td>
 149 * <td>Day of the month (1-31)</td>
 150 * </tr>
 151 * <tr valign="top">
 152 * <td>"tm_mon"</td>
 153 * <td>Months since January (0-11)</td>
 154 * </tr>
 155 * <tr valign="top">
 156 * <td>"tm_year"</td>
 157 * <td>Years since 1900</td>
 158 * </tr>
 159 * <tr valign="top">
 160 * <td>"tm_wday"</td>
 161 * <td>Days since Sunday (0-6)</td>
 162 * </tr>
 163 * <tr valign="top">
 164 * <td>"tm_yday"</td>
 165 * <td>Days since January 1 (0-365)</td>
 166 * </tr>
 167 * <tr valign="top">
 168 * <td>"unparsed"</td>
 169 * <td>the date part which was not
 170 * recognized using the specified format</td>
 171 * </tr>
 172 * </table>
 173 */
 174function strptime ($date, $format) {}
 175
 176/**
 177 * Flush the output buffer
 178 * @link http://www.php.net/manual/en/function.flush.php
 179 * @return void 
 180 */
 181function flush () {}
 182
 183/**
 184 * Wraps a string to a given number of characters
 185 * @link http://www.php.net/manual/en/function.wordwrap.php
 186 * @param str string <p>
 187 * The input string.
 188 * </p>
 189 * @param width int[optional] <p>
 190 * The column width.
 191 * </p>
 192 * @param break string[optional] <p>
 193 * The line is broken using the optional
 194 * break parameter.
 195 * </p>
 196 * @param cut bool[optional] <p>
 197 * If the cut is set to true, the string is
 198 * always wrapped at or before the specified width. So if you have
 199 * a word that is larger than the given width, it is broken apart.
 200 * (See second example).
 201 * </p>
 202 * @return string the given string wrapped at the specified column.
 203 */
 204function wordwrap ($str, $width = null, $break = null, $cut = null) {}
 205
 206/**
 207 * Convert special characters to HTML entities
 208 * @link http://www.php.net/manual/en/function.htmlspecialchars.php
 209 * @param string string <p>
 210 * The string being converted.
 211 * </p>
 212 * @param quote_style int[optional] <p>
 213 * The optional second argument, quote_style, tells
 214 * the function what to do with single and double quote characters.
 215 * The default mode, ENT_COMPAT, is the backwards compatible mode
 216 * which only translates the double-quote character and leaves the
 217 * single-quote untranslated. If ENT_QUOTES is set, both single and
 218 * double quotes are translated and if ENT_NOQUOTES is set neither
 219 * single nor double quotes are translated.
 220 * </p>
 221 * @param charset string[optional] <p>
 222 * Defines character set used in conversion.
 223 * The default character set is ISO-8859-1.
 224 * </p>
 225 * <p>
 226 * For the purposes of this function, the charsets
 227 * ISO-8859-1, ISO-8859-15,
 228 * UTF-8, cp866,
 229 * cp1251, cp1252, and
 230 * KOI8-R are effectively equivalent, as the
 231 * characters affected by htmlspecialchars
 232 * occupy the same positions in all of these charsets.
 233 * </p>
 234 * &reference.strings.charsets;
 235 * @param double_encode bool[optional] <p>
 236 * When double_encode is turned off PHP will not
 237 * encode existing html entities, the default is to convert everything.
 238 * </p>
 239 * @return string The converted string.
 240 */
 241function htmlspecialchars ($string, $quote_style = null, $charset = null, $double_encode = null) {}
 242
 243/**
 244 * Convert all applicable characters to HTML entities
 245 * @link http://www.php.net/manual/en/function.htmlentities.php
 246 * @param string string <p>
 247 * The input string.
 248 * </p>
 249 * @param quote_style int[optional] <p>
 250 * Like htmlspecialchars, the optional second
 251 * quote_style parameter lets you define what will
 252 * be done with 'single' and "double" quotes. It takes on one of three
 253 * constants with the default being ENT_COMPAT:
 254 * <table>
 255 * Available quote_style constants
 256 * <tr valign="top">
 257 * <td>Constant Name</td>
 258 * <td>Description</td>
 259 * </tr>
 260 * <tr valign="top">
 261 * <td>ENT_COMPAT</td>
 262 * <td>Will convert double-quotes and leave single-quotes alone.</td>
 263 * </tr>
 264 * <tr valign="top">
 265 * <td>ENT_QUOTES</td>
 266 * <td>Will convert both double and single quotes.</td>
 267 * </tr>
 268 * <tr valign="top">
 269 * <td>ENT_NOQUOTES</td>
 270 * <td>Will leave both double and single quotes unconverted.</td>
 271 * </tr>
 272 * </table>
 273 * </p>
 274 * @param charset string[optional] <p>
 275 * Like htmlspecialchars, it takes an optional
 276 * third argument charset which defines character
 277 * set used in conversion.
 278 * Presently, the ISO-8859-1 character set is used as the default.
 279 * </p>
 280 * &reference.strings.charsets;
 281 * @param double_encode bool[optional] <p>
 282 * When double_encode is turned off PHP will not
 283 * encode existing html entities. The default is to convert everything.
 284 * </p>
 285 * @return string the encoded string.
 286 */
 287function htmlentities ($string, $quote_style = null, $charset = null, $double_encode = null) {}
 288
 289/**
 290 * Convert all HTML entities to their applicable characters
 291 * @link http://www.php.net/manual/en/function.html-entity-decode.php
 292 * @param string string <p>
 293 * The input string.
 294 * </p>
 295 * @param quote_style int[optional] <p>
 296 * The optional second quote_style parameter lets
 297 * you define what will be done with 'single' and "double" quotes. It takes
 298 * on one of three constants with the default being
 299 * ENT_COMPAT:
 300 * <table>
 301 * Available quote_style constants
 302 * <tr valign="top">
 303 * <td>Constant Name</td>
 304 * <td>Description</td>
 305 * </tr>
 306 * <tr valign="top">
 307 * <td>ENT_COMPAT</td>
 308 * <td>Will convert double-quotes and leave single-quotes alone.</td>
 309 * </tr>
 310 * <tr valign="top">
 311 * <td>ENT_QUOTES</td>
 312 * <td>Will convert both double and single quotes.</td>
 313 * </tr>
 314 * <tr valign="top">
 315 * <td>ENT_NOQUOTES</td>
 316 * <td>Will leave both double and single quotes unconverted.</td>
 317 * </tr>
 318 * </table>
 319 * </p>
 320 * @param charset string[optional] <p>
 321 * The ISO-8859-1 character set is used as default for the optional third
 322 * charset. This defines the character set used in
 323 * conversion.
 324 * </p>
 325 * &reference.strings.charsets;
 326 * @return string the decoded string.
 327 */
 328function html_entity_decode ($string, $quote_style = null, $charset = null) {}
 329
 330/**
 331 * Convert special HTML entities back to characters
 332 * @link http://www.php.net/manual/en/function.htmlspecialchars-decode.php
 333 * @param string string <p>
 334 * The string to decode
 335 * </p>
 336 * @param quote_style int[optional] <p>
 337 * The quote style. One of the following constants:
 338 * <table>
 339 * quote_style constants
 340 * <tr valign="top">
 341 * <td>Constant Name</td>
 342 * <td>Description</td>
 343 * </tr>
 344 * <tr valign="top">
 345 * <td>ENT_COMPAT</td>
 346 * <td>Will convert double-quotes and leave single-quotes alone
 347 * (default)</td>
 348 * </tr>
 349 * <tr valign="top">
 350 * <td>ENT_QUOTES</td>
 351 * <td>Will convert both double and single quotes</td>
 352 * </tr>
 353 * <tr valign="top">
 354 * <td>ENT_NOQUOTES</td>
 355 * <td>Will leave both double and single quotes unconverted</td>
 356 * </tr>
 357 * </table>
 358 * </p>
 359 * @return string the decoded string.
 360 */
 361function htmlspecialchars_decode ($string, $quote_style = null) {}
 362
 363/**
 364 * Returns the translation table used by <function>htmlspecialchars</function> and <function>htmlentities</function>
 365 * @link http://www.php.net/manual/en/function.get-html-translation-table.php
 366 * @param table int[optional] <p>
 367 * There are two new constants (HTML_ENTITIES,
 368 * HTML_SPECIALCHARS) that allow you to specify the
 369 * table you want.
 370 * </p>
 371 * @param quote_style int[optional] <p>
 372 * Like the htmlspecialchars and
 373 * htmlentities functions you can optionally specify
 374 * the quote_style you are working with.
 375 * See the description
 376 * of these modes in htmlspecialchars.
 377 * </p>
 378 * @return array the translation table as an array.
 379 */
 380function get_html_translation_table ($table = null, $quote_style = null) {}
 381
 382/**
 383 * Calculate the sha1 hash of a string
 384 * @link http://www.php.net/manual/en/function.sha1.php
 385 * @param str string <p>
 386 * The input string.
 387 * </p>
 388 * @param raw_output bool[optional] <p>
 389 * If the optional raw_output is set to true,
 390 * then the sha1 digest is instead returned in raw binary format with a
 391 * length of 20, otherwise the returned value is a 40-character
 392 * hexadecimal number.
 393 * </p>
 394 * @return string the sha1 hash as a string.
 395 */
 396function sha1 ($str, $raw_output = null) {}
 397
 398/**
 399 * Calculate the sha1 hash of a file
 400 * @link http://www.php.net/manual/en/function.sha1-file.php
 401 * @param filename string <p>
 402 * The filename of the file to hash.
 403 * </p>
 404 * @param raw_output bool[optional] <p>
 405 * When true, returns the digest in raw binary format with a length of
 406 * 20.
 407 * </p>
 408 * @return string a string on success, false otherwise.
 409 */
 410function sha1_file ($filename, $raw_output = null) {}
 411
 412/**
 413 * Calculate the md5 hash of a string
 414 * @link http://www.php.net/manual/en/function.md5.php
 415 * @param str string <p>
 416 * The string.
 417 * </p>
 418 * @param raw_output bool[optional] <p>
 419 * If the optional raw_output is set to true,
 420 * then the md5 digest is instead returned in raw binary format with a
 421 * length of 16.
 422 * </p>
 423 * @return string the hash as a 32-character hexadecimal number.
 424 */
 425function md5 ($str, $raw_output = null) {}
 426
 427/**
 428 * Calculates the md5 hash of a given file
 429 * @link http://www.php.net/manual/en/function.md5-file.php
 430 * @param filename string <p>
 431 * The filename
 432 * </p>
 433 * @param raw_output bool[optional] <p>
 434 * When true, returns the digest in raw binary format with a length of
 435 * 16.
 436 * </p>
 437 * @return string a string on success, false otherwise.
 438 */
 439function md5_file ($filename, $raw_output = null) {}
 440
 441/**
 442 * Calculates the crc32 polynomial of a string
 443 * @link http://www.php.net/manual/en/function.crc32.php
 444 * @param str string <p>
 445 * The data.
 446 * </p>
 447 * @return int the crc32 checksum of str as an integer.
 448 */
 449function crc32 ($str) {}
 450
 451/**
 452 * Parse a binary IPTC block into single tags.
 453 * @link http://www.php.net/manual/en/function.iptcparse.php
 454 * @param iptcblock string <p>
 455 * A binary IPTC block.
 456 * </p>
 457 * @return array an array using the tagmarker as an index and the value as the
 458 * value. It returns false on error or if no IPTC data was found.
 459 */
 460function iptcparse ($iptcblock) {}
 461
 462/**
 463 * Embeds binary IPTC data into a JPEG image
 464 * @link http://www.php.net/manual/en/function.iptcembed.php
 465 * @param iptcdata string <p>
 466 * The data to be written.
 467 * </p>
 468 * @param jpeg_file_name string <p>
 469 * Path to the JPEG image.
 470 * </p>
 471 * @param spool int[optional] <p>
 472 * Spool flag. If the spool flag is over 2 then the JPEG will be 
 473 * returned as a string.
 474 * </p>
 475 * @return mixed If success and spool flag is lower than 2 then the JPEG will not be 
 476 * returned as a string, false on errors.
 477 */
 478function iptcembed ($iptcdata, $jpeg_file_name, $spool = null) {}
 479
 480/**
 481 * Get the size of an image
 482 * @link http://www.php.net/manual/en/function.getimagesize.php
 483 * @param filename string <p>
 484 * This parameter specifies the file you wish to retrieve information
 485 * about. It can reference a local file or (configuration permitting) a
 486 * remote file using one of the supported streams. 
 487 * </p>
 488 * @param imageinfo array[optional] <p>
 489 * This optional parameter allows you to extract some extended
 490 * information from the image file. Currently, this will return the
 491 * different JPG APP markers as an associative array.
 492 * Some programs use these APP markers to embed text information in 
 493 * images. A very common one is to embed 
 494 * IPTC information in the APP13 marker.
 495 * You can use the iptcparse function to parse the
 496 * binary APP13 marker into something readable.
 497 * </p>
 498 * @return array an array with 7 elements.
 499 * </p>
 500 * <p>
 501 * Index 0 and 1 contains respectively the width and the height of the image.
 502 * </p>
 503 * <p>
 504 * Some formats may contain no image or may contain multiple images. In these
 505 * cases, getimagesize might not be able to properly
 506 * determine the image size. getimagesize will return
 507 * zero for width and height in these cases.
 508 * </p>
 509 * <p>
 510 * Index 2 is one of the IMAGETYPE_XXX constants indicating 
 511 * the type of the image.
 512 * </p>
 513 * <p>
 514 * Index 3 is a text string with the correct 
 515 * height="yyy" width="xxx" string that can be used
 516 * directly in an IMG tag.
 517 * </p>
 518 * <p>
 519 * mime is the correspondant MIME type of the image.
 520 * This information can be used to deliver images with correct the HTTP 
 521 * Content-type header:
 522 * </p>
 523 * <p>
 524 * Example #1 getimagesize and MIME types
 525 * </p>
 526 * <pre>
 527 *   &lt;?php
 528 *     $size = getimagesize($filename);
 529 *     $fp = fopen($filename, "rb");
 530 *     if ($size && $fp) {
 531 *     &nbsp;&nbsp;header("Content-type: {$size['mime']}");
 532 *     &nbsp;&nbsp;fpassthru($fp);
 533 *     &nbsp;&nbsp;exit;
 534 *     } else {
 535 *     &nbsp;&nbsp;// error
 536 *     }
 537 *  ?&gt;
 538 * </pre>
 539 * <p>
 540 * channels will be 3 for RGB pictures and 4 for CMYK
 541 * pictures.
 542 * </p>
 543 * <p>
 544 * bits is the number of bits for each color.
 545 * </p>
 546 * <p>
 547 * For some image types, the presence of channels and
 548 * bits values can be a bit
 549 * confusing. As an example, GIF always uses 3 channels
 550 * per pixel, but the number of bits per pixel cannot be calculated for an
 551 * animated GIF with a global color table.
 552 * </p>
 553 * <p>
 554 * On failure, false is returned.
 555 */
 556function getimagesize ($filename, array &$imageinfo = null) {}
 557
 558/**
 559 * Get Mime-Type for image-type returned by getimagesize,
 560   exif_read_data, exif_thumbnail, exif_imagetype
 561 * @link http://www.php.net/manual/en/function.image-type-to-mime-type.php
 562 * @param imagetype int <p>
 563 * One of the IMAGETYPE_XXX constants.
 564 * </p>
 565 * @return string The returned values are as follows
 566 * <table>
 567 * Returned values Constants
 568 * <tr valign="top">
 569 * <td>imagetype</td>
 570 * <td>Returned value</td>
 571 * </tr>
 572 * <tr valign="top">
 573 * <td>IMAGETYPE_GIF</td>
 574 * <td>image/gif</td>
 575 * </tr>
 576 * <tr valign="top">
 577 * <td>IMAGETYPE_JPEG</td>
 578 * <td>image/jpeg</td>
 579 * </tr>
 580 * <tr valign="top">
 581 * <td>IMAGETYPE_PNG</td>
 582 * <td>image/png</td>
 583 * </tr>
 584 * <tr valign="top">
 585 * <td>IMAGETYPE_SWF</td>
 586 * <td>application/x-shockwave-flash</td>
 587 * </tr>
 588 * <tr valign="top">
 589 * <td>IMAGETYPE_PSD</td>
 590 * <td>image/psd</td>
 591 * </tr>
 592 * <tr valign="top">
 593 * <td>IMAGETYPE_BMP</td>
 594 * <td>image/bmp</td>
 595 * </tr>
 596 * <tr valign="top">
 597 * <td>IMAGETYPE_TIFF_II (intel byte order)</td>
 598 * <td>image/tiff</td>
 599 * </tr>
 600 * <tr valign="top">
 601 * <td>
 602 * IMAGETYPE_TIFF_MM (motorola byte order)
 603 * </td>
 604 * <td>image/tiff</td>
 605 * </tr>
 606 * <tr valign="top">
 607 * <td>IMAGETYPE_JPC</td>
 608 * <td>application/octet-stream</td>
 609 * </tr>
 610 * <tr valign="top">
 611 * <td>IMAGETYPE_JP2</td>
 612 * <td>image/jp2</td>
 613 * </tr>
 614 * <tr valign="top">
 615 * <td>IMAGETYPE_JPX</td>
 616 * <td>application/octet-stream</td>
 617 * </tr>
 618 * <tr valign="top">
 619 * <td>IMAGETYPE_JB2</td>
 620 * <td>application/octet-stream</td>
 621 * </tr>
 622 * <tr valign="top">
 623 * <td>IMAGETYPE_SWC</td>
 624 * <td>application/x-shockwave-flash</td>
 625 * </tr>
 626 * <tr valign="top">
 627 * <td>IMAGETYPE_IFF</td>
 628 * <td>image/iff</td>
 629 * </tr>
 630 * <tr valign="top">
 631 * <td>IMAGETYPE_WBMP</td>
 632 * <td>image/vnd.wap.wbmp</td>
 633 * </tr>
 634 * <tr valign="top">
 635 * <td>IMAGETYPE_XBM</td>
 636 * <td>image/xbm</td>
 637 * </tr>
 638 * <tr valign="top">
 639 * <td>IMAGETYPE_ICO</td>
 640 * <td>image/vnd.microsoft.icon</td>
 641 * </tr>
 642 * </table>
 643 */
 644function image_type_to_mime_type ($imagetype) {}
 645
 646/**
 647 * Get file extension for image type
 648 * @link http://www.php.net/manual/en/function.image-type-to-extension.php
 649 * @param imagetype int <p>
 650 * One of the IMAGETYPE_XXX constant.
 651 * </p>
 652 * @param include_dot bool[optional] <p>
 653 * Whether to prepend a dot to the extension or not. Default to true.
 654 * </p>
 655 * @return string A string with the extension corresponding to the given image type.
 656 */
 657function image_type_to_extension ($imagetype, $include_dot = null) {}
 658
 659/**
 660 * Outputs information about PHP's configuration
 661 * @link http://www.php.net/manual/en/function.phpinfo.php
 662 * @param what int[optional] <p>
 663 * The output may be customized by passing one or more of the
 664 * following constants bitwise values summed
 665 * together in the optional what parameter.
 666 * One can also combine the respective constants or bitwise values
 667 * together with the or operator.
 668 * </p>
 669 * <p>
 670 * <table>
 671 * phpinfo options
 672 * <tr valign="top">
 673 * <td>Name (constant)</td>
 674 * <td>Value</td>
 675 * <td>Description</td>
 676 * </tr>
 677 * <tr valign="top">
 678 * <td>INFO_GENERAL</td>
 679 * <td>1</td>
 680 * <td>
 681 * The configuration line, &php.ini; location, build date, Web
 682 * Server, System and more.
 683 * </td>
 684 * </tr>
 685 * <tr valign="top">
 686 * <td>INFO_CREDITS</td>
 687 * <td>2</td>
 688 * <td>
 689 * PHP Credits. See also phpcredits.
 690 * </td>
 691 * </tr>
 692 * <tr valign="top">
 693 * <td>INFO_CONFIGURATION</td>
 694 * <td>4</td>
 695 * <td>
 696 * Current Local and Master values for PHP directives. See
 697 * also ini_get.
 698 * </td>
 699 * </tr>
 700 * <tr valign="top">
 701 * <td>INFO_MODULES</td>
 702 * <td>8</td>
 703 * <td>
 704 * Loaded modules and their respective settings. See also
 705 * get_loaded_extensions.
 706 * </td>
 707 * </tr>
 708 * <tr valign="top">
 709 * <td>INFO_ENVIRONMENT</td>
 710 * <td>16</td>
 711 * <td>
 712 * Environment Variable information that's also available in
 713 * $_ENV.
 714 * </td>
 715 * </tr>
 716 * <tr valign="top">
 717 * <td>INFO_VARIABLES</td>
 718 * <td>32</td>
 719 * <td>
 720 * Shows all 
 721 * predefined variables from EGPCS (Environment, GET,
 722 * POST, Cookie, Server).
 723 * </td>
 724 * </tr>
 725 * <tr valign="top">
 726 * <td>INFO_LICENSE</td>
 727 * <td>64</td>
 728 * <td>
 729 * PHP License information. See also the license FAQ.
 730 * </td>
 731 * </tr>
 732 * <tr valign="top">
 733 * <td>INFO_ALL</td>
 734 * <td>-1</td>
 735 * <td>
 736 * Shows all of the above.
 737 * </td>
 738 * </tr>
 739 * </table>
 740 * </p>
 741 * @return bool Returns true on success or false on failure.
 742 */
 743function phpinfo ($what = null) {}
 744
 745/**
 746 * Gets the current PHP version
 747 * @link http://www.php.net/manual/en/function.phpversion.php
 748 * @param extension string[optional] <p>
 749 * An optional extension name.
 750 * </p>
 751 * @return string If the optional extension parameter is
 752 * specified, phpversion returns the version of that
 753 * extension, or false if there is no version information associated or
 754 * the extension isn't enabled.
 755 */
 756function phpversion ($extension = null) {}
 757
 758/**
 759 * Prints out the credits for PHP
 760 * @link http://www.php.net/manual/en/function.phpcredits.php
 761 * @param flag int[optional] <p>
 762 * To generate a custom credits page, you may want to use the
 763 * flag parameter.
 764 * </p>
 765 * <p>
 766 * <table>
 767 * Pre-defined phpcredits flags
 768 * <tr valign="top">
 769 * <td>name</td>
 770 * <td>description</td>
 771 * </tr>
 772 * <tr valign="top">
 773 * <td>CREDITS_ALL</td>
 774 * <td>
 775 * All the credits, equivalent to using: CREDITS_DOCS +
 776 * CREDITS_GENERAL + CREDITS_GROUP +
 777 * CREDITS_MODULES + CREDITS_FULLPAGE.
 778 * It generates a complete stand-alone HTML page with the appropriate tags.
 779 * </td>
 780 * </tr>
 781 * <tr valign="top">
 782 * <td>CREDITS_DOCS</td>
 783 * <td>The credits for the documentation team</td>
 784 * </tr>
 785 * <tr valign="top">
 786 * <td>CREDITS_FULLPAGE</td>
 787 * <td>
 788 * Usually used in combination with the other flags. Indicates
 789 * that a complete stand-alone HTML page needs to be
 790 * printed including the information indicated by the other
 791 * flags.
 792 * </td>
 793 * </tr>
 794 * <tr valign="top">
 795 * <td>CREDITS_GENERAL</td>
 796 * <td>
 797 * General credits: Language design and concept, PHP authors 
 798 * and SAPI module.
 799 * </td>
 800 * </tr>
 801 * <tr valign="top">
 802 * <td>CREDITS_GROUP</td>
 803 * <td>A list of the core developers</td>
 804 * </tr>
 805 * <tr valign="top">
 806 * <td>CREDITS_MODULES</td>
 807 * <td>
 808 * A list of the extension modules for PHP, and their authors
 809 * </td>
 810 * </tr>
 811 * <tr valign="top">
 812 * <td>CREDITS_SAPI</td>
 813 * <td>
 814 * A list of the server API modules for PHP, and their authors
 815 * </td>
 816 * </tr>
 817 * </table>
 818 * </p>
 819 * @return bool Returns true on success or false on failure.
 820 */
 821function phpcredits ($flag = null) {}
 822
 823/**
 824 * Gets the logo guid
 825 * @link http://www.php.net/manual/en/function.php-logo-guid.php
 826 * @return string PHPE9568F34-D428-11d2-A769-00AA001ACF42.
 827 */
 828function php_logo_guid () {}
 829
 830function php_real_logo_guid () {}
 831
 832function php_egg_logo_guid () {}
 833
 834/**
 835 * Gets the Zend guid
 836 * @link http://www.php.net/manual/en/function.zend-logo-guid.php
 837 * @return string PHPE9568F35-D428-11d2-A769-00AA001ACF42.
 838 */
 839function zend_logo_guid () {}
 840
 841/**
 842 * Returns the type of interface between web server and PHP
 843 * @link http://www.php.net/manual/en/function.php-sapi-name.php
 844 * @return string the interface type, as a lowercase string.
 845 * </p>
 846 * <p>
 847 * Although not exhaustive, the possible return values include 
 848 * aolserver, apache, 
 849 * apache2filter, apache2handler, 
 850 * caudium, cgi (until PHP 5.3), 
 851 * cgi-fcgi, cli, 
 852 * continuity, embed,
 853 * isapi, litespeed, 
 854 * milter, nsapi, 
 855 * phttpd, pi3web, roxen,
 856 * thttpd, tux, and webjames.
 857 */
 858function php_sapi_name () {}
 859
 860/**
 861 * Returns information about the operating system PHP is running on
 862 * @link http://www.php.net/manual/en/function.php-uname.php
 863 * @param mode string[optional] <p>
 864 * mode is a single character that defines what
 865 * information is returned:
 866 * 'a': This is the default. Contains all modes in
 867 * the sequence "s n r v m".
 868 * @return string the description, as a string.
 869 */
 870function php_uname ($mode = null) {}
 871
 872/**
 873 * Return a list of .ini files parsed from the additional ini dir
 874 * @link http://www.php.net/manual/en/function.php-ini-scanned-files.php
 875 * @return string a comma-separated string of .ini files on success. Each comma is
 876 * followed by a newline. If the directive --with-config-file-scan-dir wasn't set,
 877 * false is returned. If it was set and the directory was empty, an
 878 * empty string is returned. If a file is unrecognizable, the file will
 879 * still make it into the returned string but a PHP error will also result.
 880 * This PHP error will be seen both at compile time and while using
 881 * php_ini_scanned_files.
 882 */
 883function php_ini_scanned_files () {}
 884
 885/**
 886 * Retrieve a path to the loaded php.ini file
 887 * @link http://www.php.net/manual/en/function.php-ini-loaded-file.php
 888 * @return string The loaded &php.ini; path, or false if one is not loaded.
 889 */
 890function php_ini_loaded_file () {}
 891
 892/**
 893 * String comparisons using a "natural order" algorithm
 894 * @link http://www.php.net/manual/en/function.strnatcmp.php
 895 * @param str1 string <p>
 896 * The first string.
 897 * </p>
 898 * @param str2 string <p>
 899 * The second string.
 900 * </p>
 901 * @return int Similar to other string comparison functions, this one returns &lt; 0 if
 902 * str1 is less than str2; &gt;
 903 * 0 if str1 is greater than
 904 * str2, and 0 if they are equal.
 905 */
 906function strnatcmp ($str1, $str2) {}
 907
 908/**
 909 * Case insensitive string comparisons using a "natural order" algorithm
 910 * @link http://www.php.net/manual/en/function.strnatcasecmp.php
 911 * @param str1 string <p>
 912 * The first string.
 913 * </p>
 914 * @param str2 string <p>
 915 * The second string.
 916 * </p>
 917 * @return int Similar to other string comparison functions, this one returns &lt; 0 if
 918 * str1 is less than str2 &gt;
 919 * 0 if str1 is greater than
 920 * str2, and 0 if they are equal.
 921 */
 922function strnatcasecmp ($str1, $str2) {}
 923
 924/**
 925 * Count the number of substring occurrences
 926 * @link http://www.php.net/manual/en/function.substr-count.php
 927 * @param haystack string <p>
 928 * The string to search in
 929 * </p>
 930 * @param needle string <p>
 931 * The substring to search for
 932 * </p>
 933 * @param offset int[optional] <p>
 934 * The offset where to start counting
 935 * </p>
 936 * @param length int[optional] <p>
 937 * The maximum length after the specified offset to search for the
 938 * substring. It outputs a warning if the offset plus the length is
 939 * greater than the haystack length.
 940 * </p>
 941 * @return int This functions returns an integer.
 942 */
 943function substr_count ($haystack, $needle, $offset = null, $length = null) {}
 944
 945/**
 946 * Finds the length of the first segment of a string consisting
 947   entirely of characters contained within a given mask.
 948 * @link http://www.php.net/manual/en/function.strspn.php
 949 * @param subject string <p>
 950 * The string to examine.
 951 * </p>
 952 * @param mask string <p>
 953 * The list of allowable characters to include in counted segments.
 954 * </p>
 955 * @param start int[optional] <p>
 956 * The position in subject to
 957 * start searching.
 958 * </p>
 959 * <p>
 960 * If start is given and is non-negative,
 961 * then strspn will begin
 962 * examining subject at
 963 * the start'th position. For instance, in
 964 * the string 'abcdef', the character at
 965 * position 0 is 'a', the
 966 * character at position 2 is
 967 * 'c', and so forth.
 968 * </p>
 969 * <p>
 970 * If start is given and is negative,
 971 * then strspn will begin
 972 * examining subject at
 973 * the start'th position from the end
 974 * of subject.
 975 * </p>
 976 * @param length int[optional] <p>
 977 * The length of the segment from subject
 978 * to examine. 
 979 * </p>
 980 * <p>
 981 * If length is given and is non-negative,
 982 * then subject will be examined
 983 * for length characters after the starting
 984 * position.
 985 * </p>
 986 * <p>
 987 * If lengthis given and is negative,
 988 * then subject will be examined from the
 989 * starting position up to length
 990 * characters from the end of subject.
 991 * </p>
 992 * @return int the length of the initial segment of str1
 993 * which consists entirely of characters in str2.
 994 */
 995function strspn ($subject, $mask, $start = null, $length = null) {}
 996
 997/**
 998 * Find length of initial segment not matching mask
 999 * @link http://www.php.net/manual/en/function.strcspn.php
1000 * @param str1 string <p>
1001 * The first string.
1002 * </p>
1003 * @param str2 string <p>
1004 * The second string.
1005 * </p>
1006 * @param start int[optional] <p>
1007 * The start position of the string to examine.
1008 * </p>
1009 * @param length int[optional] <p>
1010 * The length of the string to examine.
1011 * </p>
1012 * @return int the length of the segment as an integer.
1013 */
1014function strcspn ($str1, $str2, $start = null, $length = null) {}
1015
1016/**
1017 * Tokenize string
1018 * @link http://www.php.net/manual/en/function.strtok.php
1019 * @param str string <p>
1020 * The string being split up into smaller strings (tokens).
1021 * </p>
1022 * @param token string <p>
1023 * The delimiter used when splitting up str.
1024 * </p>
1025 * @return string A string token.
1026 */
1027function strtok ($str, $token) {}
1028
1029/**
1030 * Make a string uppercase
1031 * @link http://www.php.net/manual/en/function.strtoupper.php
1032 * @param string string <p>
1033 * The input string.
1034 * </p>
1035 * @return string the uppercased string.
1036 */
1037function strtoupper ($string) {}
1038
1039/**
1040 * Make a string lowercase
1041 * @link http://www.php.net/manual/en/function.strtolower.php
1042 * @param str string <p>
1043 * The input string.
1044 * </p>
1045 * @return string the lowercased string.
1046 */
1047function strtolower ($str) {}
1048
1049/**
1050 * Find position of first occurrence of a string
1051 * @link http://www.php.net/manual/en/function.strpos.php
1052 * @param haystack string <p>
1053 * The string to search in
1054 * </p>
1055 * @param needle mixed <p>
1056 * If needle is not a string, it is converted
1057 * to an integer and applied as the ordinal value of a character.
1058 * </p>
1059 * @param offset int[optional] <p>
1060 * The optional offset parameter allows you
1061 * to specify which character in haystack to
1062 * start searching. The position returned is still relative to the
1063 * beginning of haystack.
1064 * </p>
1065 * @return int the position as an integer. If needle is
1066 * not found, strpos will return boolean
1067 * false.
1068 */
1069function strpos ($haystack, $needle, $offset = null) {}
1070
1071/**
1072 * Find position of first occurrence of a case-insensitive string
1073 * @link http://www.php.net/manual/en/function.stripos.php
1074 * @param haystack string <p>
1075 * The string to search in
1076 * </p>
1077 * @param needle string <p>
1078 * Note that the needle may be a string of one or
1079 * more characters.
1080 * </p>
1081 * <p>
1082 * If needle is not a string, it is converted to
1083 * an integer and applied as the ordinal value of a character.
1084 * </p>
1085 * @param offset int[optional] <p>
1086 * The optional offset parameter allows you
1087 * to specify which character in haystack to
1088 * start searching. The position returned is still relative to the
1089 * beginning of haystack.
1090 * </p>
1091 * @return int If needle is not found,
1092 * stripos will return boolean false.
1093 */
1094function stripos ($haystack, $needle, $offset = null) {}
1095
1096/**
1097 * Find position of last occurrence of a char in a string
1098 * @link http://www.php.net/manual/en/function.strrpos.php
1099 * @param haystack string <p>
1100 * The string to search in.
1101 * </p>
1102 * @param needle string <p>
1103 * If needle is not a string, it is converted
1104 * to an integer and applied as the ordinal value of a character.
1105 * </p>
1106 * @param offset int[optional] <p>
1107 * May be specified to begin searching an arbitrary number of characters into
1108 * the string. Negative values will stop searching at an arbitrary point
1109 * prior to the end of the string.
1110 * </p>
1111 * @return int the position where the needle exists. Returns false if the needle
1112 * was not found.
1113 */
1114function strrpos ($haystack, $needle, $offset = null) {}
1115
1116/**
1117 * Find position of last occurrence of a case-insensitive string in a string
1118 * @link http://www.php.net/manual/en/function.strripos.php
1119 * @param haystack string <p>
1120 * The string to search in
1121 * </p>
1122 * @param needle string <p>
1123 * Note that the needle may be a string of one or
1124 * more characters.
1125 * </p>
1126 * @param offset int[optional] <p>
1127 * The offset parameter may be specified to begin
1128 * searching an arbitrary number of characters into the string.
1129 * </p>
1130 * <p>
1131 * Negative offset values will start the search at
1132 * offset characters from the
1133 * start of the string.
1134 * </p>
1135 * @return int the numerical position of the last occurrence of
1136 * needle. Also note that string positions start at 0,
1137 * and not 1.
1138 * </p>
1139 * <p>
1140 * If needle is not found, false is returned.
1141 */
1142function strripos ($haystack, $needle, $offset = null) {}
1143
1144/**
1145 * Reverse a string
1146 * @link http://www.php.net/manual/en/function.strrev.php
1147 * @param string string <p>
1148 * The string to be reversed.
1149 * </p>
1150 * @return string the reversed string.
1151 */
1152function strrev ($string) {}
1153
1154/**
1155 * Convert logical Hebrew text to visual text
1156 * @link http://www.php.net/manual/en/function.hebrev.php
1157 * @param hebrew_text string <p>
1158 * A Hebrew input string.
1159 * </p>
1160 * @param max_chars_per_line int[optional] <p>
1161 * This optional parameter indicates maximum number of characters per
1162 * line that will be returned.
1163 * </p>
1164 * @return string the visual string.
1165 */
1166function hebrev ($hebrew_text, $max_chars_per_line = null) {}
1167
1168/**
1169 * Convert logical Hebrew text to visual text with newline conversion
1170 * @link http://www.php.net/manual/en/function.hebrevc.php
1171 * @param hebrew_text string <p>
1172 * A Hebrew input string.
1173 * </p>
1174 * @param max_chars_per_line int[optional] <p>
1175 * This optional parameter indicates maximum number of characters per
1176 * line that will be returned.
1177 * </p>
1178 * @return string the visual string.
1179 */
1180function hebrevc ($hebrew_text, $max_chars_per_line = null) {}
1181
1182/**
1183 * Inserts HTML line breaks before all newlines in a string
1184 * @link http://www.php.net/manual/en/function.nl2br.php
1185 * @param string string <p>
1186 * The input string.
1187 * </p>
1188 * @param is_xhtml bool[optional] <p>
1189 * Whenever to use XHTML compatible line breaks or not.
1190 * </p>
1191 * @return string the altered string.
1192 */
1193function nl2br ($string, $is_xhtml = null) {}
1194
1195/**
1196 * Returns filename component of path
1197 * @link http://www.php.net/manual/en/function.basename.php
1198 * @param path string <p>
1199 * A path.
1200 * </p>
1201 * <p>
1202 * On Windows, both slash (/) and backslash
1203 * (\) are used as directory separator character. In
1204 * other environments, it is the forward slash (/).
1205 * </p>
1206 * @param suffix string[optional] <p>
1207 * If the filename ends in suffix this will also
1208 * be cut off.
1209 * </p>
1210 * @return string the base name of the given path.
1211 */
1212function basename ($path, $suffix = null) {}
1213
1214/**
1215 * Returns directory name component of path
1216 * @link http://www.php.net/manual/en/function.dirname.php
1217 * @param path string <p>
1218 * A path.
1219 * </p>
1220 * <p>
1221 * On Windows, both slash (/) and backslash
1222 * (\) are used as directory separator character. In
1223 * other environments, it is the forward slash (/).
1224 * </p>
1225 * @return string the name of the directory. If there are no slashes in
1226 * path, a dot ('.') is returned,
1227 * indicating the current directory. Otherwise, the returned string is
1228 * path with any trailing
1229 * /component removed.
1230 */
1231function dirname ($path) {}
1232
1233/**
1234 * Returns information about a file path
1235 * @link http://www.php.net/manual/en/function.pathinfo.php
1236 * @param path string <p>
1237 * The path being checked.
1238 * </p>
1239 * @param options int[optional] <p>
1240 * You can specify which elements are returned with optional parameter
1241 * options. It composes from
1242 * PATHINFO_DIRNAME,
1243 * PATHINFO_BASENAME,
1244 * PATHINFO_EXTENSION and
1245 * PATHINFO_FILENAME. It
1246 * defaults to return all elements.
1247 * </p>
1248 * @return mixed The following associative array elements are returned:
1249 * dirname, basename,
1250 * extension (if any), and filename.
1251 * </p>
1252 * <p>
1253 * If options is used, this function will return a 
1254 * string if not all elements are requested.
1255 */
1256function pathinfo ($path, $options = null) {}
1257
1258/**
1259 * Un-quotes a quoted string
1260 * @link http://www.php.net/manual/en/function.stripslashes.php
1261 * @param str string <p>
1262 * The input string.
1263 * </p>
1264 * @return string a string with backslashes stripped off.
1265 * (\' becomes ' and so on.)
1266 * Double backslashes (\\) are made into a single
1267 * backslash (\).
1268 */
1269function stripslashes ($str) {}
1270
1271/**
1272 * Un-quote string quoted with <function>addcslashes</function>
1273 * @link http://www.php.net/manual/en/function.stripcslashes.php
1274 * @param str string <p>
1275 * The string to be unescaped.
1276 * </p>
1277 * @return string the unescaped string.
1278 */
1279function stripcslashes ($str) {}
1280
1281/**
1282 * Find first occurrence of a string
1283 * @link http://www.php.net/manual/en/function.strstr.php
1284 * @param haystack string <p>
1285 * The input string.
1286 * </p>
1287 * @param needle mixed <p>
1288 * If needle is not a string, it is converted to
1289 * an integer and applied as the ordinal value of a character.
1290 * </p>
1291 * @param before_needle bool[optional] <p>
1292 * If true, strstr returns
1293 * the part of the haystack before the first
1294 * occurrence of the needle.
1295 * </p>
1296 * @return string the portion of string, or false if needle
1297 * is not found.
1298 */
1299function strstr ($haystack, $needle, $before_needle = null) {}
1300
1301/**
1302 * Case-insensitive <function>strstr</function>
1303 * @link http://www.php.net/manual/en/function.stristr.php
1304 * @param haystack string <p>
1305 * The string to search in
1306 * </p>
1307 * @param needle mixed <p>
1308 * If needle is not a string, it is converted to
1309 * an integer and applied as the ordinal value of a character.
1310 * </p>
1311 * @param before_needle bool[optional] <p>
1312 * If true, stristr
1313 * returns the part of the haystack before the
1314 * first occurrence of the needle.
1315 * </p>
1316 * @return string the matched substring. If needle is not
1317 * found, returns false.
1318 */
1319function stristr ($haystack, $needle, $before_needle = null) {}
1320
1321/**
1322 * Find the last occurrence of a character in a string
1323 * @link http://www.php.net/manual/en/function.strrchr.php
1324 * @param haystack string <p>
1325 * The string to search in
1326 * </p>
1327 * @param needle mixed <p>
1328 * If needle contains more than one character,
1329 * only the first is used. This behavior is different from that of
1330 * strstr.
1331 * </p>
1332 * <p>
1333 * If needle is not a string, it is converted to
1334 * an integer and applied as the ordinal value of a character.
1335 * </p>
1336 * @return string This function returns the portion of string, or false if
1337 * needle is not found.
1338 */
1339function strrchr ($haystack, $needle) {}
1340
1341/**
1342 * Randomly shuffles a string
1343 * @link http://www.php.net/manual/en/function.str-shuffle.php
1344 * @param str string <p>
1345 * The input string.
1346 * </p>
1347 * @return string the shuffled string.
1348 */
1349function str_shuffle ($str) {}
1350
1351/**
1352 * Return information about words used in a string
1353 * @link http://www.php.net/manual/en/function.str-word-count.php
1354 * @param string string <p>
1355 * The string
1356 * </p>
1357 * @param format int[optional] <p>
1358 * Specify the return value of this function. The current supported values
1359 * are:
1360 * 0 - returns the number of words found
1361 * @param charlist string[optional] <p>
1362 * A list of additional characters which will be considered as 'word'
1363 * </p>
1364 * @return mixed an array or an integer, depending on the
1365 * format chosen.
1366 */
1367function str_word_count ($string, $format = null, $charlist = null) {}
1368
1369/**
1370 * Convert a string to an array
1371 * @link http://www.php.net/manual/en/function.str-split.php
1372 * @param string string <p>
1373 * The input string.
1374 * </p>
1375 * @param split_length int[optional] <p>
1376 * Maximum length of the chunk.
1377 * </p>
1378 * @return array If the optional split_length parameter is
1379 * specified, the returned array will be broken down into chunks with each
1380 * being split_length in length, otherwise each chunk
1381 * will be one character in length.
1382 * </p>
1383 * <p>
1384 * false is returned if split_length is less than 1.
1385 * If the split_length length exceeds the length of
1386 * string, the entire string is returned as the first
1387 * (and only) array element.
1388 */
1389function str_split ($string, $split_length = null) {}
1390
1391/**
1392 * Search a string for any of a set of characters
1393 * @link http://www.php.net/manual/en/function.strpbrk.php
1394 * @param haystack string <p>
1395 * The string where char_list is looked for.
1396 * </p>
1397 * @param char_list string <p>
1398 * This parameter is case sensitive.
1399 * </p>
1400 * @return string a string starting from the character found, or false if it is
1401 * not found.
1402 */
1403function strpbrk ($haystack, $char_list) {}
1404
1405/**
1406 * Binary safe comparison of two strings from an offset, up to length characters
1407 * @link http://www.php.net/manual/en/function.substr-compare.php
1408 * @param main_str string <p>
1409 * The main string being compared.
1410 * </p>
1411 * @param str string <p>
1412 * The secondary string being compared.
1413 * </p>
1414 * @param offset int <p>
1415 * The start position for the comparison. If negative, it starts counting
1416 * from the end of the string.
1417 * </p>
1418 * @param length int[optional] <p>
1419 * The length of the comparison. The default value is the largest of the
1420 * length of the str compared to the length of
1421 * main_str less the
1422 * offset.
1423 * </p>
1424 * @param case_insensitivity bool[optional] <p>
1425 * If case_insensitivity is true, comparison is
1426 * case insensitive.
1427 * </p>
1428 * @return int &lt; 0 if main_str from position
1429 * offset is less than str, &gt;
1430 * 0 if it is greater than str, and 0 if they are equal.
1431 * If offset is equal to or greater than the length of
1432 * main_str or length is set and
1433 * is less than 1, substr_compare prints a warning and returns
1434 * false.
1435 */
1436function substr_compare ($main_str, $str, $offset, $length = null, $case_insensitivity = null) {}
1437
1438/**
1439 * Locale based string comparison
1440 * @link http://www.php.net/manual/en/function.strcoll.php
1441 * @param str1 string <p>
1442 * The first string.
1443 * </p>
1444 * @param str2 string <p>
1445 * The second string.
1446 * </p>
1447 * @return int &lt; 0 if str1 is less than
1448 * str2; &gt; 0 if
1449 * str1 is greater than
1450 * str2, and 0 if they are equal.
1451 */
1452function strcoll ($str1, $str2) {}
1453
1454/**
1455 * Formats a number as a currency string
1456 * @link http://www.php.net/manual/en/function.money-format.php
1457 * @param format string <p>
1458 * The format specification consists of the following sequence:
1459 * <p>a % character</p>
1460 * @param number float <p>
1461 * The number to be formatted.
1462 * </p>
1463 * @return string the formatted string. Characters before and after the formatting
1464 * string will be returned unchanged.
1465 * Non-numeric number causes returning &null; and
1466 * emitting E_WARNING.
1467 */
1468function money_format ($format, $number) {}
1469
1470/**
1471 * Return part of a string
1472 * @link http://www.php.net/manual/en/function.substr.php
1473 * @param string string <p>
1474 * The input string.
1475 * </p>
1476 * @param start int <p>
1477 * If start is non-negative, the returned string
1478 * will start at the start'th position in
1479 * string, counting from zero. For instance,
1480 * in the string 'abcdef', the character at
1481 * position 0 is 'a', the
1482 * character at position 2 is
1483 * 'c', and so forth.
1484 * </p>
1485 * <p>
1486 * If start is negative, the returned string
1487 * will start at the start'th character
1488 * from the end of string.
1489 * </p>
1490 * <p>
1491 * If string is less than or equal to
1492 * start characters long, false will be returned.
1493 * </p>
1494 * <p>
1495 * Example #1 Using a negative start
1496 * </p>
1497 * <pre>
1498 *   &lt;?php
1499 *   $rest = substr("abcdef", -1);    // returns "f"
1500 *   $rest = substr("abcdef", -2);    // returns "ef"
1501 *   $rest = substr("abcdef", -3, 1); // returns "d"
1502 *  ?&gt;
1503 * </pre>
1504 * @param length int[optional] <p>
1505 * If length is given and is positive, the string
1506 * returned will contain at most length characters
1507 * beginning from start (depending on the length of
1508 * string).
1509 * </p>
1510 * <p>
1511 * If length is given and is negative, then that many
1512 * characters will be omitted from the end of string
1513 * (after the start position has been calculated when a
1514 * start is negative). If
1515 * start denotes a position beyond this truncation,
1516 * an empty string will be returned.
1517 * </p>
1518 * <p>
1519 * If length is given and is 0,
1520 * false or &null; an empty string will be returned.
1521 * </p>
1522 * <p>
1523 * Example #2 Using a negative length
1524 * </p>
1525 * <pre>
1526 *   &lt;?php
1527 *   $rest = substr("abcdef", 0, -1);  // returns "abcde"
1528 *   $rest = substr("abcdef", 2, -1);  // returns "cde"
1529 *   $rest = substr("abcdef", 4, -4);  // returns false
1530 *   $rest = substr("abcdef", -3, -1); // returns "de"
1531 *  ?&gt;
1532 * </pre>
1533 * @return string the extracted part of string&return.falseforfailure;.
1534 */
1535function substr ($string, $start, $length = null) {}
1536
1537/**
1538 * Replace text within a portion of a string
1539 * @link http://www.php.net/manual/en/function.substr-replace.php
1540 * @param string mixed <p>
1541 * The input string.
1542 * </p>
1543 * @param replacement string <p>
1544 * The replacement string.
1545 * </p>
1546 * @param start int <p>
1547 * If start is positive, the replacing will
1548 * begin at the start'th offset into
1549 * string.
1550 * </p>
1551 * <p>
1552 * If start is negative, the replacing will
1553 * begin at the start'th character from the
1554 * end of string.
1555 * </p>
1556 * @param length int[optional] <p>
1557 * If given and is positive, it represents the length of the portion of
1558 * string which is to be replaced. If it is
1559 * negative, it represents the number of characters from the end of
1560 * string at which to stop replacing. If it
1561 * is not given, then it will default to strlen(
1562 * string ); i.e. end the replacing at the
1563 * end of string. Of course, if
1564 * length is zero then this function will have the
1565 * effect of inserting replacement into
1566 * string at the given
1567 * start offset.
1568 * </p>
1569 * @return mixed The result string is returned. If string is an
1570 * array then array is returned.
1571 */
1572function substr_replace ($string, $replacement, $start, $length = null) {}
1573
1574/**
1575 * Quote meta characters
1576 * @link http://www.php.net/manual/en/function.quotemeta.php
1577 * @param str string <p>
1578 * The input string.
1579 * </p>
1580 * @return string the string with meta characters quoted.
1581 */
1582function quotemeta ($str) {}
1583
1584/**
1585 * Make a string's first character uppercase
1586 * @link http://www.php.net/manual/en/function.ucfirst.php
1587 * @param str string <p>
1588 * The input string.
1589 * </p>
1590 * @return string the resulting string.
1591 */
1592function ucfirst ($str) {}
1593
1594/**
1595 * Make a string's first character lowercase
1596 * @link http://www.php.net/manual/en/function.lcfirst.php
1597 * @param str string <p>
1598 * The input string.
1599 * </p>
1600 * @return string the resulting string.
1601 */
1602function lcfirst ($str) {}
1603
1604/**
1605 * Uppercase the first character of each word in a string
1606 * @link http://www.php.net/manual/en/function.ucwords.php
1607 * @param str string <p>
1608 * The input string.
1609 * </p>
1610 * @return string the modified string.
1611 */
1612function ucwords ($str) {}
1613
1614/**
1615 * Translate certain characters
1616 * @link http://www.php.net/manual/en/function.strtr.php
1617 * @param str string <p>
1618 * The string being translated.
1619 * </p>
1620 * @param from string <p>
1621 * The string being translated to to.
1622 * </p>
1623 * @param to string <p>
1624 * The string replacing from.
1625 * </p>
1626 * @return string This function returns a copy of str,
1627 * translating all occurrences of each character in
1628 * from to the corresponding character in
1629 * to.
1630 */
1631function strtr ($str, $from, $to) {}
1632
1633/**
1634 * Quote string with slashes
1635 * @link http://www.php.net/manual/en/function.addslashes.php
1636 * @param str string <p>
1637 * The string to be escaped.
1638 * </p>
1639 * @return string the escaped string.
1640 */
1641function addslashes ($str) {}
1642
1643/**
1644 * Quote string with slashes in a C style
1645 * @link http://www.php.net/manual/en/function.addcslashes.php
1646 * @param str string <p>
1647 * The string to be escaped.
1648 * </p>
1649 * @param charlist string <p>
1650 * A list of characters to be escaped. If
1651 * charlist contains characters
1652 * \n, \r etc., they are
1653 * converted in C-like style, while other non-alphanumeric characters
1654 * with ASCII codes lower than 32 and higher than 126 converted to
1655 * octal representation.
1656 * </p>
1657 * <p>
1658 * When you define a sequence of characters in the charlist argument
1659 * make sure that you know what characters come between the
1660 * characters that you set as the start and end of the range.
1661 * <pre>
1662 *  &lt;?php
1663 *  echo addcslashes('foo[ ]', 'A..z');
1664 *  // output:  \f\o\o\[ \]
1665 *  // All upper and lower-case letters will be escaped
1666 *  // ... but so will the [\]^_`
1667 *  ?&gt;
1668 * </pre>
1669 * Also, if the first character in a range has a higher ASCII value
1670 * than the second character in the range, no range will be
1671 * constructed. Only the start, end and period characters will be
1672 * escaped. Use the ord function to find the
1673 * ASCII value for a character.
1674 * </p>
1675 * <pre>
1676 *  &lt;?php
1677 *  echo addcslashes("zoo['.']", 'z..A');
1678 *  // output:  \zoo['\.']
1679 *  ?&gt;
1680 * </pre>
1681 * <p>
1682 * Be careful if you choose to escape characters 0, a, b, f, n, r,
1683 * t and v. They will be converted to \0, \a, \b, \f, \n, \r, \t
1684 * and \v.
1685 * In PHP \0 (NULL), \r (carriage return), \n (newline), \f (form feed),
1686 * \v (vertical tab) and \t (tab) are predefined escape sequences, 
1687 * while in C all of these are predefined escape sequences.
1688 * </p>
1689 * @return string the escaped string.
1690 */
1691function addcslashes ($str, $charlist) {}
1692
1693/**
1694 * Strip whitespace (or other characters) from the end of a string
1695 * @link http://www.php.net/manual/en/function.rtrim.php
1696 * @param str string <p>
1697 * The input string.
1698 * </p>
1699 * @param charlist string[optional] <p>
1700 * You can also specify the characters you want to strip, by means
1701 * of the charlist parameter.
1702 * Simply list all characters that you want to be stripped. With
1703 * .. you can specify a range of characters.
1704 * </p>
1705 * @return string the modified string.
1706 */
1707function rtrim ($str, $charlist = null) {}
1708
1709/**
1710 * Replace all occurrences of the search string with the replacement string
1711 * @link http://www.php.net/manual/en/function.str-replace.php
1712 * @param search mixed <p>
1713 * The value being searched for, otherwise known as the needle.
1714 * An array may be used to designate multiple needles.
1715 * </p>
1716 * @param replace mixed <p>
1717 * The replacement value that replaces found search
1718 * values. An array may be used to designate multiple replacements.
1719 * </p>
1720 * @param subject mixed <p>
1721 * The string or array being searched and replaced on,
1722 * otherwise known as the haystack.
1723 * </p>
1724 * <p>
1725 * If subject is an array, then the search and
1726 * replace is performed with every entry of
1727 * subject, and the return value is an array as
1728 * well.
1729 * </p>
1730 * @

Large files files are truncated, but you can click here to view the full file