X-Git-Url: http://secure.phpeclipse.com diff --git a/net.sourceforge.phpeclipse/src/net/sourceforge/phpeclipse/phpeditor/phpsyntax.xml b/net.sourceforge.phpeclipse/src/net/sourceforge/phpeclipse/phpeditor/phpsyntax.xml index a91a0ee..e00ee9e 100644 --- a/net.sourceforge.phpeclipse/src/net/sourceforge/phpeclipse/phpeditor/phpsyntax.xml +++ b/net.sourceforge.phpeclipse/src/net/sourceforge/phpeclipse/phpeditor/phpsyntax.xml @@ -42,31 +42,46 @@ about the given resource and returns this information in a class. apache_note() is an Apache-specific function which gets and sets values in a request's notes table. If called with one argument, it returns the current value of note note_name. If called with two arguments, it sets the value of note note_name to note_value and returns the previous value of note note_name. - - - - - - - - - - - - - - - - - - - - - - - - - + +Create an array. +Returns an array of the parameters. The parameters can be given an index with the => operator. +Note: array() is a language construct used to represent literal arrays, and not a regular function. +Syntax "index => values", separated by commas, define index and values. index may be of type string or numeric. +When index is omitted, a integer index is automatically generated, starting at 0. +If index is an integer, next generated index will be the biggest integer index + 1. +Note that when two identical index are defined, the last overwrite the first. + + Returns an array with all string keys lowercased or uppercased + Split an array into chunks + Counts all the values of an array + Computes the difference of arrays + Computes the difference of arrays with additional index check + Fill an array with values + Filters elements of an array using a callback function + Exchanges all keys with their associated values in an array + Computes the intersection of arrays + Computes the intersection of arrays with additional index check + Checks if the given key or index exists in the array + Return all the keys of an array + Applies the callback to the elements of the given arrays + Merge two or more arrays + Merge two or more arrays recursively + Sort multiple or multi-dimensional arrays + Pad array to the specified length with a value + Pop the element off the end of array + Push one or more elements onto the end of array + Pick one or more random entries out of an array + Iteratively reduce the array to a single value using a callback function + Return an array with elements in reverse order + Searches haystack for needle and returns the key if it is found in the array, FALSE otherwise. + Shift an element off the beginning of array + Extract a slice of the array + Remove a portion of the array and replace it with something else + Calculate the sum of values in an array + Removes duplicate values from an array + Prepend one or more elements to the beginning of array + Return all the values of an array + Apply a user function to every member of an array This function sorts an array such that array indices maintain their correlation with the array elements they are associated with. This is used mainly when sorting associative arrays where the actual element order is significant. Returns the arc sine of arg in radians. asin() is the complementary function of sin(), which means that a==sin(asin(a)) for every value of a that is within asin() 's range. This function sorts an array such that array indices maintain their correlation with the array elements they are associated with. This is used mainly when sorting associative arrays where the actual element order is significant. @@ -153,12 +168,12 @@ If the open fails, the function returns FALSE, otherwise it returns a pointer to - + Strip whitespace from the end of a string. This function is an alias of rtrim(). - + Return a specific character. Returns a one-character string containing the character specified by ascii. - + Split a string into smaller chunks bool class_exists(string classname) @@ -169,18 +184,18 @@ If the open fails, the function returns FALSE, otherwise it returns a pointer to - + Create array containing variables and their values - + Convert from one Cyrillic character set to another - - + Count elements in a variable + Return information about characters used in a string @@ -258,10 +273,9 @@ If the open fails, the function returns FALSE, otherwise it returns a pointer to - + Calculates the crc32 polynomial of a string Creates an anonymous function, and returns its name (funny, eh?) - - + One-way string encryption (hashing) @@ -282,7 +296,7 @@ If the open fails, the function returns FALSE, otherwise it returns a pointer to - + Return the current element in an array @@ -395,10 +409,16 @@ Directory class with properties, handle and class and methods read, rewind and c - + Return the current key and value pair from an array and advance the array cursor + +Output one or more strings. +echo() is not actually a function (it is a language construct) so you are not required to use parentheses with it. +In fact, if you want to pass more than one parameter to echo, you must not enclose the parameters within parentheses. +It is not possible to use echo() in a variable function context. + - + Set the internal pointer of an array to its last element Note: preg_match(), which uses a Perl-compatible regular expression syntax, is often a faster alternative to ereg(). Searches a string for matches to the regular expression given in pattern. If matches are found for parenthesized substrings of pattern and the function is called with the third argument regs, @@ -432,7 +452,7 @@ then explode() will return an array containing string. Note: The limit parameter was added in PHP 4.0.1 - + Import variables into the current symbol table from an array @@ -542,6 +562,7 @@ Using Windows shares: On windows, use //computername/share/filename or \\\\compu + Write a formatted string to a stream @@ -590,7 +611,7 @@ Using Windows shares: On windows, use //computername/share/filename or \\\\compu - + Returns the translation table used by htmlspecialchars() and htmlentities() @@ -719,13 +740,28 @@ if you have configured Apache to use a PHP script to handle requests for missing (using the ErrorDocument directive), you may want to make sure that your script generates the proper status code. - - + Convert logical Hebrew text to visual text + Convert logical Hebrew text to visual text with newline conversion - - + Convert all HTML entities to their applicable characters + Convert all applicable characters to HTML entities + +Convert special characters to HTML entities. +Certain characters have special significance in HTML, +and should be represented by HTML entities if they are to preserve their meanings. +This function returns a string with some of these conversions made; +the translations made are those most useful for everyday web programming. +If you require all HTML character entities to be translated, use htmlentities() instead. +This function is useful in preventing user-supplied text from containing HTML markup, +such as in a message board or guest book application. +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. + @@ -1033,8 +1069,8 @@ if you have configured Apache to use a PHP script to handle requests for missing - - + Join array elements with a string + Return TRUE if a value exists in an array @@ -1114,12 +1150,12 @@ if you have configured Apache to use a PHP script to handle requests for missing - + Join array elements with a string - - - + Fetch a key from an associative array + Sort an array by key in reverse order + Sort an array by key @@ -1163,19 +1199,25 @@ if you have configured Apache to use a PHP script to handle requests for missing - + Calculate Levenshtein distance between two strings + +Assign variables as if they were an array. +Like array(), this is not really a function, but a language construct. +list() is used to assign a list of variables in one operation. +Note: list() only works on numerical arrays and assumes the numerical indices start at 0. + - + Get numeric formatting information - + Strip whitespace from the beginning of a string @@ -1254,9 +1296,10 @@ if you have configured Apache to use a PHP script to handle requests for missing - + Calculate the md5 hash of a string + Calculates the md5 hash of a given filename - + Calculate the metaphone key of a string @@ -1274,6 +1317,7 @@ Both portions of the string are returned in units of seconds. + Formats a number as a currency string @@ -1562,13 +1606,14 @@ The optional result_mode parameter can be MYSQL_USE_RESULT and MYSQL_STORE_RESUL It defaults to MYSQL_USE_RESULT, so the result is not buffered. See also mysql_query() for the counterpart of this behaviour. - - + Sort an array using a case insensitive "natural order" algorithm + Sort an array using a "natural order" algorithm - + Advance the internal array pointer of an array - + Inserts HTML line breaks before all newlines in a string + Query language and locale information @@ -1583,7 +1628,7 @@ See also mysql_query() for the counterpart of this behaviour. - + Format a number with grouped thousands @@ -1734,7 +1779,7 @@ See also mysql_query() for the counterpart of this behaviour. - + Returns the ASCII value of the first character of string. This function complements chr(). @@ -1759,7 +1804,7 @@ See also mysql_query() for the counterpart of this behaviour. - + Parses the string into variables @@ -1936,7 +1981,7 @@ Note: This information is also available in the predefined constant PHP_VERSION. - + Get the current element from an array @@ -1975,7 +2020,13 @@ Note: This information is also available in the predefined constant PHP_VERSION. - + Rewind the internal array pointer + +Output a string. +Outputs arg. Returns TRUE on success or FALSE on failure. +print() is not actually a real function (it is a language construct) so you are not required to use parentheses with it. + + Output a formatted string. @@ -2030,11 +2081,11 @@ Note: This information is also available in the predefined constant PHP_VERSION. - - + Convert a quoted-printable string to an 8 bit string + Quote meta characters - + Create an array containing a range of elements @@ -2067,7 +2118,7 @@ Note: This information is also available in the predefined constant PHP_VERSION. - + Set the internal pointer of an array to its first element @@ -2076,8 +2127,8 @@ Note: This information is also available in the predefined constant PHP_VERSION. - - + Sort an array in reverse order + Strip whitespace from the end of a string @@ -2154,7 +2205,7 @@ Because the expire and secure arguments are integers, they cannot be skipped wit - + Set locale information @@ -2168,6 +2219,12 @@ Because the expire and secure arguments are integers, they cannot be skipped wit + +Calculate the sha1 hash of a string +Calculates the sha1 hash of str using the US Secure Hash Algorithm 1, and returns that hash. +The hash is a 40-character hexadecimal number. + + Calculate the sha1 hash of a file @@ -2182,12 +2239,12 @@ Because the expire and secure arguments are integers, they cannot be skipped wit - + Shuffle an array - + Calculate the similarity between two strings - + Get the number of elements in variable. The sizeof() function is an alias for count(). @@ -2210,19 +2267,28 @@ Because the expire and secure arguments are integers, they cannot be skipped wit - - + Sort an array. This function sorts an array. Elements will be arranged from lowest to highest when this function has completed. + Calculate the soundex key of a string - + Return a formatted string - + Parses input from a string according to a format - - - + Pad a string to a certain length with another string + Repeat a string + Replace all occurrences of the search string with the replacement string + +Perform the rot13 transform on a string. +This function performs the ROT13 encoding on the str argument and returns the resulting string. +The ROT13 encoding simply shifts every letter by 13 places in the alphabet while leaving non-alpha characters untouched. +Encoding and decoding are done by the same function, passing an encoded string as argument +will return the original version. + + Randomly shuffles a string + Return information about words used in a string @@ -2387,7 +2453,7 @@ Because the expire and secure arguments are integers, they cannot be skipped wit - + Sort an array with a user-defined comparison function and maintain index association @@ -2405,7 +2471,7 @@ Because the expire and secure arguments are integers, they cannot be skipped wit - + Sort an array by keys using a user-defined comparison function @@ -2417,7 +2483,7 @@ Because the expire and secure arguments are integers, they cannot be skipped wit - + Sort an array by values using a user-defined comparison function