ace-code-editor
Version:
Ajax.org Code Editor is a full featured source code highlighting editor that powers the Cloud9 IDE
1,249 lines (1,246 loc) • 381 kB
JavaScript
/* ***** BEGIN LICENSE BLOCK *****
* Distributed under the BSD license:
*
* Copyright (c) 2010, Ajax.org B.V.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* * Neither the name of Ajax.org B.V. nor the
* names of its contributors may be used to endorse or promote products
* derived from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
* DISCLAIMED. IN NO EVENT SHALL AJAX.ORG B.V. BE LIABLE FOR ANY
* DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* ***** END LICENSE BLOCK ***** */
define(function(require, exports, module) {
"use strict";
var functionMap = {
"abs": [
"int abs(int number)",
"Return the absolute value of the number"
],
"acos": [
"float acos(float number)",
"Return the arc cosine of the number in radians"
],
"acosh": [
"float acosh(float number)",
"Returns the inverse hyperbolic cosine of the number, i.e. the value whose hyperbolic cosine is number"
],
"addGlob": [
"bool addGlob(string pattern[,int flags [, array options]])",
"Add files matching the glob pattern. See php's glob for the pattern syntax."
],
"addPattern": [
"bool addPattern(string pattern[, string path [, array options]])",
"Add files matching the pcre pattern. See php's pcre for the pattern syntax."
],
"addcslashes": [
"string addcslashes(string str, string charlist)",
"Escapes all chars mentioned in charlist with backslash. It creates octal representations if asked to backslash characters with 8th bit set or with ASCII<32 (except '\\n', '\\r', '\\t' etc...)"
],
"addslashes": [
"string addslashes(string str)",
"Escapes single quote, double quotes and backslash characters in a string with backslashes"
],
"apache_child_terminate": [
"bool apache_child_terminate(void)",
"Terminate apache process after this request"
],
"apache_get_modules": [
"array apache_get_modules(void)",
"Get a list of loaded Apache modules"
],
"apache_get_version": [
"string apache_get_version(void)",
"Fetch Apache version"
],
"apache_getenv": [
"bool apache_getenv(string variable [, bool walk_to_top])",
"Get an Apache subprocess_env variable"
],
"apache_lookup_uri": [
"object apache_lookup_uri(string URI)",
"Perform a partial request of the given URI to obtain information about it"
],
"apache_note": [
"string apache_note(string note_name [, string note_value])",
"Get and set Apache request notes"
],
"apache_request_auth_name": [
"string apache_request_auth_name()",
""
],
"apache_request_auth_type": [
"string apache_request_auth_type()",
""
],
"apache_request_discard_request_body": [
"long apache_request_discard_request_body()",
""
],
"apache_request_err_headers_out": [
"array apache_request_err_headers_out([{string name|array list} [, string value [, bool replace = false]]])",
"* fetch all headers that go out in case of an error or a subrequest"
],
"apache_request_headers": [
"array apache_request_headers(void)",
"Fetch all HTTP request headers"
],
"apache_request_headers_in": [
"array apache_request_headers_in()",
"* fetch all incoming request headers"
],
"apache_request_headers_out": [
"array apache_request_headers_out([{string name|array list} [, string value [, bool replace = false]]])",
"* fetch all outgoing request headers"
],
"apache_request_is_initial_req": [
"bool apache_request_is_initial_req()",
""
],
"apache_request_log_error": [
"boolean apache_request_log_error(string message, [long facility])",
""
],
"apache_request_meets_conditions": [
"long apache_request_meets_conditions()",
""
],
"apache_request_remote_host": [
"int apache_request_remote_host([int type])",
""
],
"apache_request_run": [
"long apache_request_run()",
"This is a wrapper for ap_sub_run_req and ap_destory_sub_req. It takes sub_request, runs it, destroys it, and returns it's status."
],
"apache_request_satisfies": [
"long apache_request_satisfies()",
""
],
"apache_request_server_port": [
"int apache_request_server_port()",
""
],
"apache_request_set_etag": [
"void apache_request_set_etag()",
""
],
"apache_request_set_last_modified": [
"void apache_request_set_last_modified()",
""
],
"apache_request_some_auth_required": [
"bool apache_request_some_auth_required()",
""
],
"apache_request_sub_req_lookup_file": [
"object apache_request_sub_req_lookup_file(string file)",
"Returns sub-request for the specified file. You would need to run it yourself with run()."
],
"apache_request_sub_req_lookup_uri": [
"object apache_request_sub_req_lookup_uri(string uri)",
"Returns sub-request for the specified uri. You would need to run it yourself with run()"
],
"apache_request_sub_req_method_uri": [
"object apache_request_sub_req_method_uri(string method, string uri)",
"Returns sub-request for the specified file. You would need to run it yourself with run()."
],
"apache_request_update_mtime": [
"long apache_request_update_mtime([int dependency_mtime])",
""
],
"apache_reset_timeout": [
"bool apache_reset_timeout(void)",
"Reset the Apache write timer"
],
"apache_response_headers": [
"array apache_response_headers(void)",
"Fetch all HTTP response headers"
],
"apache_setenv": [
"bool apache_setenv(string variable, string value [, bool walk_to_top])",
"Set an Apache subprocess_env variable"
],
"array_change_key_case": [
"array array_change_key_case(array input [, int case=CASE_LOWER])",
"Retuns an array with all string keys lowercased [or uppercased]"
],
"array_chunk": [
"array array_chunk(array input, int size [, bool preserve_keys])",
"Split array into chunks"
],
"array_combine": [
"array array_combine(array keys, array values)",
"Creates an array by using the elements of the first parameter as keys and the elements of the second as the corresponding values"
],
"array_count_values": [
"array array_count_values(array input)",
"Return the value as key and the frequency of that value in input as value"
],
"array_diff": [
"array array_diff(array arr1, array arr2 [, array ...])",
"Returns the entries of arr1 that have values which are not present in any of the others arguments."
],
"array_diff_assoc": [
"array array_diff_assoc(array arr1, array arr2 [, array ...])",
"Returns the entries of arr1 that have values which are not present in any of the others arguments but do additional checks whether the keys are equal"
],
"array_diff_key": [
"array array_diff_key(array arr1, array arr2 [, array ...])",
"Returns the entries of arr1 that have keys which are not present in any of the others arguments. This function is like array_diff() but works on the keys instead of the values. The associativity is preserved."
],
"array_diff_uassoc": [
"array array_diff_uassoc(array arr1, array arr2 [, array ...], callback data_comp_func)",
"Returns the entries of arr1 that have values which are not present in any of the others arguments but do additional checks whether the keys are equal. Elements are compared by user supplied function."
],
"array_diff_ukey": [
"array array_diff_ukey(array arr1, array arr2 [, array ...], callback key_comp_func)",
"Returns the entries of arr1 that have keys which are not present in any of the others arguments. User supplied function is used for comparing the keys. This function is like array_udiff() but works on the keys instead of the values. The associativity is preserved."
],
"array_fill": [
"array array_fill(int start_key, int num, mixed val)",
"Create an array containing num elements starting with index start_key each initialized to val"
],
"array_fill_keys": [
"array array_fill_keys(array keys, mixed val)",
"Create an array using the elements of the first parameter as keys each initialized to val"
],
"array_filter": [
"array array_filter(array input [, mixed callback])",
"Filters elements from the array via the callback."
],
"array_flip": [
"array array_flip(array input)",
"Return array with key <-> value flipped"
],
"array_intersect": [
"array array_intersect(array arr1, array arr2 [, array ...])",
"Returns the entries of arr1 that have values which are present in all the other arguments"
],
"array_intersect_assoc": [
"array array_intersect_assoc(array arr1, array arr2 [, array ...])",
"Returns the entries of arr1 that have values which are present in all the other arguments. Keys are used to do more restrictive check"
],
"array_intersect_key": [
"array array_intersect_key(array arr1, array arr2 [, array ...])",
"Returns the entries of arr1 that have keys which are present in all the other arguments. Kind of equivalent to array_diff(array_keys($arr1), array_keys($arr2)[,array_keys(...)]). Equivalent of array_intersect_assoc() but does not do compare of the data."
],
"array_intersect_uassoc": [
"array array_intersect_uassoc(array arr1, array arr2 [, array ...], callback key_compare_func)",
"Returns the entries of arr1 that have values which are present in all the other arguments. Keys are used to do more restrictive check and they are compared by using an user-supplied callback."
],
"array_intersect_ukey": [
"array array_intersect_ukey(array arr1, array arr2 [, array ...], callback key_compare_func)",
"Returns the entries of arr1 that have keys which are present in all the other arguments. Kind of equivalent to array_diff(array_keys($arr1), array_keys($arr2)[,array_keys(...)]). The comparison of the keys is performed by a user supplied function. Equivalent of array_intersect_uassoc() but does not do compare of the data."
],
"array_key_exists": [
"bool array_key_exists(mixed key, array search)",
"Checks if the given key or index exists in the array"
],
"array_keys": [
"array array_keys(array input [, mixed search_value[, bool strict]])",
"Return just the keys from the input array, optionally only for the specified search_value"
],
"array_map": [
"array array_map(mixed callback, array input1 [, array input2 ,...])",
"Applies the callback to the elements in given arrays."
],
"array_merge": [
"array array_merge(array arr1, array arr2 [, array ...])",
"Merges elements from passed arrays into one array"
],
"array_merge_recursive": [
"array array_merge_recursive(array arr1, array arr2 [, array ...])",
"Recursively merges elements from passed arrays into one array"
],
"array_multisort": [
"bool array_multisort(array ar1 [, SORT_ASC|SORT_DESC [, SORT_REGULAR|SORT_NUMERIC|SORT_STRING]] [, array ar2 [, SORT_ASC|SORT_DESC [, SORT_REGULAR|SORT_NUMERIC|SORT_STRING]], ...])",
"Sort multiple arrays at once similar to how ORDER BY clause works in SQL"
],
"array_pad": [
"array array_pad(array input, int pad_size, mixed pad_value)",
"Returns a copy of input array padded with pad_value to size pad_size"
],
"array_pop": [
"mixed array_pop(array stack)",
"Pops an element off the end of the array"
],
"array_product": [
"mixed array_product(array input)",
"Returns the product of the array entries"
],
"array_push": [
"int array_push(array stack, mixed var [, mixed ...])",
"Pushes elements onto the end of the array"
],
"array_rand": [
"mixed array_rand(array input [, int num_req])",
"Return key\/keys for random entry\/entries in the array"
],
"array_reduce": [
"mixed array_reduce(array input, mixed callback [, mixed initial])",
"Iteratively reduce the array to a single value via the callback."
],
"array_replace": [
"array array_replace(array arr1, array arr2 [, array ...])",
"Replaces elements from passed arrays into one array"
],
"array_replace_recursive": [
"array array_replace_recursive(array arr1, array arr2 [, array ...])",
"Recursively replaces elements from passed arrays into one array"
],
"array_reverse": [
"array array_reverse(array input [, bool preserve keys])",
"Return input as a new array with the order of the entries reversed"
],
"array_search": [
"mixed array_search(mixed needle, array haystack [, bool strict])",
"Searches the array for a given value and returns the corresponding key if successful"
],
"array_shift": [
"mixed array_shift(array stack)",
"Pops an element off the beginning of the array"
],
"array_slice": [
"array array_slice(array input, int offset [, int length [, bool preserve_keys]])",
"Returns elements specified by offset and length"
],
"array_splice": [
"array array_splice(array input, int offset [, int length [, array replacement]])",
"Removes the elements designated by offset and length and replace them with supplied array"
],
"array_sum": [
"mixed array_sum(array input)",
"Returns the sum of the array entries"
],
"array_udiff": [
"array array_udiff(array arr1, array arr2 [, array ...], callback data_comp_func)",
"Returns the entries of arr1 that have values which are not present in any of the others arguments. Elements are compared by user supplied function."
],
"array_udiff_assoc": [
"array array_udiff_assoc(array arr1, array arr2 [, array ...], callback key_comp_func)",
"Returns the entries of arr1 that have values which are not present in any of the others arguments but do additional checks whether the keys are equal. Keys are compared by user supplied function."
],
"array_udiff_uassoc": [
"array array_udiff_uassoc(array arr1, array arr2 [, array ...], callback data_comp_func, callback key_comp_func)",
"Returns the entries of arr1 that have values which are not present in any of the others arguments but do additional checks whether the keys are equal. Keys and elements are compared by user supplied functions."
],
"array_uintersect": [
"array array_uintersect(array arr1, array arr2 [, array ...], callback data_compare_func)",
"Returns the entries of arr1 that have values which are present in all the other arguments. Data is compared by using an user-supplied callback."
],
"array_uintersect_assoc": [
"array array_uintersect_assoc(array arr1, array arr2 [, array ...], callback data_compare_func)",
"Returns the entries of arr1 that have values which are present in all the other arguments. Keys are used to do more restrictive check. Data is compared by using an user-supplied callback."
],
"array_uintersect_uassoc": [
"array array_uintersect_uassoc(array arr1, array arr2 [, array ...], callback data_compare_func, callback key_compare_func)",
"Returns the entries of arr1 that have values which are present in all the other arguments. Keys are used to do more restrictive check. Both data and keys are compared by using user-supplied callbacks."
],
"array_unique": [
"array array_unique(array input [, int sort_flags])",
"Removes duplicate values from array"
],
"array_unshift": [
"int array_unshift(array stack, mixed var [, mixed ...])",
"Pushes elements onto the beginning of the array"
],
"array_values": [
"array array_values(array input)",
"Return just the values from the input array"
],
"array_walk": [
"bool array_walk(array input, string funcname [, mixed userdata])",
"Apply a user function to every member of an array"
],
"array_walk_recursive": [
"bool array_walk_recursive(array input, string funcname [, mixed userdata])",
"Apply a user function recursively to every member of an array"
],
"arsort": [
"bool arsort(array &array_arg [, int sort_flags])",
"Sort an array in reverse order and maintain index association"
],
"asin": [
"float asin(float number)",
"Returns the arc sine of the number in radians"
],
"asinh": [
"float asinh(float number)",
"Returns the inverse hyperbolic sine of the number, i.e. the value whose hyperbolic sine is number"
],
"asort": [
"bool asort(array &array_arg [, int sort_flags])",
"Sort an array and maintain index association"
],
"assert": [
"int assert(string|bool assertion)",
"Checks if assertion is false"
],
"assert_options": [
"mixed assert_options(int what [, mixed value])",
"Set\/get the various assert flags"
],
"atan": [
"float atan(float number)",
"Returns the arc tangent of the number in radians"
],
"atan2": [
"float atan2(float y, float x)",
"Returns the arc tangent of y\/x, with the resulting quadrant determined by the signs of y and x"
],
"atanh": [
"float atanh(float number)",
"Returns the inverse hyperbolic tangent of the number, i.e. the value whose hyperbolic tangent is number"
],
"attachIterator": [
"void attachIterator(Iterator iterator[, mixed info])",
"Attach a new iterator"
],
"base64_decode": [
"string base64_decode(string str[, bool strict])",
"Decodes string using MIME base64 algorithm"
],
"base64_encode": [
"string base64_encode(string str)",
"Encodes string using MIME base64 algorithm"
],
"base_convert": [
"string base_convert(string number, int frombase, int tobase)",
"Converts a number in a string from any base <= 36 to any base <= 36"
],
"basename": [
"string basename(string path [, string suffix])",
"Returns the filename component of the path"
],
"bcadd": [
"string bcadd(string left_operand, string right_operand [, int scale])",
"Returns the sum of two arbitrary precision numbers"
],
"bccomp": [
"int bccomp(string left_operand, string right_operand [, int scale])",
"Compares two arbitrary precision numbers"
],
"bcdiv": [
"string bcdiv(string left_operand, string right_operand [, int scale])",
"Returns the quotient of two arbitrary precision numbers (division)"
],
"bcmod": [
"string bcmod(string left_operand, string right_operand)",
"Returns the modulus of the two arbitrary precision operands"
],
"bcmul": [
"string bcmul(string left_operand, string right_operand [, int scale])",
"Returns the multiplication of two arbitrary precision numbers"
],
"bcpow": [
"string bcpow(string x, string y [, int scale])",
"Returns the value of an arbitrary precision number raised to the power of another"
],
"bcpowmod": [
"string bcpowmod(string x, string y, string mod [, int scale])",
"Returns the value of an arbitrary precision number raised to the power of another reduced by a modulous"
],
"bcscale": [
"bool bcscale(int scale)",
"Sets default scale parameter for all bc math functions"
],
"bcsqrt": [
"string bcsqrt(string operand [, int scale])",
"Returns the square root of an arbitray precision number"
],
"bcsub": [
"string bcsub(string left_operand, string right_operand [, int scale])",
"Returns the difference between two arbitrary precision numbers"
],
"bin2hex": [
"string bin2hex(string data)",
"Converts the binary representation of data to hex"
],
"bind_textdomain_codeset": [
"string bind_textdomain_codeset (string domain, string codeset)",
"Specify the character encoding in which the messages from the DOMAIN message catalog will be returned."
],
"bindec": [
"int bindec(string binary_number)",
"Returns the decimal equivalent of the binary number"
],
"bindtextdomain": [
"string bindtextdomain(string domain_name, string dir)",
"Bind to the text domain domain_name, looking for translations in dir. Returns the current domain"
],
"birdstep_autocommit": [
"bool birdstep_autocommit(int index)",
""
],
"birdstep_close": [
"bool birdstep_close(int id)",
""
],
"birdstep_commit": [
"bool birdstep_commit(int index)",
""
],
"birdstep_connect": [
"int birdstep_connect(string server, string user, string pass)",
""
],
"birdstep_exec": [
"int birdstep_exec(int index, string exec_str)",
""
],
"birdstep_fetch": [
"bool birdstep_fetch(int index)",
""
],
"birdstep_fieldname": [
"string birdstep_fieldname(int index, int col)",
""
],
"birdstep_fieldnum": [
"int birdstep_fieldnum(int index)",
""
],
"birdstep_freeresult": [
"bool birdstep_freeresult(int index)",
""
],
"birdstep_off_autocommit": [
"bool birdstep_off_autocommit(int index)",
""
],
"birdstep_result": [
"mixed birdstep_result(int index, mixed col)",
""
],
"birdstep_rollback": [
"bool birdstep_rollback(int index)",
""
],
"bzcompress": [
"string bzcompress(string source [, int blocksize100k [, int workfactor]])",
"Compresses a string into BZip2 encoded data"
],
"bzdecompress": [
"string bzdecompress(string source [, int small])",
"Decompresses BZip2 compressed data"
],
"bzerrno": [
"int bzerrno(resource bz)",
"Returns the error number"
],
"bzerror": [
"array bzerror(resource bz)",
"Returns the error number and error string in an associative array"
],
"bzerrstr": [
"string bzerrstr(resource bz)",
"Returns the error string"
],
"bzopen": [
"resource bzopen(string|int file|fp, string mode)",
"Opens a new BZip2 stream"
],
"bzread": [
"string bzread(resource bz[, int length])",
"Reads up to length bytes from a BZip2 stream, or 1024 bytes if length is not specified"
],
"cal_days_in_month": [
"int cal_days_in_month(int calendar, int month, int year)",
"Returns the number of days in a month for a given year and calendar"
],
"cal_from_jd": [
"array cal_from_jd(int jd, int calendar)",
"Converts from Julian Day Count to a supported calendar and return extended information"
],
"cal_info": [
"array cal_info([int calendar])",
"Returns information about a particular calendar"
],
"cal_to_jd": [
"int cal_to_jd(int calendar, int month, int day, int year)",
"Converts from a supported calendar to Julian Day Count"
],
"call_user_func": [
"mixed call_user_func(mixed function_name [, mixed parmeter] [, mixed ...])",
"Call a user function which is the first parameter"
],
"call_user_func_array": [
"mixed call_user_func_array(string function_name, array parameters)",
"Call a user function which is the first parameter with the arguments contained in array"
],
"call_user_method": [
"mixed call_user_method(string method_name, mixed object [, mixed parameter] [, mixed ...])",
"Call a user method on a specific object or class"
],
"call_user_method_array": [
"mixed call_user_method_array(string method_name, mixed object, array params)",
"Call a user method on a specific object or class using a parameter array"
],
"ceil": [
"float ceil(float number)",
"Returns the next highest integer value of the number"
],
"chdir": [
"bool chdir(string directory)",
"Change the current directory"
],
"checkdate": [
"bool checkdate(int month, int day, int year)",
"Returns true(1) if it is a valid date in gregorian calendar"
],
"chgrp": [
"bool chgrp(string filename, mixed group)",
"Change file group"
],
"chmod": [
"bool chmod(string filename, int mode)",
"Change file mode"
],
"chown": [
"bool chown (string filename, mixed user)",
"Change file owner"
],
"chr": [
"string chr(int ascii)",
"Converts ASCII code to a character"
],
"chroot": [
"bool chroot(string directory)",
"Change root directory"
],
"chunk_split": [
"string chunk_split(string str [, int chunklen [, string ending]])",
"Returns split line"
],
"class_alias": [
"bool class_alias(string user_class_name , string alias_name [, bool autoload])",
"Creates an alias for user defined class"
],
"class_exists": [
"bool class_exists(string classname [, bool autoload])",
"Checks if the class exists"
],
"class_implements": [
"array class_implements(mixed what [, bool autoload ])",
"Return all classes and interfaces implemented by SPL"
],
"class_parents": [
"array class_parents(object instance [, boolean autoload = true])",
"Return an array containing the names of all parent classes"
],
"clearstatcache": [
"void clearstatcache([bool clear_realpath_cache[, string filename]])",
"Clear file stat cache"
],
"closedir": [
"void closedir([resource dir_handle])",
"Close directory connection identified by the dir_handle"
],
"closelog": [
"bool closelog(void)",
"Close connection to system logger"
],
"collator_asort": [
"bool collator_asort( Collator $coll, array(string) $arr )",
"* Sort array using specified collator, maintaining index association."
],
"collator_compare": [
"int collator_compare( Collator $coll, string $str1, string $str2 )",
"* Compare two strings."
],
"collator_create": [
"Collator collator_create( string $locale )",
"* Create collator."
],
"collator_get_attribute": [
"int collator_get_attribute( Collator $coll, int $attr )",
"* Get collation attribute value."
],
"collator_get_error_code": [
"int collator_get_error_code( Collator $coll )",
"* Get collator's last error code."
],
"collator_get_error_message": [
"string collator_get_error_message( Collator $coll )",
"* Get text description for collator's last error code."
],
"collator_get_locale": [
"string collator_get_locale( Collator $coll, int $type )",
"* Gets the locale name of the collator."
],
"collator_get_sort_key": [
"bool collator_get_sort_key( Collator $coll, string $str )",
"* Get a sort key for a string from a Collator. }}}"
],
"collator_get_strength": [
"int collator_get_strength(Collator coll)",
"* Returns the current collation strength."
],
"collator_set_attribute": [
"bool collator_set_attribute( Collator $coll, int $attr, int $val )",
"* Set collation attribute."
],
"collator_set_strength": [
"bool collator_set_strength(Collator coll, int strength)",
"* Set the collation strength."
],
"collator_sort": [
"bool collator_sort( Collator $coll, array(string) $arr [, int $sort_flags] )",
"* Sort array using specified collator."
],
"collator_sort_with_sort_keys": [
"bool collator_sort_with_sort_keys( Collator $coll, array(string) $arr )",
"* Equivalent to standard PHP sort using Collator. * Uses ICU ucol_getSortKey for performance."
],
"com_create_guid": [
"string com_create_guid()",
"Generate a globally unique identifier (GUID)"
],
"com_event_sink": [
"bool com_event_sink(object comobject, object sinkobject [, mixed sinkinterface])",
"Connect events from a COM object to a PHP object"
],
"com_get_active_object": [
"object com_get_active_object(string progid [, int code_page ])",
"Returns a handle to an already running instance of a COM object"
],
"com_load_typelib": [
"bool com_load_typelib(string typelib_name [, int case_insensitive])",
"Loads a Typelibrary and registers its constants"
],
"com_message_pump": [
"bool com_message_pump([int timeoutms])",
"Process COM messages, sleeping for up to timeoutms milliseconds"
],
"com_print_typeinfo": [
"bool com_print_typeinfo(object comobject | string typelib, string dispinterface, bool wantsink)",
"Print out a PHP class definition for a dispatchable interface"
],
"compact": [
"array compact(mixed var_names [, mixed ...])",
"Creates a hash containing variables and their values"
],
"compose_locale": [
"static string compose_locale($array)",
"* Creates a locale by combining the parts of locale-ID passed * }}}"
],
"confirm_extname_compiled": [
"string confirm_extname_compiled(string arg)",
"Return a string to confirm that the module is compiled in"
],
"connection_aborted": [
"int connection_aborted(void)",
"Returns true if client disconnected"
],
"connection_status": [
"int connection_status(void)",
"Returns the connection status bitfield"
],
"constant": [
"mixed constant(string const_name)",
"Given the name of a constant this function will return the constant's associated value"
],
"convert_cyr_string": [
"string convert_cyr_string(string str, string from, string to)",
"Convert from one Cyrillic character set to another"
],
"convert_uudecode": [
"string convert_uudecode(string data)",
"decode a uuencoded string"
],
"convert_uuencode": [
"string convert_uuencode(string data)",
"uuencode a string"
],
"copy": [
"bool copy(string source_file, string destination_file [, resource context])",
"Copy a file"
],
"cos": [
"float cos(float number)",
"Returns the cosine of the number in radians"
],
"cosh": [
"float cosh(float number)",
"Returns the hyperbolic cosine of the number, defined as (exp(number) + exp(-number))\/2"
],
"count": [
"int count(mixed var [, int mode])",
"Count the number of elements in a variable (usually an array)"
],
"count_chars": [
"mixed count_chars(string input [, int mode])",
"Returns info about what characters are used in input"
],
"crc32": [
"string crc32(string str)",
"Calculate the crc32 polynomial of a string"
],
"create_function": [
"string create_function(string args, string code)",
"Creates an anonymous function, and returns its name (funny, eh?)"
],
"crypt": [
"string crypt(string str [, string salt])",
"Hash a string"
],
"ctype_alnum": [
"bool ctype_alnum(mixed c)",
"Checks for alphanumeric character(s)"
],
"ctype_alpha": [
"bool ctype_alpha(mixed c)",
"Checks for alphabetic character(s)"
],
"ctype_cntrl": [
"bool ctype_cntrl(mixed c)",
"Checks for control character(s)"
],
"ctype_digit": [
"bool ctype_digit(mixed c)",
"Checks for numeric character(s)"
],
"ctype_graph": [
"bool ctype_graph(mixed c)",
"Checks for any printable character(s) except space"
],
"ctype_lower": [
"bool ctype_lower(mixed c)",
"Checks for lowercase character(s)"
],
"ctype_print": [
"bool ctype_print(mixed c)",
"Checks for printable character(s)"
],
"ctype_punct": [
"bool ctype_punct(mixed c)",
"Checks for any printable character which is not whitespace or an alphanumeric character"
],
"ctype_space": [
"bool ctype_space(mixed c)",
"Checks for whitespace character(s)"
],
"ctype_upper": [
"bool ctype_upper(mixed c)",
"Checks for uppercase character(s)"
],
"ctype_xdigit": [
"bool ctype_xdigit(mixed c)",
"Checks for character(s) representing a hexadecimal digit"
],
"curl_close": [
"void curl_close(resource ch)",
"Close a cURL session"
],
"curl_copy_handle": [
"resource curl_copy_handle(resource ch)",
"Copy a cURL handle along with all of it's preferences"
],
"curl_errno": [
"int curl_errno(resource ch)",
"Return an integer containing the last error number"
],
"curl_error": [
"string curl_error(resource ch)",
"Return a string contain the last error for the current session"
],
"curl_exec": [
"bool curl_exec(resource ch)",
"Perform a cURL session"
],
"curl_getinfo": [
"mixed curl_getinfo(resource ch [, int option])",
"Get information regarding a specific transfer"
],
"curl_init": [
"resource curl_init([string url])",
"Initialize a cURL session"
],
"curl_multi_add_handle": [
"int curl_multi_add_handle(resource mh, resource ch)",
"Add a normal cURL handle to a cURL multi handle"
],
"curl_multi_close": [
"void curl_multi_close(resource mh)",
"Close a set of cURL handles"
],
"curl_multi_exec": [
"int curl_multi_exec(resource mh, int &still_running)",
"Run the sub-connections of the current cURL handle"
],
"curl_multi_getcontent": [
"string curl_multi_getcontent(resource ch)",
"Return the content of a cURL handle if CURLOPT_RETURNTRANSFER is set"
],
"curl_multi_info_read": [
"array curl_multi_info_read(resource mh [, long msgs_in_queue])",
"Get information about the current transfers"
],
"curl_multi_init": [
"resource curl_multi_init(void)",
"Returns a new cURL multi handle"
],
"curl_multi_remove_handle": [
"int curl_multi_remove_handle(resource mh, resource ch)",
"Remove a multi handle from a set of cURL handles"
],
"curl_multi_select": [
"int curl_multi_select(resource mh[, double timeout])",
"Get all the sockets associated with the cURL extension, which can then be \"selected\""
],
"curl_setopt": [
"bool curl_setopt(resource ch, int option, mixed value)",
"Set an option for a cURL transfer"
],
"curl_setopt_array": [
"bool curl_setopt_array(resource ch, array options)",
"Set an array of option for a cURL transfer"
],
"curl_version": [
"array curl_version([int version])",
"Return cURL version information."
],
"current": [
"mixed current(array array_arg)",
"Return the element currently pointed to by the internal array pointer"
],
"date": [
"string date(string format [, long timestamp])",
"Format a local date\/time"
],
"date_add": [
"DateTime date_add(DateTime object, DateInterval interval)",
"Adds an interval to the current date in object."
],
"date_create": [
"DateTime date_create([string time[, DateTimeZone object]])",
"Returns new DateTime object"
],
"date_create_from_format": [
"DateTime date_create_from_format(string format, string time[, DateTimeZone object])",
"Returns new DateTime object formatted according to the specified format"
],
"date_date_set": [
"DateTime date_date_set(DateTime object, long year, long month, long day)",
"Sets the date."
],
"date_default_timezone_get": [
"string date_default_timezone_get()",
"Gets the default timezone used by all date\/time functions in a script"
],
"date_default_timezone_set": [
"bool date_default_timezone_set(string timezone_identifier)",
"Sets the default timezone used by all date\/time functions in a script"
],
"date_diff": [
"DateInterval date_diff(DateTime object [, bool absolute])",
"Returns the difference between two DateTime objects."
],
"date_format": [
"string date_format(DateTime object, string format)",
"Returns date formatted according to given format"
],
"date_get_last_errors": [
"array date_get_last_errors()",
"Returns the warnings and errors found while parsing a date\/time string."
],
"date_interval_create_from_date_string": [
"DateInterval date_interval_create_from_date_string(string time)",
"Uses the normal date parsers and sets up a DateInterval from the relative parts of the parsed string"
],
"date_interval_format": [
"string date_interval_format(DateInterval object, string format)",
"Formats the interval."
],
"date_isodate_set": [
"DateTime date_isodate_set(DateTime object, long year, long week[, long day])",
"Sets the ISO date."
],
"date_modify": [
"DateTime date_modify(DateTime object, string modify)",
"Alters the timestamp."
],
"date_offset_get": [
"long date_offset_get(DateTime object)",
"Returns the DST offset."
],
"date_parse": [
"array date_parse(string date)",
"Returns associative array with detailed info about given date"
],
"date_parse_from_format": [
"array date_parse_from_format(string format, string date)",
"Returns associative array with detailed info about given date"
],
"date_sub": [
"DateTime date_sub(DateTime object, DateInterval interval)",
"Subtracts an interval to the current date in object."
],
"date_sun_info": [
"array date_sun_info(long time, float latitude, float longitude)",
"Returns an array with information about sun set\/rise and twilight begin\/end"
],
"date_sunrise": [
"mixed date_sunrise(mixed time [, int format [, float latitude [, float longitude [, float zenith [, float gmt_offset]]]]])",
"Returns time of sunrise for a given day and location"
],
"date_sunset": [
"mixed date_sunset(mixed time [, int format [, float latitude [, float longitude [, float zenith [, float gmt_offset]]]]])",
"Returns time of sunset for a given day and location"
],
"date_time_set": [
"DateTime date_time_set(DateTime object, long hour, long minute[, long second])",
"Sets the time."
],
"date_timestamp_get": [
"long date_timestamp_get(DateTime object)",
"Gets the Unix timestamp."
],
"date_timestamp_set": [
"DateTime date_timestamp_set(DateTime object, long unixTimestamp)",
"Sets the date and time based on an Unix timestamp."
],
"date_timezone_get": [
"DateTimeZone date_timezone_get(DateTime object)",
"Return new DateTimeZone object relative to give DateTime"
],
"date_timezone_set": [
"DateTime date_timezone_set(DateTime object, DateTimeZone object)",
"Sets the timezone for the DateTime object."
],
"datefmt_create": [
"IntlDateFormatter datefmt_create(string $locale, long date_type, long time_type[, string $timezone_str, long $calendar, string $pattern] )",
"* Create formatter."
],
"datefmt_format": [
"string datefmt_format( [mixed]int $args or array $args )",
"* Format the time value as a string. }}}"
],
"datefmt_get_calendar": [
"string datefmt_get_calendar( IntlDateFormatter $mf )",
"* Get formatter calendar."
],
"datefmt_get_datetype": [
"string datefmt_get_datetype( IntlDateFormatter $mf )",
"* Get formatter datetype."
],
"datefmt_get_error_code": [
"int datefmt_get_error_code( IntlDateFormatter $nf )",
"* Get formatter's last error code."
],
"datefmt_get_error_message": [
"string datefmt_get_error_message( IntlDateFormatter $coll )",
"* Get text description for formatter's last error code."
],
"datefmt_get_locale": [
"string datefmt_get_locale(IntlDateFormatter $mf)",
"* Get formatter locale."
],
"datefmt_get_pattern": [
"string datefmt_get_pattern( IntlDateFormatter $mf )",
"* Get formatter pattern."
],
"datefmt_get_timetype": [
"string datefmt_get_timetype( IntlDateFormatter $mf )",
"* Get formatter timetype."
],
"datefmt_get_timezone_id": [
"string datefmt_get_timezone_id( IntlDateFormatter $mf )",
"* Get formatter timezone_id."
],
"datefmt_isLenient": [
"string datefmt_isLenient(IntlDateFormatter $mf)",
"* Get formatter locale."
],
"datefmt_localtime": [
"integer datefmt_localtime( IntlDateFormatter $fmt, string $text_to_parse[, int $parse_pos ])",
"* Parse the string $value to a localtime array }}}"
],
"datefmt_parse": [
"integer datefmt_parse( IntlDateFormatter $fmt, string $text_to_parse [, int $parse_pos] )",
"* Parse the string $value starting at parse_pos to a Unix timestamp -int }}}"
],
"datefmt_setLenient": [
"string datefmt_setLenient(IntlDateFormatter $mf)",
"* Set formatter lenient."
],
"datefmt_set_calendar": [
"bool datefmt_set_calendar( IntlDateFormatter $mf, int $calendar )",
"* Set formatter calendar."
],
"datefmt_set_pattern": [
"bool datefmt_set_pattern( IntlDateFormatter $mf, string $pattern )",
"* Set formatter pattern."
],
"datefmt_set_timezone_id": [
"boolean datefmt_set_timezone_id( IntlDateFormatter $mf,$timezone_id)",
"* Set formatter timezone_id."
],
"dba_close": [
"void dba_close(resource handle)",
"Closes database"
],
"dba_delete": [
"bool dba_delete(string key, resource handle)",
"Deletes the entry associated with key If inifile: remove all other key lines"
],
"dba_exists": [
"bool dba_exists(string key, resource handle)",
"Checks, if the specified key exists"
],
"dba_fetch": [
"string dba_fetch(string key, [int skip ,] resource handle)",
"Fetches the data associated with key"
],
"dba_firstkey": [
"string dba_firstkey(resource handle)",
"Resets the internal key pointer and returns the first key"
],
"dba_handlers": [
"array dba_handlers([bool full_info])",
"List configured database handlers"
],
"dba_insert": [
"bool dba_insert(string key, string value, resource handle)",
"If not inifile: Insert value as key, return false, if key exists already If inifile: Add vakue as key (next instance of key)"
],
"dba_key_split": [
"array|false dba_key_split(string key)",
"Splits an inifile key into an array of the form array(0=>group,1=>value_name) but returns false if input is false or null"
],
"dba_list": [
"array dba_list()",
"List opened databases"
],
"dba_nextkey": [
"string dba_nextkey(resource handle)",
"Returns the next key"
],
"dba_open": [
"resource dba_open(string path, string mode [, string handlername, string ...])",
"Opens path using the specified handler in mode"
],
"dba_optimize": [
"bool dba_optimize(resource handle)",
"Optimizes (e.g. clean up, vacuum) database"
],
"dba_popen": [
"resource dba_popen(string path, string mode [, string handlername, string ...])",
"Opens path using the specified handler in mode persistently"
],
"dba_replace": [
"bool dba_replace(string key, string value, resource handle)",
"Inserts value as key, replaces key, if key exists already If inifile: remove all other key lines"
],
"dba_sync": [
"bool dba_sync(resource handle)",
"Synchronizes database"
],
"dcgettext": [
"string dcgettext(string domain_name, string msgid, long category)",
"Return the translation of msgid for domain_name and category, or msgid unaltered if a translation does not exist"
],
"dcngettext": [
"string dcngettext (string domain, string msgid1, string msgid2, int n, int category)",
"Plural version of dcgettext()"
],
"debug_backtrace": [
"array debug_backtrace([bool provide_object])",
"Return backtrace as array"
],
"debug_print_backtrace": [
"void debug_print_backtrace(void) *\/",
"ZEND_FUNCTION(debug_print_backtrace) { zend_execute_data *ptr, *skip; int lineno; char *function_name; char *filename; char *class_name = NULL; char *call_type; char *include_filename = NULL; zval *arg_array = NULL; int indent = 0; if (zend_parse_parameters_none() == FAILURE) { return; } ptr = EG(current_execute_data); \/* skip debug_backtrace()"
],
"debug_zval_dump": [
"void debug_zval_dump(mixed var)",
"Dumps a string representation of an internal zend value to output."
],
"decbin": [
"string decbin(int decimal_number)",
"Returns a string containing a binary representation of the number"
],
"dechex": [
"string dechex(int decimal_number)",
"Returns a string containing a hexadecimal representation of the given number"
],
"decoct": [
"string decoct(int decimal_number)",
"Returns a string containing an octal representation of the given number"
],
"define": [
"bool define(string constant_name, mixed value, boolean case_insensitive=false)",
"Define a new constant"
],
"define_syslog_variables": [
"void define_syslog_variables(void)",
"Initializes all syslog-related variables"
],
"defined": [
"bool defined(string constant_name)",
"Check whether a constant exists"
],
"deg2rad": [
"float deg2rad(float number)",
"Converts the number in degrees to the radian equivalent"
],
"dgettext": [
"string dgettext(string domain_name, string msgid)",
"Return the translation of msgid for domain_name, or msgid unaltered if a translation does not exist"
],
"die": [
"void die([mixed status])",
"Output a message and terminate the current script"
],
"dir": [
"object dir(string directory[, resource context])",
"Directory class with properties, handle and class and methods read, rewind and close"
],
"dirname": [
"string dirname(string path)",
"Returns the directory name component of the path"
],
"disk_free_space": [
"float disk_free_space(string path)",
"Get free disk space for filesystem that path is on"
],
"disk_total_space": [
"float disk_total_space(string path)",
"Get total disk space for filesystem that path is on"
],
"display_disabled_function": [
"void display_disabled_function(void)",
"Dummy function which displays an error when a disabled function is called."
],
"dl": [
"int dl(string extension_filename)",
"Load a PHP extension at runtime"
],
"dngettext": [
"string dngettext (string domain, string msgid1, string msgid2, int count)",
"Plural version of dgettext()"
],
"dns_check_record": [
"bool dns_check_record(string host [, string type])",
"Check DNS records corresponding to a given Internet host name or IP address"
],
"dns_get_mx": [
"bool dns_get_mx(string hostname, array mxhosts [, array weight])",