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.

ucwords<br />

string ucwords(string string)<br />

Returns string with the first character of each word, if alphabetic, converted to uppercase.<br />

The table used for converting characters is locale-specific.<br />

uksort<br />

void uksort(array array, string function)<br />

Sorts an array by keys using a user-defined function, maintaining the keys for the values.<br />

See Chapter 5 and usort for more information on using this function.<br />

umask<br />

int umask([int mask])<br />

Sets <strong>PHP</strong>’s default permissions to mask and returns the previous mask if successful, or false<br />

if an error occurred. The previous default permissions are restored at the end of the current<br />

script. If mask is not supplied, the current permissions are returned.<br />

uniqid<br />

string uniqid(string prefix[, bool more_entropy])<br />

Returns a unique identifier, prefixed with prefix, based on the current time in microseconds.<br />

If more_entropy is specified and is true, additional random characters are added to<br />

the end of the string. The resulting string is either 13 characters (if more_entropy is unspecified<br />

or false) or 23 characters (if more_entropy is true) long.<br />

unlink<br />

int unlink(string path)<br />

Deletes the file path. Returns true if the operation was successful and false if not.<br />

unpack<br />

array unpack(string format, string data)<br />

Returns an array of values retrieved from the binary string data, which was previously<br />

packed using the pack( ) function and the format format.<br />

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

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

unpack | 453

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

Saved successfully!

Ooh no, something went wrong!