Thanks for visiting my GitHub account!
Hypertext Preprocessor (PHP) is a general-purpose scripting language geared towards web development. It was created by Danish-Canadian programmer Rasmus Lerdorf in 1993 and released in 1995. The PHP reference implementation is now produced by the PHP Group. PHP was originally an abbreviation of Personal Home Page, but it now stands for the recursive initialism PHP: Hypertext Preprocessor.
- Visit-> https://www.w3schools.com/php/php_intro.asp
- Visit -> https://www.tutorialspoint.com/php/index.htm
<?php
// Code tobe excuted
echo "Rahatul Rabbi";
?>
ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
error_reporting(E_ALL);
<?php
$date1 = date( 'Y-m-d', strtotime( "yesterday" ) );
$date2 = date( 'Y-m-d', strtotime( "-2 days" ) );
$date3 = date( 'Y-m-d', strtotime( "-3 days" ) );
$date4 = date( 'Y-m-d', strtotime( "-4 days" ) );
$date5 = date( 'Y-m-d', strtotime( "-5 days" ) );
$date6 = date( 'Y-m-d', strtotime( "-6 days" ) );
echo $date1."</br>";
echo $date2."</br>";
echo $date3."</br>";
echo $date4."</br>";
echo $date5."</br>";
echo $date6."</br>";
?>
<?php
$from_date = date( 'Y-m-d', strtotime( "-30 days" ) );
$to_date = date( 'Y-m-d', strtotime( "-6 days" ) );
echo $from_date.'</br>';
echo $to_date;
?>