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.

get_parent_class<br />

string get_parent_class(mixed object)<br />

Returns the name of the parent class for the given object. If the object does not inherit from<br />

another class, returns an empty string.<br />

get_required_files<br />

array get_required_files( )<br />

This function is an alias for get_included_files( ).<br />

get_resource_type<br />

string get_resource_type(resource handle)<br />

Returns a string representing the type of the specified resource handle. Ifhandle is not a<br />

valid resource, the function generates an error and returns false. The kinds of resources<br />

available are dependent on the extensions loaded, but include “file”, “mysql link”, and so<br />

on.<br />

getcwd<br />

string getcwd( )<br />

Returns the path of the <strong>PHP</strong> process’s current working directory.<br />

getdate<br />

array getdate([int timestamp])<br />

Returns an associative array containing values for various components for the given<br />

timestamp time and date. If no timestamp is given, the current date and time is used. The<br />

array contains the following keys and values:<br />

seconds Seconds<br />

minutes Minutes<br />

hours Hours<br />

mday Day of the month<br />

wday Numeric day of the week (Sunday is “0”)<br />

mon Month<br />

year Year<br />

yday Day of the year<br />

weekday Name of the day of the week (“Sunday” through “Saturday”)<br />

month Name of the month (“January” through “December”)<br />

408 | 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!