Search
 
SCRIPT & CODE EXAMPLE
 

PHP

date subtraction php

<?php
// current time in PHP
$datetime = date("Y-m-d ");
// print current time
echo $datetime;
echo "
";
//After using of strotime fuction then result 
$yesterday = date("Y-m-d", strtotime("yesterday"));
echo $yesterday;
?>
Comment

PREVIOUS NEXT
Code Example
Php :: string concatenation in php 
Php :: login form tutorialpoint 
Php :: Print array to a file 
Php :: if else in php 
Php :: ignore user id on email validation laravel 
Php :: laravel collection union 
Php :: check the existing image in s3 laravel 
Php :: chunk_split (PHP 4, PHP 5, PHP 7, PHP 8) chunk_split — Split a string into smaller chunks 
Php :: PHP OOP - Inheritance 
Php :: laravel api error return homepage 
Php :: crud operations in php 
Php :: which is file attributes in php 
Php :: Publish Spatie Laravel Permission 
Php :: laravel eloquent with 
Php :: What was the old name of PHP? 
Php :: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated Filename: core/Output.php 
Php :: laravel call a static function 
Php :: parameter to laravel seeder 
Php :: what is isset in php 
Php :: how to declare variable in php 
Php :: laravel relationship 
Php :: laravel redirect problem 
Php :: send email php smtp 
Php :: router php 
Php :: double in php 
Php :: laravel imap - Set message flags 
Php :: symfony functional test clear session and cookies 
Php :: facetwp listing template archive 
Php :: cookie or session authentication instead of HTTP Basic authentication makes it much easier for users to log out 
Php :: through error on warning php 
ADD CONTENT
Topic
Content
Source link
Name
9+4 =