PHP

PHP Menu

PHP

gmmktime() Function - Definition, Syntax, Parameters, Examples

Definition

The gmmktime() function gets Unix timestamp for a GMT date.

Syntax

gmmktime(hour, minute, second, month, day, year)

Parameters

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.

Example

<?php
echo "Christmas in 2000 was on a ".date("l", gmmktime(0, 0, 0, 12, 25, 2000));

Introduction

PHP Basics

PHP Advance

PHP OOP

PHP Functions and Methods