Tagphp strftime function

PHP strftime() function

P

What is the syntax of the strftime() function in PHP? strftime(format, timestamp) ParameterDescriptionformatRequired. Specifies how to return the result:timestampOptional. Specifies a Unix timestamp that represents the date and/or time to be formatted. Default is the current local time (time()) Examples of the strftime() function Example 1. In this example, <?php echo(strftime("%B %d %Y, %X...

PHP mktime() function

P

What is the syntax of the mktime() function in PHP? mktime(hour, minute, second, month, day, year, is_dst); ParameterDescriptionhourOptional. Specifies the hourminuteOptional. Specifies the minutesecondOptional. Specifies the secondmonthOptional. Specifies the monthdayOptional. Specifies the dayyearOptional. Specifies the yearis_dstOptional. Set this parameter to 1 if the time is during daylight...

PHP microtime() function

P

What is the syntax of the microtime() function in PHP? microtime(return_float); ParameterDescriptionreturn_floatOptional. When set to TRUE it specifies that the function should return a float, instead of a string. Default is FALSE Examples of the microtime() function Example 1. In this example, <?php // Prints: October 3, 1975 was on a Friday echo "Oct 3, 1975 was on a ".date("l"...

Tutor Network

Learn PHP from A to Z