PHP Function Reference (Updated: 5/9/2002)
String Functions in PHP
· string chr (int ascii)
· array explode (string separator, string string [, int limit])
· string implode (string glue, array pieces) || alias join (same)
· string ltrim (string str [, string charlist])
· string rtrim (string str [, string charlist])
· string str_repeat ( string input, int multiplier)
· mixed str_replace (mixed search, mixed replace, mixed subject)
· int strlen (string str)
· string str_pad ( string input, int pad_length [, string pad_string [, int pad_type]])
· int strpos (string haystack, string needle [, int offset])
· string strrev (string string)
· int strrpos (string haystack, char needle)
· string strtolower (string str)
· string strtoupper (string str)
· string substr (string string, int start [, int length])
· string trim (string str [, string charlist])
Array Functions in PHP
· array array ([mixed ...])
· array array_merge (array array1, array array2 [, array ...])
· mixed array_rand (array input [, int num_req])
· array array_reverse (array array [, bool preserve_keys])
· int count (mixed var) || alias sizeof (same)
· bool in_array ( mixed needle, array haystack [, bool strict])
· array range (mixed low, mixed high)
· void sort (array array [, int sort_flags])
File Functions in PHP
· int chmod (string filename, int mode)
· int copy (string source, string dest)
· bool fclose (int fp)
· array file (string filename [, int use_include_path])
· bool file_exists (string filename)
· int filesize (string filename)
· int fopen (string filename, string mode [, int use_include_path])
· string fread (int fp, int length)
· int fwrite (int fp, string string [, int length])
· int mkdir (string pathname, int mode)
· bool rmdir (string dirname)
HTTP Functions in PHP
· int header (string string [, bool replace])
· bool headers_sent (void)
· int setcookie (string name [, string value [, int expire [, string path [, string domain [, int secure]]]]])
Mathematical Functions in PHP
· mixed abs (mixed number)
· int bindec (string binary_string)
· float ceil (float value)
· string decbin (int number)
· string dechex (int number)
· float floor (float value)
· int hexdec (string hex_string)
· number pow (number base, number exp)
· int rand ([int min, int max])
· float round (float val [, int precision])
Variable Functions in PHP
· boolean empty (mixed var)
· bool is_array (mixed var)
· bool is_bool (mixed var)
· bool is_float (mixed var) || Alias is_double (same)
· bool is_int (mixed var) || Alias is_integer (same)
· bool is_resource (mixed var)
· bool is_string (mixed var)
· string strval (mixed var)
MySQL Functions in PHP
· bool mysql_close ([resource link_identifier])
· resource mysql_connect ([string server [, string username [, string password [, bool new_link]]]])
· string mysql_error ([resource link_identifier])
· array mysql_fetch_array (resource result [, int result_type])
· object mysql_fetch_field (resource result [, int field_offset])
· int mysql_num_fields (resource result)
· int mysql_num_rows (resource result)
· resource mysql_query (string query [, resource link_identifier [, int result_mode]])
· bool mysql_select_db (string database_name [, resource