learn php

PHP strftime() function

What is the syntax of the strftime() function in PHP? Parameter Description format Required. Specifies how to return the result: timestamp Optional. 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 mktime() function

What is the syntax of the mktime() function in PHP? Parameter Description hour Optional. Specifies the hour minute Optional. Specifies the minute second Optional. Specifies the second month Optional. Specifies the month day Optional. Specifies the day year Optional. Specifies the year is_dst Optional. Set this parameter to 1 if the time is during daylight …

PHP mktime() function Read More »

PHP microtime() function

What is the syntax of the microtime() function in PHP? Parameter Description return_float Optional. 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 gmstrftime() Function

What is the syntax of the gmstrftime() function in PHP? Parameter Description format Required. Specifies how to return the result: Optional. Specifies a Unix timestamp that represents the date and/or time to be formatted. Default is the current local time (time()) Examples of the gmstrftime() function Example 1. In this example,

PHP gmmktime() function

What is the syntax of the gmmktime() function in PHP? Parameter Description hour Optional. Specifies the hour minute Optional. Specifies the minute second Optional. Specifies the second month Optional. Specifies the month day Optional. Specifies the day year Optional. Specifies the year is_dst Optional. Parameters always represent a GMT date so is_dst doesn’t influence the …

PHP gmmktime() function Read More »

PHP gmdate() function

What is the syntax of the gmdate() function in PHP? Parameter Description timestamp Optional. Specifies an integer Unix timestamp. Default is the current local time (time()) format Required. Specifies the format of th Examples of the function Example 1. In this example,

PHP getdate() function

In this article, you will learn how to get information about a timestamp. The getdate() function returns the date/time information of a timestamp. The timestamp can be replaced with current local date/time to get its information. What is the syntax of the function in PHP? Parameter Description timestamp Optional. Specifies an integer Unix timestamp. Default …

PHP getdate() function Read More »

en English
X
Scroll to Top