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.

ftell<br />

int ftell(int handle)<br />

Returns the byte offset to which the file referenced by handle is set. If an error occurs,<br />

returns false.<br />

ftruncate<br />

int ftruncate(int handle, int length)<br />

Truncates the file referenced by handle to length bytes. Returns true if the operation is<br />

successful and false if not.<br />

func_get_arg<br />

mixed func_get_arg(int index)<br />

Returns the index element in the function argument array. If called outside a function, or if<br />

index is greater than the number of arguments in the argument array, func_get_arg( )<br />

generates a warning and returns false.<br />

func_get_args<br />

array func_get_args( )<br />

Returns the array of arguments given to the function as an indexed array. If called outside a<br />

function, func_get_args( ) returns false and generates a warning.<br />

func_num_args<br />

int func_num_args( )<br />

Returns the number of arguments passed to the current user-defined function. If called<br />

outside a function, func_num_args( ) returns false and generates a warning.<br />

function_exists<br />

bool function_exists(string function)<br />

Returns true if a function with function has been defined, and false otherwise. The<br />

comparison to check for a matching function is case-insensitive.<br />

fwrite<br />

int fwrite(int handle, string string[, int length])<br />

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