PHP Beginners Course: Understand basics of PHP / MySQL programming in 5 days

PHP Beginners Course: Understand basics of PHP / MySQL programming in 5 days

Author:Klaus Thenmayer
Language: eng
Format: mobi
Publisher: UNKNOWN
Published: 2016-12-26T23:00:00+00:00


It would have the same output again.

strtotime()

To forestall a function from the chapter of text functions from this book, I shall tell you the right strtotime("date in text format"). With this, you can convert one written text in human readable form of a certain time in the time() format for the date() function:

<?php

echo date("Y-m-d", strtotime("May 17th, 2012"));

?>

Some examples of such conversions are as follows:

strtotime("now")

strtotime("2012-05-17")

You can even do some simple calculations from the actual point in time:



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.