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 collection keys 
Php :: foreign key laravel migration 
Php :: convert all text in php to uppercase 
Php :: laravel auth login with phone or email 
Php :: php filter array contain valu 
Php :: convert timestamp to date php 
Php :: compare two arrays and return the difference php 
Php :: create function php 
Php :: validation error laravel 8 with custom massage 
Php :: warning illegal string offset 
Php :: php catch all exceptions 
Php :: what is the hashmap like in php 
Php :: php call class dynamically 
Php :: laravel carbon isoformat 
Php :: convert laravel hash password online 
Php :: get first name user 
Php :: twig for loop key 
Php :: join in laravel 
Php :: php foreach index 
Php :: web api return json example in php 
Php :: print variable php 
Php :: is dir php 
Php :: laravel rename table 
Php :: Woocommerce - Adding a Custom Endpoint 
Php :: WooCommerce cart API php 
Php :: how to join two tables in laravel 
Php :: wordpress custom php use wp query 
Php :: filename php 
Php :: laravel query with trashed 
Php :: mysqli fetch row assoc 
ADD CONTENT
Topic
Content
Source link
Name
1+9 =