Skip to content

Tikam Shah

As Developer

  • Home
  • PHP MYSQL
    • Variables & Superglobals
    • Functions
    • Loops in php
    • Arrays
    • Php Strings
    • Php Date & time
    • Php Mail
    • Errors & Configurations
    • Regular Expressions
    • Session & Cookies
    • htaccess
    • Php Mysql
  • Mysql
  • Linux
    • Apache
  • OOPS PHP

Category: Php Date & time

How to Calculate Date and Time Difference using date_diff in PHP ?

August 29, 2018February 2, 2020Tikam ShahLeave a Comment on How to Calculate Date and Time Difference using date_diff in PHP ?

There are several ways to calculate the date and time in PHP. So lets discuss each in detail . Lets talk about Calculating the Date and Time Difference using date_diff…

Read More

Mktime function in php ?

August 27, 2018February 2, 2020Tikam ShahLeave a Comment on Mktime function in php ?

The mktime function returns the timestamp in a Unix format.  Syntax. <?php      mktime(hour, minute, second, month, day, year, is_dst);  ?> HERE, mktime(…) :  is the make php timestamp…

Read More

What is the use of mktime() function ?

July 14, 2018February 2, 2020Tikam ShahLeave a Comment on What is the use of mktime() function ?

The mktime() function is used to find the future particular date after specifying the time peroid. Example : <?php // Return future date $futureDate = mktime(0,0,0,date(“m”)+30,date(“d”),date(“Y”)); echo date(“d/m/Y”, $futureDate); ?>…

Read More

The PHP time() Function

July 14, 2018February 2, 2020Tikam ShahLeave a Comment on The PHP time() Function

The time( ) helps you to get the current time as  Unix timestamp. Example : <?php /* Returning the current date and time */ $timestamp = time(); echo($timestamp); ?> Output…

Read More

What is Date function in PHP ?

June 12, 2018April 26, 2019Tikam ShahLeave a Comment on What is Date function in PHP ?

The PHP Date function is the PHP built-in function which works with the date data types .The Date function is use to optimize the dates in proper and human readable…

Read More




Recent Updates

  • How to copy the files to the remote server using SSH
  • How to export and Import mysql database using command line.
  • Docker Basic Commands
  • Secure Apache with Let’s Encrypt on Ubuntu 18.04
  • Git Commands
  • Steps to Enable Apache Mod_Rewrite (.htaccess) on Ubuntu VPS or Dedicated Server
  • How To Install the Apache Web Server on Ubuntu 18.04
  • How to Create Virtual Hosts in Linux Apache ?
  • How to Calculate Date and Time Difference using date_diff in PHP ?
  • Mktime function in php ?
Copyright @: Tikam Shah by Tikam Shah.