/www/.metadata/.plugins/org.eclipse.php.core/__language__/ea1b290a/standard.php
PHP | 2218 lines | 115 code | 114 blank | 1989 comment | 0 complexity | df22207fbe33cd3fa58d045760fe0378 MD5 | raw file
Possible License(s): AGPL-1.0, GPL-2.0, LGPL-2.1, LGPL-2.0, Apache-2.0, MPL-2.0-no-copyleft-exception, GPL-3.0
- <?php
- // Start of standard v.5.2.10
- class __PHP_Incomplete_Class {
- }
- class php_user_filter {
- public $filtername;
- public $params;
- /**
- * @param in
- * @param out
- * @param consumed
- * @param closing
- */
- public function filter ($in, $out, &$consumed, $closing) {}
- public function onCreate () {}
- public function onClose () {}
- }
- class Directory {
- public function close () {}
- public function rewind () {}
- public function read () {}
- }
- /**
- * Returns the value of a constant
- * @link http://www.php.net/manual/en/function.constant.php
- * @param name string <p>
- * The constant name.
- * </p>
- * @return mixed the value of the constant, or &null; if the constant is not
- * defined.
- */
- function constant ($name) {}
- /**
- * Convert binary data into hexadecimal representation
- * @link http://www.php.net/manual/en/function.bin2hex.php
- * @param str string <p>
- * A character.
- * </p>
- * @return string the hexadecimal representation of the given string.
- */
- function bin2hex ($str) {}
- /**
- * Delay execution
- * @link http://www.php.net/manual/en/function.sleep.php
- * @param seconds int <p>
- * Halt time in seconds.
- * </p>
- * @return int zero on success, or false on errors. If the call was interrupted
- * by a signal, sleep returns the number of seconds left
- * to sleep.
- */
- function sleep ($seconds) {}
- /**
- * Delay execution in microseconds
- * @link http://www.php.net/manual/en/function.usleep.php
- * @param micro_seconds int <p>
- * Halt time in micro seconds. A micro second is one millionth of a
- * second.
- * </p>
- * @return void
- */
- function usleep ($micro_seconds) {}
- /**
- * Flush the output buffer
- * @link http://www.php.net/manual/en/function.flush.php
- * @return void
- */
- function flush () {}
- /**
- * Wraps a string to a given number of characters
- * @link http://www.php.net/manual/en/function.wordwrap.php
- * @param str string <p>
- * The input string.
- * </p>
- * @param width int[optional] <p>
- * The column width.
- * </p>
- * @param break string[optional] <p>
- * The line is broken using the optional
- * break parameter.
- * </p>
- * @param cut bool[optional] <p>
- * If the cut is set to true, the string is
- * always wrapped at or before the specified width. So if you have
- * a word that is larger than the given width, it is broken apart.
- * (See second example).
- * </p>
- * @return string the given string wrapped at the specified column.
- */
- function wordwrap ($str, $width = null, $break = null, $cut = null) {}
- /**
- * Convert special characters to HTML entities
- * @link http://www.php.net/manual/en/function.htmlspecialchars.php
- * @param string string <p>
- * The string being converted.
- * </p>
- * @param quote_style int[optional] <p>
- * The optional second argument, quote_style, tells
- * the function what to do with single and double quote characters.
- * The default mode, ENT_COMPAT, is the backwards compatible mode
- * which only translates the double-quote character and leaves the
- * single-quote untranslated. If ENT_QUOTES is set, both single and
- * double quotes are translated and if ENT_NOQUOTES is set neither
- * single nor double quotes are translated.
- * </p>
- * @param charset string[optional] <p>
- * Defines character set used in conversion.
- * The default character set is ISO-8859-1.
- * </p>
- * <p>
- * For the purposes of this function, the charsets
- * ISO-8859-1, ISO-8859-15,
- * UTF-8, cp866,
- * cp1251, cp1252, and
- * KOI8-R are effectively equivalent, as the
- * characters affected by htmlspecialchars
- * occupy the same positions in all of these charsets.
- * </p>
- * &reference.strings.charsets;
- * @param double_encode bool[optional] <p>
- * When double_encode is turned off PHP will not
- * encode existing html entities, the default is to convert everything.
- * </p>
- * @return string The converted string.
- */
- function htmlspecialchars ($string, $quote_style = null, $charset = null, $double_encode = null) {}
- /**
- * Convert all applicable characters to HTML entities
- * @link http://www.php.net/manual/en/function.htmlentities.php
- * @param string string <p>
- * The input string.
- * </p>
- * @param quote_style int[optional] <p>
- * Like htmlspecialchars, the optional second
- * quote_style parameter lets you define what will
- * be done with 'single' and "double" quotes. It takes on one of three
- * constants with the default being ENT_COMPAT:
- * <table>
- * Available quote_style constants
- * <tr valign="top">
- * <td>Constant Name</td>
- * <td>Description</td>
- * </tr>
- * <tr valign="top">
- * <td>ENT_COMPAT</td>
- * <td>Will convert double-quotes and leave single-quotes alone.</td>
- * </tr>
- * <tr valign="top">
- * <td>ENT_QUOTES</td>
- * <td>Will convert both double and single quotes.</td>
- * </tr>
- * <tr valign="top">
- * <td>ENT_NOQUOTES</td>
- * <td>Will leave both double and single quotes unconverted.</td>
- * </tr>
- * </table>
- * </p>
- * @param charset string[optional] <p>
- * Like htmlspecialchars, it takes an optional
- * third argument charset which defines character
- * set used in conversion.
- * Presently, the ISO-8859-1 character set is used as the default.
- * </p>
- * &reference.strings.charsets;
- * @param double_encode bool[optional] <p>
- * When double_encode is turned off PHP will not
- * encode existing html entities. The default is to convert everything.
- * </p>
- * @return string the encoded string.
- */
- function htmlentities ($string, $quote_style = null, $charset = null, $double_encode = null) {}
- /**
- * Convert all HTML entities to their applicable characters
- * @link http://www.php.net/manual/en/function.html-entity-decode.php
- * @param string string <p>
- * The input string.
- * </p>
- * @param quote_style int[optional] <p>
- * The optional second quote_style parameter lets
- * you define what will be done with 'single' and "double" quotes. It takes
- * on one of three constants with the default being
- * ENT_COMPAT:
- * <table>
- * Available quote_style constants
- * <tr valign="top">
- * <td>Constant Name</td>
- * <td>Description</td>
- * </tr>
- * <tr valign="top">
- * <td>ENT_COMPAT</td>
- * <td>Will convert double-quotes and leave single-quotes alone.</td>
- * </tr>
- * <tr valign="top">
- * <td>ENT_QUOTES</td>
- * <td>Will convert both double and single quotes.</td>
- * </tr>
- * <tr valign="top">
- * <td>ENT_NOQUOTES</td>
- * <td>Will leave both double and single quotes unconverted.</td>
- * </tr>
- * </table>
- * </p>
- * @param charset string[optional] <p>
- * The ISO-8859-1 character set is used as default for the optional third
- * charset. This defines the character set used in
- * conversion.
- * </p>
- * &reference.strings.charsets;
- * @return string the decoded string.
- */
- function html_entity_decode ($string, $quote_style = null, $charset = null) {}
- /**
- * Convert special HTML entities back to characters
- * @link http://www.php.net/manual/en/function.htmlspecialchars-decode.php
- * @param string string <p>
- * The string to decode
- * </p>
- * @param quote_style int[optional] <p>
- * The quote style. One of the following constants:
- * <table>
- * quote_style constants
- * <tr valign="top">
- * <td>Constant Name</td>
- * <td>Description</td>
- * </tr>
- * <tr valign="top">
- * <td>ENT_COMPAT</td>
- * <td>Will convert double-quotes and leave single-quotes alone
- * (default)</td>
- * </tr>
- * <tr valign="top">
- * <td>ENT_QUOTES</td>
- * <td>Will convert both double and single quotes</td>
- * </tr>
- * <tr valign="top">
- * <td>ENT_NOQUOTES</td>
- * <td>Will leave both double and single quotes unconverted</td>
- * </tr>
- * </table>
- * </p>
- * @return string the decoded string.
- */
- function htmlspecialchars_decode ($string, $quote_style = null) {}
- /**
- * Returns the translation table used by <function>htmlspecialchars</function> and <function>htmlentities</function>
- * @link http://www.php.net/manual/en/function.get-html-translation-table.php
- * @param table int[optional] <p>
- * There are two new constants (HTML_ENTITIES,
- * HTML_SPECIALCHARS) that allow you to specify the
- * table you want.
- * </p>
- * @param quote_style int[optional] <p>
- * Like the htmlspecialchars and
- * htmlentities functions you can optionally specify
- * the quote_style you are working with.
- * See the description
- * of these modes in htmlspecialchars.
- * </p>
- * @return array the translation table as an array.
- */
- function get_html_translation_table ($table = null, $quote_style = null) {}
- /**
- * Calculate the sha1 hash of a string
- * @link http://www.php.net/manual/en/function.sha1.php
- * @param str string <p>
- * The input string.
- * </p>
- * @param raw_output bool[optional] <p>
- * If the optional raw_output is set to true,
- * then the sha1 digest is instead returned in raw binary format with a
- * length of 20, otherwise the returned value is a 40-character
- * hexadecimal number.
- * </p>
- * @return string the sha1 hash as a string.
- */
- function sha1 ($str, $raw_output = null) {}
- /**
- * Calculate the sha1 hash of a file
- * @link http://www.php.net/manual/en/function.sha1-file.php
- * @param filename string <p>
- * The filename of the file to hash.
- * </p>
- * @param raw_output bool[optional] <p>
- * When true, returns the digest in raw binary format with a length of
- * 20.
- * </p>
- * @return string a string on success, false otherwise.
- */
- function sha1_file ($filename, $raw_output = null) {}
- /**
- * Calculate the md5 hash of a string
- * @link http://www.php.net/manual/en/function.md5.php
- * @param str string <p>
- * The string.
- * </p>
- * @param raw_output bool[optional] <p>
- * If the optional raw_output is set to true,
- * then the md5 digest is instead returned in raw binary format with a
- * length of 16.
- * </p>
- * @return string the hash as a 32-character hexadecimal number.
- */
- function md5 ($str, $raw_output = null) {}
- /**
- * Calculates the md5 hash of a given file
- * @link http://www.php.net/manual/en/function.md5-file.php
- * @param filename string <p>
- * The filename
- * </p>
- * @param raw_output bool[optional] <p>
- * When true, returns the digest in raw binary format with a length of
- * 16.
- * </p>
- * @return string a string on success, false otherwise.
- */
- function md5_file ($filename, $raw_output = null) {}
- /**
- * Calculates the crc32 polynomial of a string
- * @link http://www.php.net/manual/en/function.crc32.php
- * @param str string <p>
- * The data.
- * </p>
- * @return int the crc32 checksum of str as an integer.
- */
- function crc32 ($str) {}
- /**
- * Parse a binary IPTC block into single tags.
- * @link http://www.php.net/manual/en/function.iptcparse.php
- * @param iptcblock string <p>
- * A binary IPTC block.
- * </p>
- * @return array an array using the tagmarker as an index and the value as the
- * value. It returns false on error or if no IPTC data was found.
- */
- function iptcparse ($iptcblock) {}
- /**
- * Embeds binary IPTC data into a JPEG image
- * @link http://www.php.net/manual/en/function.iptcembed.php
- * @param iptcdata string <p>
- * The data to be written.
- * </p>
- * @param jpeg_file_name string <p>
- * Path to the JPEG image.
- * </p>
- * @param spool int[optional] <p>
- * Spool flag. If the spool flag is over 2 then the JPEG will be
- * returned as a string.
- * </p>
- * @return mixed If success and spool flag is lower than 2 then the JPEG will not be
- * returned as a string, false on errors.
- */
- function iptcembed ($iptcdata, $jpeg_file_name, $spool = null) {}
- /**
- * Get the size of an image
- * @link http://www.php.net/manual/en/function.getimagesize.php
- * @param filename string <p>
- * This parameter specifies the file you wish to retrieve information
- * about. It can reference a local file or (configuration permitting) a
- * remote file using one of the supported streams.
- * </p>
- * @param imageinfo array[optional] <p>
- * This optional parameter allows you to extract some extended
- * information from the image file. Currently, this will return the
- * different JPG APP markers as an associative array.
- * Some programs use these APP markers to embed text information in
- * images. A very common one is to embed
- * IPTC information in the APP13 marker.
- * You can use the iptcparse function to parse the
- * binary APP13 marker into something readable.
- * </p>
- * @return array an array with 7 elements.
- * </p>
- * <p>
- * Index 0 and 1 contains respectively the width and the height of the image.
- * </p>
- * <p>
- * Some formats may contain no image or may contain multiple images. In these
- * cases, getimagesize might not be able to properly
- * determine the image size. getimagesize will return
- * zero for width and height in these cases.
- * </p>
- * <p>
- * Index 2 is one of the IMAGETYPE_XXX constants indicating
- * the type of the image.
- * </p>
- * <p>
- * Index 3 is a text string with the correct
- * height="yyy" width="xxx" string that can be used
- * directly in an IMG tag.
- * </p>
- * <p>
- * mime is the correspondant MIME type of the image.
- * This information can be used to deliver images with correct the HTTP
- * Content-type header:
- * getimagesize and MIME types
- * ]]>
- * </p>
- * <p>
- * channels will be 3 for RGB pictures and 4 for CMYK
- * pictures.
- * </p>
- * <p>
- * bits is the number of bits for each color.
- * </p>
- * <p>
- * For some image types, the presence of channels and
- * bits values can be a bit
- * confusing. As an example, GIF always uses 3 channels
- * per pixel, but the number of bits per pixel cannot be calculated for an
- * animated GIF with a global color table.
- * </p>
- * <p>
- * On failure, false is returned.
- */
- function getimagesize ($filename, array &$imageinfo = null) {}
- /**
- * Get Mime-Type for image-type returned by getimagesize,
- exif_read_data, exif_thumbnail, exif_imagetype
- * @link http://www.php.net/manual/en/function.image-type-to-mime-type.php
- * @param imagetype int <p>
- * One of the IMAGETYPE_XXX constants.
- * </p>
- * @return string The returned values are as follows
- * <table>
- * Returned values Constants
- * <tr valign="top">
- * <td>imagetype</td>
- * <td>Returned value</td>
- * </tr>
- * <tr valign="top">
- * <td>IMAGETYPE_GIF</td>
- * <td>image/gif</td>
- * </tr>
- * <tr valign="top">
- * <td>IMAGETYPE_JPEG</td>
- * <td>image/jpeg</td>
- * </tr>
- * <tr valign="top">
- * <td>IMAGETYPE_PNG</td>
- * <td>image/png</td>
- * </tr>
- * <tr valign="top">
- * <td>IMAGETYPE_SWF</td>
- * <td>application/x-shockwave-flash</td>
- * </tr>
- * <tr valign="top">
- * <td>IMAGETYPE_PSD</td>
- * <td>image/psd</td>
- * </tr>
- * <tr valign="top">
- * <td>IMAGETYPE_BMP</td>
- * <td>image/bmp</td>
- * </tr>
- * <tr valign="top">
- * <td>IMAGETYPE_TIFF_II (intel byte order)</td>
- * <td>image/tiff</td>
- * </tr>
- * <tr valign="top">
- * <td>
- * IMAGETYPE_TIFF_MM (motorola byte order)
- * </td>
- * <td>image/tiff</td>
- * </tr>
- * <tr valign="top">
- * <td>IMAGETYPE_JPC</td>
- * <td>application/octet-stream</td>
- * </tr>
- * <tr valign="top">
- * <td>IMAGETYPE_JP2</td>
- * <td>image/jp2</td>
- * </tr>
- * <tr valign="top">
- * <td>IMAGETYPE_JPX</td>
- * <td>application/octet-stream</td>
- * </tr>
- * <tr valign="top">
- * <td>IMAGETYPE_JB2</td>
- * <td>application/octet-stream</td>
- * </tr>
- * <tr valign="top">
- * <td>IMAGETYPE_SWC</td>
- * <td>application/x-shockwave-flash</td>
- * </tr>
- * <tr valign="top">
- * <td>IMAGETYPE_IFF</td>
- * <td>image/iff</td>
- * </tr>
- * <tr valign="top">
- * <td>IMAGETYPE_WBMP</td>
- * <td>image/vnd.wap.wbmp</td>
- * </tr>
- * <tr valign="top">
- * <td>IMAGETYPE_XBM</td>
- * <td>image/xbm</td>
- * </tr>
- * <tr valign="top">
- * <td>IMAGETYPE_ICO</td>
- * <td>image/vnd.microsoft.icon</td>
- * </tr>
- * </table>
- */
- function image_type_to_mime_type ($imagetype) {}
- /**
- * Get file extension for image type
- * @link http://www.php.net/manual/en/function.image-type-to-extension.php
- * @param imagetype int <p>
- * One of the IMAGETYPE_XXX constant.
- * </p>
- * @param include_dot bool[optional] <p>
- * Whether to prepend a dot to the extension or not. Default to true.
- * </p>
- * @return string A string with the extension corresponding to the given image type.
- */
- function image_type_to_extension ($imagetype, $include_dot = null) {}
- /**
- * Outputs lots of PHP information
- * @link http://www.php.net/manual/en/function.phpinfo.php
- * @param what int[optional] <p>
- * The output may be customized by passing one or more of the
- * following constants bitwise values summed
- * together in the optional what parameter.
- * One can also combine the respective constants or bitwise values
- * together with the or operator.
- * </p>
- * <p>
- * <table>
- * phpinfo options
- * <tr valign="top">
- * <td>Name (constant)</td>
- * <td>Value</td>
- * <td>Description</td>
- * </tr>
- * <tr valign="top">
- * <td>INFO_GENERAL</td>
- * <td>1</td>
- * <td>
- * The configuration line, &php.ini; location, build date, Web
- * Server, System and more.
- * </td>
- * </tr>
- * <tr valign="top">
- * <td>INFO_CREDITS</td>
- * <td>2</td>
- * <td>
- * PHP Credits. See also phpcredits.
- * </td>
- * </tr>
- * <tr valign="top">
- * <td>INFO_CONFIGURATION</td>
- * <td>4</td>
- * <td>
- * Current Local and Master values for PHP directives. See
- * also ini_get.
- * </td>
- * </tr>
- * <tr valign="top">
- * <td>INFO_MODULES</td>
- * <td>8</td>
- * <td>
- * Loaded modules and their respective settings. See also
- * get_loaded_extensions.
- * </td>
- * </tr>
- * <tr valign="top">
- * <td>INFO_ENVIRONMENT</td>
- * <td>16</td>
- * <td>
- * Environment Variable information that's also available in
- * $_ENV.
- * </td>
- * </tr>
- * <tr valign="top">
- * <td>INFO_VARIABLES</td>
- * <td>32</td>
- * <td>
- * Shows all
- * predefined variables from EGPCS (Environment, GET,
- * POST, Cookie, Server).
- * </td>
- * </tr>
- * <tr valign="top">
- * <td>INFO_LICENSE</td>
- * <td>64</td>
- * <td>
- * PHP License information. See also the license FAQ.
- * </td>
- * </tr>
- * <tr valign="top">
- * <td>INFO_ALL</td>
- * <td>-1</td>
- * <td>
- * Shows all of the above.
- * </td>
- * </tr>
- * </table>
- * </p>
- * @return bool Returns true on success or false on failure.
- */
- function phpinfo ($what = null) {}
- /**
- * Gets the current PHP version
- * @link http://www.php.net/manual/en/function.phpversion.php
- * @param extension string[optional] <p>
- * An optional extension name.
- * </p>
- * @return string If the optional extension parameter is
- * specified, phpversion returns the version of that
- * extension, or false if there is no version information associated or
- * the extension isn't enabled.
- */
- function phpversion ($extension = null) {}
- /**
- * Prints out the credits for PHP
- * @link http://www.php.net/manual/en/function.phpcredits.php
- * @param flag int[optional] <p>
- * To generate a custom credits page, you may want to use the
- * flag parameter.
- * </p>
- * <p>
- * <table>
- * Pre-defined phpcredits flags
- * <tr valign="top">
- * <td>name</td>
- * <td>description</td>
- * </tr>
- * <tr valign="top">
- * <td>CREDITS_ALL</td>
- * <td>
- * All the credits, equivalent to using: CREDITS_DOCS +
- * CREDITS_GENERAL + CREDITS_GROUP +
- * CREDITS_MODULES + CREDITS_FULLPAGE.
- * It generates a complete stand-alone HTML page with the appropriate tags.
- * </td>
- * </tr>
- * <tr valign="top">
- * <td>CREDITS_DOCS</td>
- * <td>The credits for the documentation team</td>
- * </tr>
- * <tr valign="top">
- * <td>CREDITS_FULLPAGE</td>
- * <td>
- * Usually used in combination with the other flags. Indicates
- * that a complete stand-alone HTML page needs to be
- * printed including the information indicated by the other
- * flags.
- * </td>
- * </tr>
- * <tr valign="top">
- * <td>CREDITS_GENERAL</td>
- * <td>
- * General credits: Language design and concept, PHP 4.0
- * authors and SAPI module.
- * </td>
- * </tr>
- * <tr valign="top">
- * <td>CREDITS_GROUP</td>
- * <td>A list of the core developers</td>
- * </tr>
- * <tr valign="top">
- * <td>CREDITS_MODULES</td>
- * <td>
- * A list of the extension modules for PHP, and their authors
- * </td>
- * </tr>
- * <tr valign="top">
- * <td>CREDITS_SAPI</td>
- * <td>
- * A list of the server API modules for PHP, and their authors
- * </td>
- * </tr>
- * </table>
- * </p>
- * @return bool Returns true on success or false on failure.
- */
- function phpcredits ($flag = null) {}
- /**
- * Gets the logo guid
- * @link http://www.php.net/manual/en/function.php-logo-guid.php
- * @return string PHPE9568F34-D428-11d2-A769-00AA001ACF42.
- */
- function php_logo_guid () {}
- function php_real_logo_guid () {}
- function php_egg_logo_guid () {}
- /**
- * Gets the Zend guid
- * @link http://www.php.net/manual/en/function.zend-logo-guid.php
- * @return string PHPE9568F35-D428-11d2-A769-00AA001ACF42.
- */
- function zend_logo_guid () {}
- /**
- * Returns the type of interface between web server and PHP
- * @link http://www.php.net/manual/en/function.php-sapi-name.php
- * @return string the interface type, as a lowercase string.
- * </p>
- * <p>
- * Although not exhaustive, the possible return values include
- * aolserver, apache,
- * apache2filter, apache2handler,
- * caudium, cgi (until PHP 5.3),
- * cgi-fcgi, cli,
- * continuity, embed,
- * isapi, litespeed,
- * milter, nsapi,
- * phttpd, pi3web, roxen,
- * thttpd, tux, and webjames.
- */
- function php_sapi_name () {}
- /**
- * Returns information about the operating system PHP is running on
- * @link http://www.php.net/manual/en/function.php-uname.php
- * @param mode string[optional] <p>
- * mode is a single character that defines what
- * information is returned:
- * 'a': This is the default. Contains all modes in
- * the sequence "s n r v m".
- * @return string the description, as a string.
- */
- function php_uname ($mode = null) {}
- /**
- * Return a list of .ini files parsed from the additional ini dir
- * @link http://www.php.net/manual/en/function.php-ini-scanned-files.php
- * @return string a comma-separated string of .ini files on success. Each comma is
- * followed by a newline. If the directive --with-config-file-scan-dir wasn't set,
- * false is returned. If it was set and the directory was empty, an
- * empty string is returned. If a file is unrecognizable, the file will
- * still make it into the returned string but a PHP error will also result.
- * This PHP error will be seen both at compile time and while using
- * php_ini_scanned_files.
- */
- function php_ini_scanned_files () {}
- /**
- * Retrieve a path to the loaded php.ini file
- * @link http://www.php.net/manual/en/function.php-ini-loaded-file.php
- * @return string The loaded &php.ini; path, or false if one is not loaded.
- */
- function php_ini_loaded_file () {}
- /**
- * String comparisons using a "natural order" algorithm
- * @link http://www.php.net/manual/en/function.strnatcmp.php
- * @param str1 string <p>
- * The first string.
- * </p>
- * @param str2 string <p>
- * The second string.
- * </p>
- * @return int Similar to other string comparison functions, this one returns < 0 if
- * str1 is less than str2; >
- * 0 if str1 is greater than
- * str2, and 0 if they are equal.
- */
- function strnatcmp ($str1, $str2) {}
- /**
- * Case insensitive string comparisons using a "natural order" algorithm
- * @link http://www.php.net/manual/en/function.strnatcasecmp.php
- * @param str1 string <p>
- * The first string.
- * </p>
- * @param str2 string <p>
- * The second string.
- * </p>
- * @return int Similar to other string comparison functions, this one returns < 0 if
- * str1 is less than str2 >
- * 0 if str1 is greater than
- * str2, and 0 if they are equal.
- */
- function strnatcasecmp ($str1, $str2) {}
- /**
- * Count the number of substring occurrences
- * @link http://www.php.net/manual/en/function.substr-count.php
- * @param haystack string <p>
- * The string to search in
- * </p>
- * @param needle string <p>
- * The substring to search for
- * </p>
- * @param offset int[optional] <p>
- * The offset where to start counting
- * </p>
- * @param length int[optional] <p>
- * The maximum length after the specified offset to search for the
- * substring. It outputs a warning if the offset plus the length is
- * greater than the haystack length.
- * </p>
- * @return int This functions returns an integer.
- */
- function substr_count ($haystack, $needle, $offset = null, $length = null) {}
- /**
- * Finds the length of the first segment of a string consisting
- entirely of characters contained within a given mask.
- * @link http://www.php.net/manual/en/function.strspn.php
- * @param subject string <p>
- * The string to examine.
- * </p>
- * @param mask string <p>
- * The list of allowable characters to include in counted segments.
- * </p>
- * @param start int[optional] <p>
- * The position in subject to
- * start searching.
- * </p>
- * <p>
- * If start is given and is non-negative,
- * then strspn will begin
- * examining subject at
- * the start'th position. For instance, in
- * the string 'abcdef', the character at
- * position 0 is 'a', the
- * character at position 2 is
- * 'c', and so forth.
- * </p>
- * <p>
- * If start is given and is negative,
- * then strspn will begin
- * examining subject at
- * the start'th position from the end
- * of subject.
- * </p>
- * @param length int[optional] <p>
- * The length of the segment from subject
- * to examine.
- * </p>
- * <p>
- * If length is given and is non-negative,
- * then subject will be examined
- * for length characters after the starting
- * position.
- * </p>
- * <p>
- * If lengthis given and is negative,
- * then subject will be examined from the
- * starting position up to length
- * characters from the end of subject.
- * </p>
- * @return int the length of the initial segment of str1
- * which consists entirely of characters in str2.
- */
- function strspn ($subject, $mask, $start = null, $length = null) {}
- /**
- * Find length of initial segment not matching mask
- * @link http://www.php.net/manual/en/function.strcspn.php
- * @param str1 string <p>
- * The first string.
- * </p>
- * @param str2 string <p>
- * The second string.
- * </p>
- * @param start int[optional] <p>
- * The start position of the string to examine.
- * </p>
- * @param length int[optional] <p>
- * The length of the string to examine.
- * </p>
- * @return int the length of the segment as an integer.
- */
- function strcspn ($str1, $str2, $start = null, $length = null) {}
- /**
- * Tokenize string
- * @link http://www.php.net/manual/en/function.strtok.php
- * @param str string <p>
- * The string being split up into smaller strings (tokens).
- * </p>
- * @param token string <p>
- * The delimiter used when splitting up str.
- * </p>
- * @return string A string token.
- */
- function strtok ($str, $token) {}
- /**
- * Make a string uppercase
- * @link http://www.php.net/manual/en/function.strtoupper.php
- * @param string string <p>
- * The input string.
- * </p>
- * @return string the uppercased string.
- */
- function strtoupper ($string) {}
- /**
- * Make a string lowercase
- * @link http://www.php.net/manual/en/function.strtolower.php
- * @param str string <p>
- * The input string.
- * </p>
- * @return string the lowercased string.
- */
- function strtolower ($str) {}
- /**
- * Find position of first occurrence of a string
- * @link http://www.php.net/manual/en/function.strpos.php
- * @param haystack string <p>
- * The string to search in
- * </p>
- * @param needle mixed <p>
- * If needle is not a string, it is converted
- * to an integer and applied as the ordinal value of a character.
- * </p>
- * @param offset int[optional] <p>
- * The optional offset parameter allows you
- * to specify which character in haystack to
- * start searching. The position returned is still relative to the
- * beginning of haystack.
- * </p>
- * @return int the position as an integer. If needle is
- * not found, strpos will return boolean
- * false.
- */
- function strpos ($haystack, $needle, $offset = null) {}
- /**
- * Find position of first occurrence of a case-insensitive string
- * @link http://www.php.net/manual/en/function.stripos.php
- * @param haystack string <p>
- * The string to search in
- * </p>
- * @param needle string <p>
- * Note that the needle may be a string of one or
- * more characters.
- * </p>
- * <p>
- * If needle is not a string, it is converted to
- * an integer and applied as the ordinal value of a character.
- * </p>
- * @param offset int[optional] <p>
- * The optional offset parameter allows you
- * to specify which character in haystack to
- * start searching. The position returned is still relative to the
- * beginning of haystack.
- * </p>
- * @return int If needle is not found,
- * stripos will return boolean false.
- */
- function stripos ($haystack, $needle, $offset = null) {}
- /**
- * Find position of last occurrence of a char in a string
- * @link http://www.php.net/manual/en/function.strrpos.php
- * @param haystack string <p>
- * The string to search in.
- * </p>
- * @param needle string <p>
- * If needle is not a string, it is converted
- * to an integer and applied as the ordinal value of a character.
- * </p>
- * @param offset int[optional] <p>
- * May be specified to begin searching an arbitrary number of characters into
- * the string. Negative values will stop searching at an arbitrary point
- * prior to the end of the string.
- * </p>
- * @return int the position where the needle exists. Returns false if the needle
- * was not found.
- */
- function strrpos ($haystack, $needle, $offset = null) {}
- /**
- * Find position of last occurrence of a case-insensitive string in a string
- * @link http://www.php.net/manual/en/function.strripos.php
- * @param haystack string <p>
- * The string to search in
- * </p>
- * @param needle string <p>
- * Note that the needle may be a string of one or
- * more characters.
- * </p>
- * @param offset int[optional] <p>
- * The offset parameter may be specified to begin
- * searching an arbitrary number of characters into the string.
- * </p>
- * <p>
- * Negative offset values will start the search at
- * offset characters from the
- * start of the string.
- * </p>
- * @return int the numerical position of the last occurrence of
- * needle. Also note that string positions start at 0,
- * and not 1.
- * </p>
- * <p>
- * If needle is not found, false is returned.
- */
- function strripos ($haystack, $needle, $offset = null) {}
- /**
- * Reverse a string
- * @link http://www.php.net/manual/en/function.strrev.php
- * @param string string <p>
- * The string to be reversed.
- * </p>
- * @return string the reversed string.
- */
- function strrev ($string) {}
- /**
- * Convert logical Hebrew text to visual text
- * @link http://www.php.net/manual/en/function.hebrev.php
- * @param hebrew_text string <p>
- * A Hebrew input string.
- * </p>
- * @param max_chars_per_line int[optional] <p>
- * This optional parameter indicates maximum number of characters per
- * line that will be returned.
- * </p>
- * @return string the visual string.
- */
- function hebrev ($hebrew_text, $max_chars_per_line = null) {}
- /**
- * Convert logical Hebrew text to visual text with newline conversion
- * @link http://www.php.net/manual/en/function.hebrevc.php
- * @param hebrew_text string <p>
- * A Hebrew input string.
- * </p>
- * @param max_chars_per_line int[optional] <p>
- * This optional parameter indicates maximum number of characters per
- * line that will be returned.
- * </p>
- * @return string the visual string.
- */
- function hebrevc ($hebrew_text, $max_chars_per_line = null) {}
- /**
- * Inserts HTML line breaks before all newlines in a string
- * @link http://www.php.net/manual/en/function.nl2br.php
- * @param string string <p>
- * The input string.
- * </p>
- * @param is_xhtml bool[optional] <p>
- * Whenever to use XHTML compatible line breaks or not.
- * </p>
- * @return string the altered string.
- */
- function nl2br ($string, $is_xhtml = null) {}
- /**
- * Returns filename component of path
- * @link http://www.php.net/manual/en/function.basename.php
- * @param path string <p>
- * A path.
- * </p>
- * <p>
- * On Windows, both slash (/) and backslash
- * (\) are used as directory separator character. In
- * other environments, it is the forward slash (/).
- * </p>
- * @param suffix string[optional] <p>
- * If the filename ends in suffix this will also
- * be cut off.
- * </p>
- * @return string the base name of the given path.
- */
- function basename ($path, $suffix = null) {}
- /**
- * Returns directory name component of path
- * @link http://www.php.net/manual/en/function.dirname.php
- * @param path string <p>
- * A path.
- * </p>
- * <p>
- * On Windows, both slash (/) and backslash
- * (\) are used as directory separator character. In
- * other environments, it is the forward slash (/).
- * </p>
- * @return string the name of the directory. If there are no slashes in
- * path, a dot ('.') is returned,
- * indicating the current directory. Otherwise, the returned string is
- * path with any trailing
- * /component removed.
- */
- function dirname ($path) {}
- /**
- * Returns information about a file path
- * @link http://www.php.net/manual/en/function.pathinfo.php
- * @param path string <p>
- * The path being checked.
- * </p>
- * @param options int[optional] <p>
- * You can specify which elements are returned with optional parameter
- * options. It composes from
- * PATHINFO_DIRNAME,
- * PATHINFO_BASENAME,
- * PATHINFO_EXTENSION and
- * PATHINFO_FILENAME. It
- * defaults to return all elements.
- * </p>
- * @return mixed The following associative array elements are returned:
- * dirname, basename,
- * extension (if any), and filename.
- * </p>
- * <p>
- * If options is used, this function will return a
- * string if not all elements are requested.
- */
- function pathinfo ($path, $options = null) {}
- /**
- * Un-quotes a quoted string
- * @link http://www.php.net/manual/en/function.stripslashes.php
- * @param str string <p>
- * The input string.
- * </p>
- * @return string a string with backslashes stripped off.
- * (\' becomes ' and so on.)
- * Double backslashes (\\) are made into a single
- * backslash (\).
- */
- function stripslashes ($str) {}
- /**
- * Un-quote string quoted with <function>addcslashes</function>
- * @link http://www.php.net/manual/en/function.stripcslashes.php
- * @param str string <p>
- * The string to be unescaped.
- * </p>
- * @return string the unescaped string.
- */
- function stripcslashes ($str) {}
- /**
- * Find first occurrence of a string
- * @link http://www.php.net/manual/en/function.strstr.php
- * @param haystack string <p>
- * The input string.
- * </p>
- * @param needle mixed <p>
- * If needle is not a string, it is converted to
- * an integer and applied as the ordinal value of a character.
- * </p>
- * @param before_needle bool[optional] <p>
- * If true, strstr returns
- * the part of the haystack before the first
- * occurrence of the needle.
- * </p>
- * @return string the portion of string, or false if needle
- * is not found.
- */
- function strstr ($haystack, $needle, $before_needle = null) {}
- /**
- * Case-insensitive <function>strstr</function>
- * @link http://www.php.net/manual/en/function.stristr.php
- * @param haystack string <p>
- * The string to search in
- * </p>
- * @param needle mixed <p>
- * If needle is not a string, it is converted to
- * an integer and applied as the ordinal value of a character.
- * </p>
- * @param before_needle bool[optional] <p>
- * If true, stristr
- * returns the part of the haystack before the
- * first occurrence of the needle.
- * </p>
- * @return string the matched substring. If needle is not
- * found, returns false.
- */
- function stristr ($haystack, $needle, $before_needle = null) {}
- /**
- * Find the last occurrence of a character in a string
- * @link http://www.php.net/manual/en/function.strrchr.php
- * @param haystack string <p>
- * The string to search in
- * </p>
- * @param needle mixed <p>
- * If needle contains more than one character,
- * only the first is used. This behavior is different from that of
- * strstr.
- * </p>
- * <p>
- * If needle is not a string, it is converted to
- * an integer and applied as the ordinal value of a character.
- * </p>
- * @return string This function returns the portion of string, or false if
- * needle is not found.
- */
- function strrchr ($haystack, $needle) {}
- /**
- * Randomly shuffles a string
- * @link http://www.php.net/manual/en/function.str-shuffle.php
- * @param str string <p>
- * The input string.
- * </p>
- * @return string the shuffled string.
- */
- function str_shuffle ($str) {}
- /**
- * Return information about words used in a string
- * @link http://www.php.net/manual/en/function.str-word-count.php
- * @param string string <p>
- * The string
- * </p>
- * @param format int[optional] <p>
- * Specify the return value of this function. The current supported values
- * are:
- * 0 - returns the number of words found
- * @param charlist string[optional] <p>
- * A list of additional characters which will be considered as 'word'
- * </p>
- * @return mixed an array or an integer, depending on the
- * format chosen.
- */
- function str_word_count ($string, $format = null, $charlist = null) {}
- /**
- * Convert a string to an array
- * @link http://www.php.net/manual/en/function.str-split.php
- * @param string string <p>
- * The input string.
- * </p>
- * @param split_length int[optional] <p>
- * Maximum length of the chunk.
- * </p>
- * @return array If the optional split_length parameter is
- * specified, the returned array will be broken down into chunks with each
- * being split_length in length, otherwise each chunk
- * will be one character in length.
- * </p>
- * <p>
- * false is returned if split_length is less than 1.
- * If the split_length length exceeds the length of
- * string, the entire string is returned as the first
- * (and only) array element.
- */
- function str_split ($string, $split_length = null) {}
- /**
- * Search a string for any of a set of characters
- * @link http://www.php.net/manual/en/function.strpbrk.php
- * @param haystack string <p>
- * The string where char_list is looked for.
- * </p>
- * @param char_list string <p>
- * This parameter is case sensitive.
- * </p>
- * @return string a string starting from the character found, or false if it is
- * not found.
- */
- function strpbrk ($haystack, $char_list) {}
- /**
- * Binary safe comparison of 2 strings from an offset, up to length characters
- * @link http://www.php.net/manual/en/function.substr-compare.php
- * @param main_str string <p>
- * The main string being compared.
- * </p>
- * @param str string <p>
- * The secondary string being compared.
- * </p>
- * @param offset int <p>
- * The start position for the comparison. If negative, it starts counting
- * from the end of the string.
- * </p>
- * @param length int[optional] <p>
- * The length of the comparison. The default value is the largest of the
- * length of the str compared to the length of
- * main_str less the
- * offset.
- * </p>
- * @param case_insensitivity bool[optional] <p>
- * If case_insensitivity is true, comparison is
- * case insensitive.
- * </p>
- * @return int < 0 if main_str from position
- * offset is less than str, >
- * 0 if it is greater than str, and 0 if they are equal.
- * If offset is equal to or greater than the length of
- * main_str or length is set and
- * is less than 1, substr_compare prints a warning and returns
- * false.
- */
- function substr_compare ($main_str, $str, $offset, $length = null, $case_insensitivity = null) {}
- /**
- * Locale based string comparison
- * @link http://www.php.net/manual/en/function.strcoll.php
- * @param str1 string <p>
- * The first string.
- * </p>
- * @param str2 string <p>
- * The second string.
- * </p>
- * @return int < 0 if str1 is less than
- * str2; > 0 if
- * str1 is greater than
- * str2, and 0 if they are equal.
- */
- function strcoll ($str1, $str2) {}
- /**
- * Return part of a string
- * @link http://www.php.net/manual/en/function.substr.php
- * @param string string <p>
- * The input string.
- * </p>
- * @param start int <p>
- * If start is non-negative, the returned string
- * will start at the start'th position in
- * string, counting from zero. For instance,
- * in the string 'abcdef', the character at
- * position 0 is 'a', the
- * character at position 2 is
- * 'c', and so forth.
- * </p>
- * <p>
- * If start is negative, the returned string
- * will start at the start'th character
- * from the end of string.
- * </p>
- * <p>
- * If string is less than or equal to
- * start characters long, false will be returned.
- * </p>
- * <p>
- * Using a negative start
- * ]]>
- * </p>
- * @param length int[optional] <p>
- * If length is given and is positive, the string
- * returned will contain at most length characters
- * beginning from start (depending on the length of
- * string).
- * </p>
- * <p>
- * If length is given and is negative, then that many
- * characters will be omitted from the end of string
- * (after the start position has been calculated when a
- * start is negative). If
- * start denotes a position beyond this truncation,
- * an empty string will be returned.
- * </p>
- * <p>
- * If length is given and is 0,
- * false or &null; an empty string will be returned.
- * </p>
- * Using a negative length
- * ]]>
- * @return string the extracted part of string&return.falseforfailure;.
- */
- function substr ($string, $start, $length = null) {}
- /**
- * Replace text within a portion of a string
- * @link http://www.php.net/manual/en/function.substr-replace.php
- * @param string mixed <p>
- * The input string.
- * </p>
- * @param replacement string <p>
- * The replacement string.
- * </p>
- * @param start int <p>
- * If start is positive, the replacing will
- * begin at the start'th offset into
- * string.
- * </p>
- * <p>
- * If start is negative, the replacing will
- * begin at the start'th character from the
- * end of string.
- * </p>
- * @param length int[optional] <p>
- * If given and is positive, it represents the length of the portion of
- * string which is to be replaced. If it is
- * negative, it represents the number of characters from the end of
- * string at which to stop replacing. If it
- * is not given, then it will default to strlen(
- * string ); i.e. end the replacing at the
- * end of string. Of course, if
- * length is zero then this function will have the
- * effect of inserting replacement into
- * string at the given
- * start offset.
- * </p>
- * @return mixed The result string is returned. If string is an
- * array then array is returned.
- */
- function substr_replace ($string, $replacement, $start, $length = null) {}
- /**
- * Quote meta characters
- * @link http://www.php.net/manual/en/function.quotemeta.php
- * @param str string <p>
- * The input string.
- * </p>
- * @return string the string with meta characters quoted.
- */
- function quotemeta ($str) {}
- /**
- * Make a string's first character uppercase
- * @link http://www.php.net/manual/en/function.ucfirst.php
- * @param str string <p>
- * The input string.
- * </p>
- * @return string the resulting string.
- */
- function ucfirst ($str) {}
- /**
- * Uppercase the first character of each word in a string
- * @link http://www.php.net/manual/en/function.ucwords.php
- * @param str string <p>
- * The input string.
- * </p>
- * @return string the modified string.
- */
- function ucwords ($str) {}
- /**
- * Translate certain characters
- * @link http://www.php.net/manual/en/function.strtr.php
- * @param str string <p>
- * The string being translated.
- * </p>
- * @param from string <p>
- * The string being translated to to.
- * </p>
- * @param to string <p>
- * The string replacing from.
- * </p>
- * @return string This function returns a copy of str,
- * translating all occurrences of each character in
- * from to the corresponding character in
- * to.
- */
- function strtr ($str, $from, $to) {}
- /**
- * Quote string with slashes
- * @link http://www.php.net/manual/en/function.addslashes.php
- * @param str string <p>
- * The string to be escaped.
- * </p>
- * @return string the escaped string.
- */
- function addslashes ($str) {}
- /**
- * Quote string with slashes in a C style
- * @link http://www.php.net/manual/en/function.addcslashes.php
- * @param str string <p>
- * The string to be escaped.
- * </p>
- * @param charlist string <p>
- * A list of characters to be escaped. If
- * charlist contains characters
- * \n, \r etc., they are
- * converted in C-like style, while other non-alphanumeric characters
- * with ASCII codes lower than 32 and higher than 126 converted to
- * octal representation.
- * </p>
- * <p>
- * When you define a sequence of characters in the charlist argument
- * make sure that you know what characters come between the
- * characters that you set as the start and end of the range.
- * ]]>
- * Also, if the first character in a range has a higher ASCII value
- * than the second character in the range, no range will be
- * constructed. Only the start, end and period characters will be
- * escaped. Use the ord function to find the
- * ASCII value for a character.
- * ]]>
- * </p>
- * <p>
- * Be careful if you choose to escape characters 0, a, b, f, n, r,
- * t and v. They will be converted to \0, \a, \b, \f, \n, \r, \t
- * and \v.
- * In PHP \0 (NULL), \r (carriage return), \n (newline), \f (form feed),
- * \v (vertical tab) and \t (tab) are predefined escape sequences,
- * while in C all of these are predefined escape sequences.
- * </p>
- * @return string the escaped string.
- */
- function addcslashes ($str, $charlist) {}
- /**
- * Strip whitespace (or other characters) from the end of a string
- * @link http://www.php.net/manual/en/function.rtrim.php
- * @param str string <p>
- * The input string.
- * </p>
- * @param charlist string[optional] <p>
- * You can also specify the characters you want to strip, by means
- * of the charlist parameter.
- * Simply list all characters that you want to be stripped. With
- * .. you can specify a range of characters.
- * </p>
- * @return string the modified string.
- */
- function rtrim ($str, $charlist = null) {}
- /**
- * Replace all occurrences of the search string with the replacement string
- * @link http://www.php.net/manual/en/function.str-replace.php
- * @param search mixed <p>
- * The value being searched for, otherwise known as the needle.
- * An array may be used to designate multiple needles.
- * </p>
- * @param replace mixed <p>
- * The replacement value that replaces found search
- * values. An array may be used to designate multiple replacements.
- * </p>
- * @param subject mixed <p>
- * The string or array being searched and replaced on,
- * otherwise known as the haystack.
- * </p>
- * <p>
- * If subject is an array, then the search and
- * replace is performed with every entry of
- * subject, and the return value is an array as
- * well.
- * </p>
- * @param count int[optional] If passed, this will hold the number of matched and replaced needles.
- * @return mixed This function returns a string or an array with the replaced values.
- */
- function str_replace ($search, $replace, $subject, &$count = null) {}
- /**
- * Case-insensitive version of <function>str_replace</function>.
- * @link http://www.php.net/manual/en/function.str-ireplace.php
- * @param search mixed <p>
- * Every replacement with search array is
- * performed on the result of previous replacement.
- * </p>
- * @param replace mixed <p>
- * </p>
- * @param subject mixed <p>
- * If subject is an array, then the search and
- * replace is performed with every entry of
- * subject, and the return value is an array as
- * well.
- * </p>
- * @param count int[optional] <p>
- * The number of matched and replaced needles will
- * be returned in count which is passed by
- * reference.
- * </p>
- * @return mixed a string or an array of replacements.
- */
- function str_ireplace ($search, $replace, $subject, &$count = null) {}
- /**
- * Repeat a string
- * @link http://www.php.net/manual/en/function.str-repeat.php
- * @param input string <p>
- * The string to be repeated.
- * </p>
- * @param multiplier int <p>
- * Number of time the input string should be
- * repeated.
- * </p>
- * <p>
- * multiplier has to be greater than or equal to 0.
- * If the multiplier is set to 0, the function
- * will return an empty string.
- * </p>
- * @return string the repeated string.
- */
- function str_repeat ($input, $multiplier) {}
- /**
- * Return information about characters used in a string
- * @link http://www.php.net/manual/en/function.count-chars.php
- * @param string string <p>
- * The examined string.
- * </p>
- * @param mode int[optional] <p>
- * See return values.
- * </p>
- * @return mixed Depending on mode
- * count_chars returns one of the following:
- * 0 - an array with the byte-value as key and the frequency of
- * every byte as value.
- * 1 - same as 0 but only byte-values with a frequency greater
- * than zero are listed.
- * 2 - same as 0 but only byte-values with a frequency equal to
- * zero are listed.
- * 3 - a string containing all unique characters is returned.
- * 4 - a string containing all not used characters is returned.
- */
- function count_chars ($string, $mode = null) {}
- /**
- * Split a string into smaller chunks
- * @link http://www.php.net/manual/en/function.chunk-split.php
- * @param body string <p>
- * The string to be chunked.
- * </p>
- * @param chunklen int[optional] <p>
- * The chunk length.
- * </p>
- * @param end string[optional] <p>
- * The line ending sequence.
- * </p>
- * @return string the chunked string.
- */
- function chunk_split ($body, $chunklen = null, $end = null) {}
- /**
- * Strip whitespace (or other characters) from the beginning and end of a string
- * @link http://www.php.net/manual/en/function.trim.php
- * @param str string <p>
- * The string that will be trimmed.
- * </p>
- * @param charlist string[optional] <p>
- * Optionally, the stripped characters can also be specified using
- * the charlist parameter.
- * Simply list all characters that you want to be stripped. With
- * .. you can specify a range of characters.
- * </p>
- * @return string The trimmed string.
- */
- function trim ($str, $charlist = null) {}
- /**
- * Strip whitespace (or other characters) from the beginning of a string
- * @link http://www.php.net/manual/en/function.ltrim.php
- * @param str string <p>
- * The input string.
- * </p>
- * @param charlist string[optional] <p>
- * You can also specify the characters you want to strip, by means of the
- * charlist parameter.
- * Simply list all characters that you want to be stripped. With
- * .. you can specify a range of characters.
- * </p>
- * @return string This function returns a string with whitespace stripped from the
- * beginning of str.
- * Without the second parameter,
- * ltrim will strip these characters:
- * " " (ASCII 32
- * (0x20)), an ordinary space.
- * "\t" (ASCII 9
- * (0x09)), a tab.
- * "\n" (ASCII 10
- * (0x0A)), a new line (line feed).
- * "\r" (ASCII 13
- * (0x0D)), a carriage return.
- * "\0" (ASCII 0
- * (0x00)), the NUL-byte.
- * "\x0B" (ASCII 11
- * (0x0B)), a vertical tab.
- */
- function ltrim ($str, $charlist = null) {}
- /**
- * Strip HTML and PHP tags from a string
- * @link http://www.php.net/manual/en/function.strip-tags.php
- * @param str string <p>
- * The input string.
- * </p>
- * @param allowable_tags string[optional] <p>
- * You can use the optional second parameter to specify tags which should
- * not be stripped.
- * </p>
- * <p>
- * HTML comments and PHP tags are also stripped. This is hardcoded and
- * can not be changed with allowable_tags.
- * </p>
- * @return string the stripped string.
- */
- function strip_tags ($str, $allowable_tags = null) {}
- /**
- * Calculate the similarity between two strings
- * @link http://www.php.net/manual/en/function.similar-text.php
- * @param first string <p>
- * The first string.
- * </p>
- * @param second string <p>
- * The second string.
- * </p>
- * @param percent float[optional] <p>
- * By passing a reference as third argument,
- * similar_text will calculate the similarity in
- * percent for you.
- * </p>
- * @return int the number of matching chars in both strings.
- */
- function similar_text ($first, $second, &$percent = null) {}
- /**
- * Split a string by string
- * @link http://www.php.net/manual/en/function.explode.php
- * @param delimiter string <p>
- * The boundary string.
- * </p>
- * @param string string <p>
- * The input string.
- * </p>
- * @param limit int[optional] <p>
- * If limit is set and positive, the returned array will contain
- * a maximum of limit elements with the last
- * element containing the rest of string.
- * </p>
- * <p>
- * If the limit parameter is negative, all components
- * except the last -limit are returned.
- * </p>
- * <p>
- * If the limit parameter is zero, then this is treated as 1.
- * </p>
- * @return array If delimiter is an empty string (""),
- * explode will return false.
- * If delimiter contains a value that is not
- * contained in string and a negative
- * limit is used, then an empty array will be
- * returned. For any other limit, an array containing
- * string will be returned.
- */
- function explode ($delimiter, $string, $limit = null) {}
- /**
- * Join array elements with a string
- * @link http://www.php.net/manual/en/function.implode.php
- * @param glue string <p>
- * Defaults to an empty string. This is not the preferred usage of
- * implode as glue would be
- * the second parameter and thus, the bad prototype would be used.
- * </p>
- * @param pieces array <p>
- * The array of strings to implode.
- * </p>
- * @return string a string containing a string representation of all the array
- * elements in the same order, with the glue string between each element.
- */
- function implode ($glue, array $pieces) {}
- /**
- * Set locale information
- * @link http://www.php.net/manual/en/function.setlocale.php
- * @param category int <p>
- * category is a named constant specifying the
- * category of the functions affected by the locale setting:
- * LC_ALL for all of the below
- * @param locale string <p>
- * If locale is &null; or the empty string
- * "", the locale names will be set from the
- * values of environment variables with the same names as the above
- * categories, or from "LANG".
- * </p>
- * <p>
- * If locale is "0",
- * the locale setting is not affected, only the current setting is returned.
- * </p>
- * <p>
- * If locale is an array or followed by additional
- * parameters then each array element or parameter is tried to be set as
- * new locale until success. This is useful if a locale is known under
- * different names on different systems or for providing a fallback
- * for a possibly not available locale.
- * </p>
- * @param _ string[optional]
- * @return string the new current locale, or false if the locale functionality is
- * not implemented on your platform, the specified locale does not exist or
- * the category name is invalid.
- * </p>
- * <p>
- * An invalid category name also causes a warning message. Category/locale
- * names can be found in RFC 1766
- * and ISO 639.
- * Different systems have different naming schemes for locales.
- * </p>
- * <p>
- * The return value of setlocale depends
- * on the system that PHP is running. It returns exactly
- * what the system setlocale function returns.
- */
- function setlocale ($category, $locale, $_ = null) {}
- /**
- * Get numeric formatting information
- * @link http://www.php.net/manual/en/function.localeconv.php
- * @return array localeconv returns data based upon the current locale
- * as set by setlocale. The associative array that is
- * returned contains the following fields:
- * <tr valign="top">
- * <td>Array element</td>
- * <td>Description</td>
- * </tr>
- * <tr valign="top">
- * <td>decimal_point</td>
- * <td>Decimal point character</td>
- * </tr>
- * <tr valign="top">
- * <td>thousands_sep</td>
- * <td>Thousands separator</td>
- * </tr>
- * <tr valign="top">
- * <td>grouping</td>
- * <td>Array containing numeric groupings</td>
- * </tr>
- * <tr valign="top">
- * <td>int_curr_symbol</td>
- * <td>International currency symbol (i.e. USD)</td>
- * </tr>
- * <tr valign="top">
- * <td>currency_symbol</td>
- * <td>Local currency symbol (i.e. $)</td>
- * </tr>
- * <tr valign="top">
- * <td>mon_decimal_point</td>
- * <td>Monetary decimal point character</td>
- * </tr>
- * <tr valign="top">
- * <td>mon_thousands_sep</td>
- * <td>Monetary thousands separator</td>
- * </tr>
- * <tr valign="top">
- * <td>mon_grouping</td>
- * <td>Array containing monetary groupings</td>
- * </tr>
- * <tr valign="top">
- * <td>positive_sign</td>
- * <td>Sign for positive values</td>
- * </tr>
- * <tr valign="top">
- * <td>negative_sign</td>
- * <td>Sign for negative values</td>
- * </tr>
- * <tr valign="top">
- * <td>int_frac_digits</td>
- * <td>International fractional digits</td>
- * </tr>
- * <tr valign="top">
- * <td>frac_digits</td>
- * <td>Local fractional digits</td>
- * </tr>
- * <tr valign="top">
- * <td>p_cs_precedes</td>
- * <td>
- * true if currency_symbol precedes a positive value, false
- * if it succeeds one
- * </td>
- * </tr>
- * <tr valign="top">
- * <td>p_sep_by_space</td>
- * <td>
- * true if a space separates currency_symbol from a positive
- * value, false otherwise
- * </td>
- * </tr>
- * <tr valign="top">
- * <td>n_cs_precedes</td>
- * <td>
- * true if currency_symbol precedes a negative value, false
- * if it succeeds one
- * </td>
- * </tr>
- * <tr valign="top">
- * <td>n_sep_by_space</td>
- * <td>
- * true if a space separates currency_symbol from a negative
- * value, false otherwise
- * </td>
- * </tr>
- * <td>p_sign_posn</td>
- * <td>
- * 0 - Parentheses surround the quantity and currency_symbol
- * 1 - The sign string precedes the quantity and currency_symbol
- * 2 - The sign string succeeds the quantity and currency_symbol
- * 3 - The sign string immediately precedes the currency_symbol
- * 4 - The sign string immediately succeeds the currency_symbol
- * </td>
- * </tr>
- * <td>n_sign_posn</td>
- * <td>
- * 0 - Parentheses surround the quantity and currency_symbol
- * 1 - The sign string precedes the quantity and currency_symbol
- * 2 - The sign string succeeds the quantity and currency_symbol
- * 3 - The sign string immediately precedes the currency_symbol
- * 4 - The sign string immediately succeeds the currency_symbol
- * </td>
- * </tr>
- * </p>
- * <p>
- * The p_sign_posn, and n_sign_posn contain a string
- * of formatting options. Each number representing one of the above listed conditions.
- * </p>
- * <p>
- * The grouping fields contain arrays that define the way numbers should be
- * grouped. For example, the monetary grouping field for the nl_NL locale (in
- * UTF-8 mode with the euro sign), would contain a 2 item array with the
- * values 3 and 3. The higher the index in the array, the farther left the
- * grouping is. If an array element is equal to CHAR_MAX,
- * no further grouping is done. If an array element is equal to 0, the previous
- * element should be used.
- */
- function localeconv () {}
- /**
- * Calculate the soundex key of a string
- * @link http://www.php.net/manual/en/function.soundex.php
- * @param str string <p>
- * The input string.
- * </p>
- * @return string the soundex key as a string.
- */
- function soundex ($str) {}
- /**
- * Calculate Levenshtein distance between two strings
- * @link http://www.php.net/manual/en/function.levenshtein.php
- * @param str1 string <p>
- * One of the strings being evaluated for Levenshtein distance.
- * </p>
- * @param str2 string <p>
- * One of the strings being evaluated for Levenshtein distance.
- * </p>
- * @return int This function returns the Levenshtein-Distance between the
- * two argument strings or -1, if one of the argument strings
- * is longer than the limit of 255 characters.
- */
- function levenshtein ($str1, $str2) {}
- /**
- * Return a specific character
- * @link http://www.php.net/manual/en/function.chr.php
- * @param ascii int <p>
- * The ascii code.
- * </p>
- * @return string the specified character.
- */
- function chr ($ascii) {}
- /**
- * Return ASCII value of character
- * @link http://www.php.net/manual/en/function.ord.php
- * @param string string <p>
- * A character.
- * </p>
- * @return int the ASCII value as an integer.
- */
- function ord ($string) {}
- /**
- * Parses the string into variables
- * @link http://www.php.net/manual/en/function.parse-str.php
- * @param str string <p>
- * The input string.
- * </p>
- * @param arr array[optional] <p>
- * If the second parameter arr is present,
- * variables are stored in this variable as array elements instead.
- * </p>
- * @return void
- */
- function parse_str ($str, array &$arr = null) {}
- /**
- * Pad a string to a certain length with another string
- * @link http://www.php.net/manual/en/function.str-pad.php
- * @param input string <p>
- * The input string.
- * </p>
- * @param pad_length int <p>
- * If the value of pad_length is negative,
- * less than, or equal to the length of the input string, no padding
- * takes place.
- * </p>
- * @param pad_string string[optional] <p>
- * The pad_string may be truncated if the
- * required number of padding characters can't be evenly divided by the
- * pad_string's length.
- * </p>
- * @param pad_type int[optional] <p>
- * Optional argument pad_type can be
- * STR_PAD_RIGHT, STR_PAD_LEFT,
- * or STR_PAD_BOTH. If
- * pad_type is not specified it is assumed to be
- * STR_PAD_RIGHT.
- * </p>
- * @return string the padded string.
- */
- function str_pad ($input, $pad_length, $pad_string = null, $pad_type = null) {}
- /**
- * &Alias; <function>rtrim</function>
- * @link http://www.php.net/manual/en/function.chop.php
- * @param str
- * @param character_mask[optional]
- */
- function chop ($str, $character_mask) {}
- /**
- * &Alias; <function>strstr</function>
- * @link http://www.php.net/manual/en/function.strchr.php
- * @param haystack
- * @param needle
- */
- function strchr ($haystack, $needle) {}
- /**
- * Return a formatted string
- * @link http://www.php.net/manual/en/function.sprintf.php
- * @param format string <p>
- * The format string is composed of zero or more directives:
- * ordinary characters (excluding %) that are
- * copied directly to the result, and conversion
- * specifications, each of which results in fetching its
- * own parameter. This applies to both sprintf
- * and printf.
- * </p>
- * <p>
- * Each conversion specification consists of a percent sign
- * (%), followed by one or more of these
- * elements, in order:
- * An optional sign specifier that forces a sign
- * (- or +) to be used on a number. By default, only the - sign is used
- * on a number if it's negative. This specifier forces positive numbers
- * to have the + sign attached as well, and was added in PHP 4.3.0.
- * @param args mixed[optional] <p>
- * </p>
- * @param _ mixed[optional]
- * @return string a string produced according to the formatting string
- * format.
- */
- function sprintf ($format, $args = null, $_ = null) {}
- /**
- * Output a formatted string
- * @link http://www.php.net/manual/en/function.printf.php
- * @param format string <p>
- * See sprintf for a description of
- * format.
- * </p>
- * @param args mixed[optional] <p>
- * </p>
- * @param _ mixed[optional]
- * @return int the length of the outputted string.
- */
- function printf ($format, $args = null, $_ = null) {}
- /**
- * Output a formatted string
- * @link http://www.php.net/manual/en/function.vprintf.php
- * @param format string <p>
- * See sprintf for a description of
- * format.
- * </p>
- * @param args array <p>
- * </p>
- * @return int the length of the outputted string.
- */
- function vprintf ($format, array $args) {}
- /**
- * Return a formatted string
- * @link http://www.php.net/manual/en/function.vsprintf.php
- * @param format string <p>
- * See sprintf for a description of
- * format.
- * </p>
- * @param args array <p>
- * </p>
- * @return string Return array values as a formatted string according to
- * format (which is described in the documentation
- * for sprintf).
- */
- function vsprintf ($format, array $args) {}
- /**
- * Write a formatted string to a stream
- * @link http://www.php.net/manual/en/function.fprintf.php
- * @param handle resource &fs.file.pointer;
- * @param format string <p>
- * See sprintf for a description of
- * format.
- * </p>
- * @param args mixed[optional] <p>
- * </p>
- * @param _ mixed[optional]
- * @return int the length of the string written.
- */
- function fprintf ($handle, $format, $args = null, $_ = null) {}
- /**
- * Write a formatted string to a stream
- * @link http://www.php.net/manual/en/function.vfprintf.php
- * @param handle resource <p>
- * </p>
- * @param format string <p>
- * See sprintf for a description of
- * format.
- * </p>
- * @param args array <p>
- * </p>
- * @return int the length of the outputted string.
- */
- function vfprintf ($handle, $format, array $args) {}
- /**
- * Parses input from a string according to a format
- * @link http://www.php.net/manual/en/function.sscanf.php
- * @param str string <p>
- * The input string being parsed.
- * </p>
- * @param format string <p>
- * The interpreted format for str, which is
- * described in the documentation for sprintf with
- * following differences:
- * Function is not locale-aware.
- * F, g, G and
- * b are not supported.
- * D stands for decimal number.
- * i stands for integer with base detection.
- * n stands for number of characters processed so far.
- * </p>
- * @param _ mixed[optional]
- * @return mixed If only
- * two parameters were passed to this function, the values parsed
- * will be returned as an array. Otherwise, if optional parameters are passed,
- * the function will return the number of assigned values. The optional
- * parameters must be passed by reference.
- */
- function sscanf ($str, $format, &$_ = null) {}
- /**
- * Parses input from a file according to a format
- * @link http://www.php.net/manual/en/function.fscanf.php
- * @param handle resource &fs.file.pointer;
- * @param format string <p>
- * The specified format as described in the
- * sprintf documentation.
- * </p>
- * @param _ mixed[optional]
- * @return mixed If only two parameters were passed to this function, the values parsed will be
- * returned as an array. Otherwise, if optional parameters are passed, the
- * function will return the number of assigned values. The optional
- * parameters must be passed by reference.
- */
- function fscanf ($handle, $format, &$_ = null) {}
- /**
- * Parse a URL and return its components
- * @link http://www.php.net/manual/en/function.parse-url.php
- * @param url string <p>
- * The URL to parse. Invalid characters are replaced by
- * _.
- * </p>
- * @param component int[optional] <p>
- * Specify one of PHP_URL_SCHEME,
- * PHP_URL_HOST, PHP_URL_PORT,
- * PHP_URL_USER, PHP_URL_PASS,
- * PHP_URL_PATH, PHP_URL_QUERY
- * or PHP_URL_FRAGMENT to retrieve just a specific
- * URL component as a string.
- * </p>
- * @return mixed On seriously malformed URLs, parse_url may return
- * false and emit a E_WARNING. Otherwise an associative
- * array is returned, whose components may be (at least one):
- * scheme - e.g. http
- * host
- * port
- * user
- * pass
- * path
- * query - after the question mark ?
- * fragment - after the hashmark #
- * </p>
- * <p>
- * If the component parameter is specified a
- * st