05.05.2013 Views

Programming PHP

Programming PHP

Programming PHP

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Appendix A APPENDIX A<br />

Function Reference<br />

This appendix describes the functions available in the standard <strong>PHP</strong> extensions.<br />

These are the extensions that <strong>PHP</strong> is built with if you give no --with or --enable<br />

options to configure. For each function, we’ve provided the function signature, showing<br />

the data types of the various arguments and which are mandatory or optional, as<br />

well as a brief description of the side effects, errors, and returned data structures.<br />

<strong>PHP</strong> Functions by Category<br />

This is a list of functions provided by <strong>PHP</strong>’s built-in extensions, grouped by category.<br />

Some functions fall under more than one header.<br />

Arrays<br />

array, array_count_values, array_diff, array_filter, array_flip, array_<br />

intersect, array_keys, array_map, array_merge, array_merge_recursive, array_<br />

multisort, array_pad, array_pop, array_push, array_rand, array_reduce, array_<br />

reverse, array_search, array_shift, array_slice, array_splice, array_sum,<br />

array_unique, array_unshift, array_values, array_walk, arsort, asort, compact,<br />

count, current, each, end, explode, extract, implode, in_array, key, key_exists,<br />

krsort, ksort, list, natcasesort, natsort, next, pos, prev, range, reset, rsort,<br />

shuffle, sizeof, sort, uasort, uksort, usort<br />

Classes and objects<br />

call_user_method, call_user_method_array, class_exists, get_class, get_class_<br />

methods, get_class_vars, get_declared_classes, get_object_vars, get_parent_<br />

class, is_subclass_of, method_exists<br />

Date and time<br />

checkdate, date, getdate, gettimeofday, gmdate, gmmktime, gmstrftime, localtime,<br />

microtime, mktime, strftime, strtotime, time<br />

Errors and logging<br />

assert, assert_options, closelog, crc32, define_syslog_variables, error_log,<br />

error_reporting, openlog, restore_error_handler, set_error_handler, syslog,<br />

trigger_error, user_error<br />

This is the Title of the Book, eMatter Edition<br />

Copyright © 2002 O’Reilly & Associates, Inc. All rights reserved.<br />

375

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!