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.

closedir<br />

void closedir([int handle])<br />

Closes the directory stream referenced by handle. See opendir for more information on<br />

directory streams. If handle is not specified, the most recently opened directory stream is<br />

closed.<br />

closelog<br />

int closelog( )<br />

Closes the file descriptor used to write to the system logger after an openlog( ) call; returns<br />

true.<br />

compact<br />

array compact(mixed variable1[, ... mixed variableN])<br />

Creates an array by retrieving the values of the variables named in the parameters. If any of<br />

the parameters are arrays, the values of variables named in the arrays are also retrieved. The<br />

array returned is an associative array, with the keys being the arguments provided to the<br />

function and the values being the values of the named variables. This function is the opposite<br />

of extract( ).<br />

convert_cyr_string<br />

string convert_cyr_string(string value, string from, string to)<br />

Converts value from one Cyrillic set to another. The from and to parameters are singlecharacter<br />

strings representing the set and have the following valid values:<br />

copy<br />

k koi8-r<br />

w Windows-1251<br />

i ISO 8859-5<br />

a or d x-cp866<br />

m x-mac-cyrillic<br />

int copy(string path, string destination)<br />

Copies the file at path to destination. If the operation succeeds, the function returns true;<br />

otherwise, it returns false.<br />

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

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

copy | 389

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

Saved successfully!

Ooh no, something went wrong!