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.

positive_sign Sign for positive values<br />

negative_sign Sign for negative values<br />

int_frac_digits International fractional digits<br />

frac_digits Local fractional digits<br />

p_cs_precedes true if the local currency symbol precedes a positive value;<br />

false if it follows the value<br />

p_sep_by_space true if a space separates the local currency symbol from a<br />

positive value<br />

p_sign_posn 0 if parentheses surround the value and currency symbol for<br />

positive values, 1 if the sign precedes the currency symbol and<br />

value, 2 if the sign follows the currency symbol and value, 3 if<br />

the sign precedes the currency symbol, and 4 if the sign<br />

follows the currency symbol<br />

n_cs_precedes true if the local currency symbol precedes a negative value;<br />

false if it follows the value<br />

n_sep_by_space true if a space separates the local currency symbol from a<br />

negative value<br />

n_sign_posn 0 if parentheses surround the value and currency symbol for<br />

negative values, 1 if the sign precedes the currency symbol<br />

and value, 2 if the sign follows the currency symbol and value,<br />

3 if the sign precedes the currency symbol, and 4 if the sign<br />

follows the currency symbol<br />

localtime<br />

array localtime([int timestamp[, bool associative])<br />

Returns an array of values as given by the C function of the same name. The first argument<br />

is the timestamp; if the second argument is provided and is true, the values are returned as<br />

an associative array. If the second argument is not provided or is false, a numeric array is<br />

returned. The keys and values returned are:<br />

tm_sec Seconds<br />

tm_min Minutes<br />

tm_hour Hour<br />

tm_mday Day of the month<br />

tm_mon Month of the year<br />

tm_year Number of years since 1900<br />

tm_wday Day of the week<br />

tm_yday Day of the year<br />

tm_isdst 1 if Daylight Savings Time was in effect at the date and time<br />

If a numeric array is returned, the values are in the order given above.<br />

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

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

localtime | 421

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

Saved successfully!

Ooh no, something went wrong!