Microsoft Word - Core PHP Programming Using PHP to Build Dynamic Web Sites
<? print(getrandmax()); ?> integer mt_getrandmax() The mt_getrandmax function returns the maximum random number that may b ...
integer rand(integer lowest, integer highest) The rand function returns a number between the two optional arguments, inclusive. ...
} ?> string uniqid(string prefix, boolean use_lcg) The uniqid function joins the prefix argument to a random series of number ...
integer bccomp(string left, string right, integer scale) The bccomp function compares left to right. If they are equal, zero is ...
<? print(bcpow("66394593", "3", 10)); ?> string bcsqrt(string value, integer scale) The bcsqrt function returns the square ...
Chapter 11. TIME, DATE, AND CONFIGURATION FUNCTIONS Time and Date............................................................... ...
The timestamp argument is optional. If left out, the current time will be used. The timestamp is interpreted as being in local t ...
array gettimeofday() ...
The gettimeofday function returns an associative array containing information about the current time. This is a direct interface ...
G Hour from 0 to 23 (no leading zeroes) i Minutes j Day of the month with no leading zeroes l Day of the week L 1 if leap year, ...
The gmdate function operates identically to the date function except that, rather than return the time for the local time zone, ...
%w Day of the week as a number with Sunday being zero %x Preferred date representation %X Preferred time representation %y Two-d ...
The strftime function returns a date in a particular format. If the optional timestamp argument is left out, the current time wi ...
PHP offers a powerful way to convert dates from one calendar system to another. In order to do this, you must first convert a da ...
?> value jddayofweek(integer julian_day, integer mode) The jddayofweek function returns either an integer or a string, depend ...
print(jdtofrench($jdc)); ?> Table 11.6. Month-Name Modes Mode Description 0 Gregorian, abbreviated 1 Gregorian, full 2 Julian ...
integer jewishtojd(integer month, integer day, integer year) The jewishtojd function returns a Julian Day Count for the given Je ...
The functions that use the stat cache are: stat, file_exists, fileatime, filectime, fileinode, filegroup, fileowner, fileperms, ...
Table 11.7. Error Levels Value Name Description 1 Errors Unrecoverable errors that cause execution of the script to halt. 2 Warn ...
print("End of fake process.\n"); //write message to log $statusMessage = date("Y-m-d H:i:s"). " Fake process $name completed\n"; ...
«
11
12
13
14
15
16
17
18
19
20
»
Free download pdf