Search
 
SCRIPT & CODE EXAMPLE
 

PHP

php current time

echo date('Y-m-d H:i:s');

//Output something like this:
//2021-07-30 10:07:45
Comment

php current time

# Current Time
date_default_timezone_set("America/New_York");
echo "The time is " . date("h:i:sa");
Comment

php get current time and date

date("Y-n-j G:i:s");
//-->2020-10-29 23:27:15
Comment

get current time in php

  $time = time();  
Comment

php current time


<?php
$nextWeek = time() + (7 * 24 * 60 * 60);
                   // 7 Tage; 24 Stunden; 60 Minuten; 60 Sekunden
echo 'Jetzt:          '. date('Y-m-d') ."
";
echo 'Naechste Woche: '. date('Y-m-d', $nextWeek) ."
";
// oder strtotime() verwenden:
echo 'Naechste Woche: '. date('Y-m-d', strtotime('+1 week')) ."
";
?>

Comment

PREVIOUS NEXT
Code Example
Php :: laravel passport vue 401 Unauthorized 
Php :: array search multidimensional php 
Php :: how to make custom logiger in laravel 
Php :: make exception laravel 
Php :: get value from url in laravel blade 
Php :: SoapClient Laravel 8 
Php :: php check if all values in array are equal 
Php :: set posts_per_page 
Php :: same column in and where laravel query 
Php :: how get data if has relation in laravel 
Php :: get last element of array php 
Php :: laravel enable mysql logging 
Php :: autoload file in laravel 
Php :: wordpress get product category name by termid 
Php :: composer install laravel 
Php :: a php session was created by a session_start() 
Php :: codeigniter base_url 
Php :: show one value after point php 
Php :: get data from 2 table in response laravel 
Php :: laravel local scope 
Php :: laravel middleware in constructor 
Php :: how to delete item from array php 
Php :: woocommerce get the price from session after add to cart 
Php :: php array access by key 
Php :: laravel blade @auth 
Php :: laravel one session per user 
Php :: drop table phpmyadmin 
Php :: symfony messenger route 
Php :: laravel store file 
Php :: how to use include in php 
ADD CONTENT
Topic
Content
Source link
Name
9+8 =