05.05.2013 Views

Programming PHP

Programming PHP

Programming PHP

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

get_current_user<br />

string get_current_user( )<br />

Returns the name of the user under whose privileges the current <strong>PHP</strong> script is executing.<br />

get_declared_classes<br />

array get_declared_classes( )<br />

Returns an array containing the name of each defined class. This includes any classes<br />

defined in extensions currently loaded in <strong>PHP</strong>.<br />

get_defined_constants<br />

array get_defined_constants( )<br />

Returns an associative array of all constants defined by extensions and the define( ) function<br />

and their values.<br />

get_defined_functions<br />

array get_defined_functions( )<br />

Returns an array containing the name of each defined function. The returned array is an<br />

associative array with two keys, internal and user. The value of the first key is an array<br />

containing the names of all internal <strong>PHP</strong> functions; the value of the second key is an array<br />

containing the names of all user-defined functions.<br />

get_defined_vars<br />

array get_defined_vars( )<br />

Returns an array of all defined environment, server, and user-defined variables.<br />

get_extension_funcs<br />

array get_extension_funcs(string name)<br />

Returns an array of functions provided by the extension specified by name.<br />

get_html_translation_table<br />

array get_html_translation_table([int which[, int style]])<br />

Returns the translation table used by either htmlspecialchars( ) or htmlentities( ). Ifwhich<br />

is HTML_ENTITIES, the table used by htmlentities( ) is returned; if which is HTML_SPECIALCHARS,<br />

406 | Appendix A: Function Reference<br />

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

Copyright © 2002 O’Reilly & Associates, Inc. All rights reserved.

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

Saved successfully!

Ooh no, something went wrong!