email: hank@hankjensenwebsites.com 
phone: 410-948-9006 

PHP Reference


Server side scripting language.

Designed for web development to produce dynamic web bages.

Array Functions:

array() Creates an array
array_change_key_case() Returns an array with all keys in lowercase or uppercase
array_chunk() Splits an array into chunks of arrays
array_combine() Creates an array by using one array for keys and another for its values
array_count_values() Returns an array with the number of occurrences for each value
array_diff() Compares array values, and returns the differences
array_diff_assoc() Compares array keys and values, and returns the differences
array_diff_key() Compares array keys, and returns the differences
array_diff_uassoc() Compares array keys and values, with an additional user-made function check, and returns the differences
array_diff_ukey() Compares array keys, with an additional user-made function check, and returns the differences
array_fill() Fills an array with values
array_filter() Filters elements of an array using a user-made function
array_flip() Exchanges all keys with their associated values in an array
array_intersect() Compares array values, and returns the matches
array_intersect_assoc() Compares array keys and values, and returns the matches
array_intersect_key() Compares array keys, and returns the matches
array_intersect_uassoc() Compares array keys and values, with an additional user-made function check, and returns the matches
array_intersect_ukey() Compares array keys, with an additional user-made function check, and returns the matches
array_key_exists() Checks if the specified key exists in the array
array_keys() Returns all the keys of an array
array_map() Sends each value of an array to a user-made function, which returns new values
array_merge() Merges one or more arrays into one array
array_merge_recursive() Merges one or more arrays into one array
array_multisort() Sorts multiple or multi-dimensional arrays
array_pad() Inserts a specified number of items, with a specified value, to an array
array_pop() Deletes the last element of an array
array_product() Calculates the product of the values in an array
array_push() Inserts one or more elements to the end of an array
array_rand() Returns one or more random keys from an array
array_reduce() Returns an array as a string, using a user-defined function
array_reverse() Returns an array in the reverse order
array_search() Searches an array for a given value and returns the key
array_shift() Removes the first element from an array, and returns the value of the removed element
array_slice() Returns selected parts of an array
array_splice() Removes and replaces specified elements of an array
array_sum() Returns the sum of the values in an array
array_udiff() Compares array values in a user-made function and returns an array
array_udiff_assoc() Compares array keys, and compares array values in a user-made function, and returns an array
array_udiff_uassoc() Compares array keys and array values in user-made functions, and returns an array
array_uintersect() Compares array values in a user-made function and returns an array
array_uintersect_assoc() Compares array keys, and compares array values in a user-made function, and returns an array
array_uintersect_uassoc() Compares array keys and array values in user-made functions, and returns an array
array_unique() Removes duplicate values from an array
array_unshift() Adds one or more elements to the beginning of an array
array_values() Returns all the values of an array
array_walk() Applies a user function to every member of an array
array_walk_recursive() Applies a user function recursively to every member of an array
arsort() Sorts an array in reverse order and maintain index association
asort() Sorts an array and maintain index association
compact() Create array containing variables and their values
count() Counts elements in an array, or properties in an object
current() Returns the current element in an array
each() Returns the current key and value pair from an array
end() Sets the internal pointer of an array to its last element
extract() Imports variables into the current symbol table from an array
in_array() Checks if a specified value exists in an array
key() Fetches a key from an array
krsort() Sorts an array by key in reverse order
ksort() Sorts an array by key
list() Assigns variables as if they were an array
natcasesort() Sorts an array using a case insensitive "natural order" algorithm
natsort() Sorts an array using a "natural order" algorithm
next() Advance the internal array pointer of an array
pos() Alias of current()
prev() Rewinds the internal array pointer
range() Creates an array containing a range of elements
reset() Sets the internal pointer of an array to its first element
rsort() Sorts an array in reverse order
shuffle() Shuffles an array
sizeof() Alias of count()
sort() Sorts an array
uasort() Sorts an array with a user-defined function and maintain index association
uksort() Sorts an array by keys using a user-defined function
usort() Sorts an array by values using a user-defined function


Calendar Functions:

cal_days_in_month() Returns the number of days in a month for a specified year and calendar
cal_from_jd() Converts a Julian day count into a date of a specified calendar
cal_info() Returns information about a given calendar
cal_to_jd() Converts a date to Julian day count
easter_date() Returns the Unix timestamp for midnight on Easter of a specified year
easter_days() Returns the number of days after March 21, on which Easter falls for a specified year
FrenchToJD() Converts a French Republican date to a Julian day count
GregorianToJD() Converts a Gregorian date to a Julian day count
JDDayOfWeek() Returns the day of a week
JDMonthName() Returns a month name
JDToFrench() Converts a Julian day count to a French Republican date
JDToGregorian() Converts a Julian day count to a Gregorian date
jdtojewish() Converts a Julian day count to a Jewish date
JDToJulian() Converts a Julian day count to a Julian date
jdtounix() Converts a Julian day count to a Unix timestamp
JewishToJD() Converts a Jewish date to a Julian day count
JulianToJD() Converts a Julian date to a Julian day count
unixtojd() Converts a Unix timestamp to a Julian day count


Date Functions:

checkdate() Validates a Gregorian date
date_default_timezone_get() Returns the default time zone
date_default_timezone_set() Sets the default time zone
date_sunrise() Returns the time of sunrise for a given day / location
date_sunset() Returns the time of sunset for a given day / location
date() Formats a local time/date
getdate() Returns an array that contains date and time information for a Unix timestamp
gettimeofday() Returns an array that contains current time information
gmdate() Formats a GMT/UTC date/time
gmmktime() Returns the Unix timestamp for a GMT date
gmstrftime() Formats a GMT/UTC time/date according to locale settings
idate() Formats a local time/date as integer
localtime() Returns an array that contains the time components of a Unix timestamp
microtime() Returns the microseconds for the current time
mktime() Returns the Unix timestamp for a date
strftime() Formats a local time/date according to locale settings
strptime() Parses a time/date generated with strftime()
strtotime() Parses an English textual date or time into a Unix timestamp
time() Returns the current time as a Unix timestamp


Directory Functions

chdir() Changes the current directory
chroot() Changes the root directory of the current process
dir() Opens a directory handle and returns an object
closedir() Closes a directory handle
getcwd() Returns the current directory
opendir() Opens a directory handle
readdir() Returns an entry from a directory handle
rewinddir() Resets a directory handle
scandir() Lists files and directories inside a specified path


Error Functions

debug_backtrace() Generates a backtrace
debug_print_backtrace() Prints a backtrace
error_get_last() Gets the last error occurred
error_log() Sends an error to the server error-log, to a file or to a remote destination
error_reporting() Specifies which errors are reported
restore_error_handler() Restores the previous error handler
restore_exception_handler() Restores the previous exception handler
set_error_handler() Sets a user-defined function to handle errors
set_exception_handler() Sets a user-defined function to handle exceptions
trigger_error() Creates a user-defined error message
user_error() Alias of trigger_error()


Filesystem Functions

basename() Returns the filename component of a path
chgrp() Changes the file group
chmod() Changes the file mode
chown() Changes the file owner
clearstatcache() Clears the file status cache
copy() Copies a file
delete() See unlink() or unset()
dirname() Returns the directory name component of a path
disk_free_space() Returns the free space of a directory
disk_total_space() Returns the total size of a directory
diskfreespace() Alias of disk_free_space()
fclose() Closes an open file
feof() Tests for end-of-file on an open file
fflush() Flushes buffered output to an open file
fgetc() Returns a character from an open file
fgetcsv() Parses a line from an open file, checking forCSV fields
fgets() Returns a line from an open file
fgetss() Returns a line, with HTML and PHP tags removed, from an open file
file() Reads a file into an array
file_exists() Checks whether or not a file or directory exists
file_get_contents() Reads a file into a string
file_put_contents Writes a string to a file
fileatime() Returns the last access time of a file
filectime() Returns the last change time of a file
filegroup() Returns the group ID of a file
fileinode() Returns the inode number of a file
filemtime() Returns the last modification time of a file
fileowner() Returns the user ID (owner) of a file
fileperms() Returns the permissions of a file
filesize() Returns the file size
filetype() Returns the file type
flock() Locks or releases a file
fnmatch() Matches a filename or string against a specified pattern
fopen() Opens a file or URL
fpassthru() Reads from an open file, until EOF, and writes the result to the output buffer
fputcsv() Formats a line as CSV and writes it to an open file
fputs() Alias of fwrite()
fread() Reads from an open file
fscanf() Parses input from an open file according to a specified format
fseek() Seeks in an open file
fstat() Returns information about an open file
ftell() Returns the current position in an open file
ftruncate() Truncates an open file to a specified length
fwrite() Writes to an open file
glob() Returns an array of filenames / directories matching a specified pattern
is_dir() Checks whether a file is a directory
is_executable() Checks whether a file is executable
is_file() Checks whether a file is a regular file
is_link() Checks whether a file is a link
is_readable() Checks whether a file is readable
is_uploaded_file() Checks whether a file was uploaded via HTTP POST
is_writable() Checks whether a file is writeable
is_writeable() Alias of is_writable()
link() Creates a hard link
linkinfo() Returns information about a hard link
lstat() Returns information about a file or symbolic link
mkdir() Creates a directory
move_uploaded_file() Moves an uploaded file to a new location
parse_ini_file() Parses a configuration file
pathinfo() Returns information about a file path
pclose() Closes a pipe opened by popen()
popen() Opens a pipe
readfile() Reads a file and writes it to the output buffer
readlink() Returns the target of a symbolic link
realpath() Returns the absolute pathname
rename() Renames a file or directory
rewind() Rewinds a file pointer
rmdir() Removes an empty directory
set_file_buffer() Sets the buffer size of an open file
stat() Returns information about a file
symlink() Creates a symbolic link
tempnam() Creates a unique temporary file
tmpfile() Creates a unique temporary file
touch() Sets access and modification time of a file
umask() Changes file permissions for files
unlink() Deletes a file


Filter Functions

filter_has_var() Checks if a variable of a specified input type exist
filter_id() Returns the ID number of a specified filter
filter_input() Get input from outside the script and filter it
filter_input_array() Get multiple inputs from outside the script and filters them
filter_list() Returns an array of all supported filters
filter_var_array() Get multiple variables and filter them
filter_var() Get a variable and filter it


FTP Functions

ftp_alloc() Allocates space for a file to be uploaded to the FTP server
ftp_cdup() Changes the current directory to the parent directory on the FTP server
ftp_chdir() Changes the current directory on the FTP server
ftp_chmod() Sets permissions on a file via FTP
ftp_close() Closes an FTP connection
ftp_connect() Opens an FTP connection
ftp_delete() Deletes a file on the FTP server
ftp_exec() Executes a program/command on the FTP server
ftp_fget() Downloads a file from the FTP server and saves it to an open file
ftp_fput() Uploads from an open file and saves it to a file on the FTP server
ftp_get_option() Returns runtime behaviors of the FTP connection
ftp_get() Downloads a file from the FTP server
ftp_login() Logs on to an FTP connection
ftp_mdtm() Returns the last modified time of a specified file
ftp_mkdir() Creates a new directory on the FTP server
ftp_nb_continue() Continues retrieving/sending a file (non-blocking)
ftp_nb_fget() Downloads a file from the FTP server and saves it to an open file (non-blocking)
ftp_nb_fput() Uploads from an open file and saves it to a file on the FTP server (non-blocking)
ftp_nb_get() Downloads a file from the FTP server (non-blocking)
ftp_nb_put() Uploads a file to the FTP server (non-blocking)
ftp_nlist() Lists the files in a specified directory on the FTP server
ftp_pasv() Turns passive mode on or off
ftp_put() Uploads a file to the FTP server
ftp_pwd() Returns the current directory name
ftp_quit() Alias of ftp_close()
ftp_raw() Sends a raw command to the FTP server
ftp_rawlist() Returns a detailed list of files in the specified directory
ftp_rename() Renames a file or directory on the FTP server
ftp_rmdir() Removes a directory on the FTP server
ftp_set_option() Sets runtime options for the FTP connection
ftp_site() Sends a SITE command to the server
ftp_size() Returns the size of the specified file
ftp_ssl_connect() Opens a secure SSL-FTP connection
ftp_systype() Returns the system type identifier of the FTP server


HTTP Functions

header() Sends a raw HTTP header to a client
headers_list() Returns a list of response headers sent (or ready to send)
headers_sent() Checks if / where the HTTP headers have been sent
setcookie() Sends an HTTP cookie to a client
setrawcookie() Sends an HTTP cookie without URL encoding the cookie value


Libxml Functions

libxml_clear_errors() Clear libxml error buffer
libxml_get_errors() Retrieve array of errors
libxml_get_last_error() Retrieve last error from libxml
libxml_set_streams_context() Set the streams context for the next libxml document load or write
libxml_use_internal_errors() Disable libxml errors and allow user to fetch error information as needed


Mail Functions

mail() Allows you to send emails directly from a script


Math Functions

abs() Returns the absolute value of a number
acos() Returns the arccosine of a number
acosh() Returns the inverse hyperbolic cosine of a number
asin() Returns the arcsine of a number
asinh() Returns the inverse hyperbolic sine of a number
atan() Returns the arctangent of a number as a numeric value between -PI/2 and PI/2 radians
atan2() Returns the angle theta of an (x,y) point as a numeric value between -PI and PI radians
atanh() Returns the inverse hyperbolic tangent of a number
base_convert() Converts a number from one base to another
bindec() Converts a binary number to a decimal number
ceil() Returns the value of a number rounded upwards to the nearest integer
cos() Returns the cosine of a number
cosh() Returns the hyperbolic cosine of a number
decbin() Converts a decimal number to a binary number
dechex() Converts a decimal number to a hexadecimal number
decoct() Converts a decimal number to an octal number
deg2rad() Converts a degree to a radian number
exp() Returns the value of Ex
expm1() Returns the value of Ex - 1
floor() Returns the value of a number rounded downwards to the nearest integer
fmod() Returns the remainder (modulo) of the division of the arguments

getrandmax()

Returns the maximum random number that can be returned by a call to the rand() function
hexdec() Converts a hexadecimal number to a decimal number
hypot() Returns the length of the hypotenuse of a right-angle triangle
is_finite() Returns true if a value is a finite number
is_infinite() Returns true if a value is an infinite number
is_nan() Returns true if a value is not a number
lcg_value() Returns a pseudo random number in the range of (0,1)
log() Returns the natural logarithm (base E) of a number
log10() Returns the base-10 logarithm of a number
log1p() Returns log(1+number)
max() Returns the number with the highest value of two specified numbers
min() Returns the number with the lowest value of two specified numbers
mt_getrandmax() Returns the largest possible value that can be returned by mt_rand()
mt_rand() Returns a random integer using Mersenne Twister algorithm
mt_srand() Seeds the Mersenne Twister random number generator
octdec() Converts an octal number to a decimal number
pi() Returns the value of PI
pow() Returns the value of x to the power of y
rad2deg() Converts a radian number to a degree
rand() Returns a random integer
round() Rounds a number to the nearest integer
sin() Returns the sine of a number
sinh() Returns the hyperbolic sine of a number
sqrt() Returns the square root of a number
srand() Seeds the random number generator
tan() Returns the tangent of an angle
tanh() Returns the hyperbolic tangent of an angle


Misc Functions

connection_aborted() Checks whether the client has disconnected
connection_status() Returns the current connection status
connection_timeout() Deprecated in PHP 4.0.5
constant() Returns the value of a constant
define() Defines a constant
defined() Checks whether a constant exists
die() Prints a message and exits the current script
eval() Evaluates a string as PHP code
exit() Prints a message and exits the current script
get_browser() Returns the capabilities of the user's browser
highlight_file() Outputs a file with the PHP syntax highlighted
highlight_string() Outputs a string with the PHP syntax highlighted
ignore_user_abort() Sets whether a remote client can abort the running of a script
pack() Packs data into a binary string
php_check_syntax() Deprecated in PHP 5.0.5
php_strip_whitespace() Returns the source code of a file with PHP comments and whitespace removed
show_source() Alias of highlight_file()
sleep() Delays code execution for a number of seconds
time_nanosleep() Delays code execution for a number of seconds and nanoseconds
time_sleep_until() Delays code execution until a specified time
uniqid() Generates a unique ID
unpack() Unpacks data from a binary string
usleep() Delays code execution for a number of microseconds


MySQL Functions

mysql_affected_rows() Returns the number of affected rows in the previous MySQL operation
mysql_change_user() Deprecated. Changes the user of the current MySQL connection
mysql_client_encoding() Returns the name of the character set for the current connection
mysql_close() Closes a non-persistent MySQL connection
mysql_connect() Opens a non-persistent MySQL connection
mysql_create_db() Deprecated. Creates a new MySQL database. Use mysql_query() instead
mysql_data_seek() Moves the record pointer
mysql_db_name() Returns a database name from a call to mysql_list_dbs()
mysql_db_query() Deprecated. Sends a MySQL query. Use mysql_select_db() and mysql_query() instead
mysql_drop_db() Deprecated. Deletes a MySQL database. Use mysql_query() instead
mysql_errno() Returns the error number of the last MySQL operation
mysql_error() Returns the error description of the last MySQL operation
mysql_escape_string() Deprecated. Escapes a string for use in a mysql_query. Use mysql_real_escape_string() instead
mysql_fetch_array() Returns a row from a recordset as an associative array and/or a numeric array
mysql_fetch_assoc() Returns a row from a recordset as an associative array
mysql_fetch_field() Returns column info from a recordset as an object
mysql_fetch_lengths() Returns the length of the contents of each field in a result row
mysql_fetch_object() Returns a row from a recordset as an object
mysql_fetch_row() Returns a row from a recordset as a numeric array
mysql_field_flags() Returns the flags associated with a field in a recordset
mysql_field_len() Returns the maximum length of a field in a recordset
mysql_field_name() Returns the name of a field in a recordset
mysql_field_seek() Moves the result pointer to a specified field
mysql_field_table() Returns the name of the table the specified field is in
mysql_field_type() Returns the type of a field in a recordset
mysql_free_result() Free result memory
mysql_get_client_info() Returns MySQL client info
mysql_get_host_info() Returns MySQL host info
mysql_get_proto_info() Returns MySQL protocol info
mysql_get_server_info() Returns MySQL server info
mysql_info() Returns information about the last query
mysql_insert_id() Returns the AUTO_INCREMENT ID generated from the previous INSERT operation
mysql_list_dbs() Lists available databases on a MySQL server
mysql_list_fields() Deprecated. Lists MySQL table fields. Use mysql_query() instead
mysql_list_processes() Lists MySQL processes
mysql_list_tables() Deprecated. Lists tables in a MySQL database. Use mysql_query() instead
mysql_num_fields() Returns the number of fields in a recordset
mysql_num_rows() Returns the number of rows in a recordset
mysql_pconnect() Opens a persistent MySQL connection
mysql_ping() Pings a server connection or reconnects if there is no connection
mysql_query() Executes a query on a MySQL database
mysql_real_escape_string() Escapes a string for use in SQL statements
mysql_result() Returns the value of a field in a recordset
mysql_select_db() Sets the active MySQL database
mysql_stat() Returns the current system status of the MySQL server
mysql_tablename() Deprecated. Returns the table name of field. Use mysql_query() instead
mysql_thread_id() Returns the current thread ID
mysql_unbuffered_query() Executes a query on a MySQL database (without fetching / buffering the result)


SimpleXML Functions

__construct() Creates a new SimpleXMLElement object
addAttribute() Adds an attribute to the SimpleXML element
addChild() Adds a child element the SimpleXML element
asXML() Gets an XML string from a SimpleXML element
attributes() Gets a SimpleXML element's attributes
children() Gets the children of a specified node
getDocNamespaces() Gets the namespaces of an XML document
getName() Gets the name of a SimpleXML element
getNamespace() Gets the namespaces from XML data
registerXPathNamespace() Creates a namespace context for the next XPath query
simplexml_import_dom() Gets a SimpleXMLElement object from a DOM node
simplexml_load_file() Gets a SimpleXMLElement object from an XML document
simplexml_load_string() Gets a SimpleXMLElement object from an XML string
xpath() Runs an XPath query on XML data


String Functions

addcslashes() Returns a string with backslashes in front of the specified characters
addslashes() Returns a string with backslashes in front of predefined characters
bin2hex() Converts a string of ASCII characters to hexadecimal values
chop() Alias of rtrim()
chr() Returns a character from a specified ASCII value
chunk_split() Splits a string into a series of smaller parts
convert_cyr_string() Converts a string from one Cyrillic character-set to another
convert_uudecode() Decodes a uuencoded string
convert_uuencode() Encodes a string using the uuencode algorithm
count_chars() Returns how many times an ASCII character occurs within a string and returns the information
crc32() Calculates a 32-bit CRC for a string
crypt() One-way string encryption (hashing)
echo() Outputs strings
explode() Breaks a string into an array
fprintf() Writes a formatted string to a specified output stream
get_html_translation_table() Returns the translation table used by htmlspecialchars() and htmlentities()
hebrev() Converts Hebrew text to visual text
hebrevc() Converts Hebrew text to visual text and new lines (\n) into <br />
html_entity_decode() Converts HTML entities to characters
htmlentities() Converts characters to HTML entities
htmlspecialchars_decode() Converts some predefined HTML entities to characters
htmlspecialchars() Converts some predefined characters to HTML entities
implode() Returns a string from the elements of an array
join() Alias of implode()
levenshtein() Returns the Levenshtein distance between two strings
localeconv() Returns locale numeric and monetary formatting information
ltrim() Strips whitespace from the left side of a string
md5() Calculates the MD5 hash of a string
md5_file() Calculates the MD5 hash of a file
metaphone() Calculates the metaphone key of a string
money_format() Returns a string formatted as a currency string
nl_langinfo() Returns specific local information
nl2br() Inserts HTML line breaks in front of each newline in a string
number_format() Formats a number with grouped thousands
ord() Returns the ASCII value of the first character of a string
parse_str() Parses a query string into variables
print() Outputs a string
printf() Outputs a formatted string
quoted_printable_decode() Decodes a quoted-printable string
quotemeta() Quotes meta characters
rtrim() Strips whitespace from the right side of a string
setlocale() Sets locale information
sha1() Calculates the SHA-1 hash of a string
sha1_file() Calculates the SHA-1 hash of a file
similar_text() Calculates the similarity between two strings
soundex() Calculates the soundex key of a string
sprintf() Writes a formatted string to a variable
sscanf() Parses input from a string according to a format
str_ireplace() Replaces some characters in a string (case-insensitive)
str_pad() Pads a string to a new length
str_repeat() Repeats a string a specified number of times
str_replace() Replaces some characters in a string (case-sensitive)
str_rot13() Performs the ROT13 encoding on a string
str_shuffle() Randomly shuffles all characters in a string
str_split() Splits a string into an array
str_word_count() Count the number of words in a string
strcasecmp() Compares two strings (case-insensitive)
strchr() Finds the first occurrence of a string inside another string (alias of strstr())
strcmp() Compares two strings (case-sensitive)
strcoll() Locale based string comparison
strcspn() Returns the number of characters found in a string before any part of some specified characters are found
strip_tags() Strips HTML and PHP tags from a string
stripcslashes() Unquotes a string quoted with addcslashes()
stripslashes() Unquotes a string quoted with addslashes()
stripos() Returns the position of the first occurrence of a string inside another string (case-insensitive)
stristr() Finds the first occurrence of a string inside another string (case-insensitive)
strlen() Returns the length of a string
strnatcasecmp() Compares two strings using a "natural order" algorithm (case-insensitive)
strnatcmp() Compares two strings using a "natural order" algorithm (case-sensitive)
strncasecmp() String comparison of the first n characters (case-insensitive)
strncmp() String comparison of the first n characters (case-sensitive)
strpbrk() Searches a string for any of a set of characters
strpos() Returns the position of the first occurrence of a string inside another string (case-sensitive)
strrchr() Finds the last occurrence of a string inside another string
strrev() Reverses a string
strripos() Finds the position of the last occurrence of a string inside another string (case-insensitive)
strrpos() Finds the position of the last occurrence of a string inside another string (case-sensitive)
strspn() Returns the number of characters found in a string that contains only characters from a specified charlist
strstr() Finds the first occurrence of a string inside another string (case-sensitive)
strtok() Splits a string into smaller strings
strtolower() Converts a string to lowercase letters
strtoupper() Converts a string to uppercase letters
strtr() Translates certain characters in a string
substr() Returns a part of a string
substr_compare() Compares two strings from a specified start position (binary safe and optionally case-sensitive)
substr_count() Counts the number of times a substring occurs in a string
substr_replace() Replaces a part of a string with another string
trim() Strips whitespace from both sides of a string
ucfirst() Converts the first character of a string to uppercase
ucwords() Converts the first character of each word in a string to uppercase
vfprintf() Writes a formatted string to a specified output stream
vprintf() Outputs a formatted string
vsprintf() Writes a formatted string to a variable
wordwrap() Wraps a string to a given number of characters


XML Functions

utf8_decode() Decodes an UTF-8 string to ISO-8859-1
utf8_encode() Encodes an ISO-8859-1 string to UTF-8
xml_error_string() Gets an error string from the XML parser
xml_get_current_byte_index() Gets the current byte index from the XML parser
xml_get_current_column_number() Gets the current column number from the XML parser
xml_get_current_line_number() Gets the current line number from the XML parser
xml_get_error_code() Gets an error code from the XML parser
xml_parse() Parses an XML document
xml_parse_into_struct() Parse XML data into an array
xml_parser_create_ns() Create an XML parser with namespace support
xml_parser_create() Create an XML parser
xml_parser_free() Free an XML parser
xml_parser_get_option() Get options from an XML parser
xml_parser_set_option() Set options in an XML parser
xml_set_character_data_handler() Set handler function for character data
xml_set_default_handler() Set default handler function
xml_set_element_handler() Set handler function for start and end element of elements
xml_set_end_namespace_decl_handler() Set handler function for the end of namespace declarations
xml_set_external_entity_ref_handler() Set handler function for external entities
xml_set_notation_decl_handler() Set handler function for notation declarations
xml_set_object() Use XML Parser within an object
xml_set_processing_instruction_handler() Set handler function for processing instruction
xml_set_start_namespace_decl_handler() Set handler function for the start of namespace declarations
xml_set_unparsed_entity_decl_handler() Set handler function for unparsed entity declarations


Zip Functions

zip_close() Closes a ZIP file
zip_entry_close() Closes an entry in the ZIP file
zip_entry_compressedsize() Returns the compressed size of an entry in the ZIP file
zip_entry_compressionmethod() Returns the compression method of an entry in the ZIP file
zip_entry_filesize() Returns the actual file size of an entry in the ZIP file
zip_entry_name() Returns the name of an entry in the ZIP file
zip_entry_open() Opens an entry in the ZIP file for reading
zip_entry_read() Reads from an open entry in the ZIP file
zip_open() Opens a ZIP file
zip_read() Reads the next entry in a ZIP file