In the process of developing the project, the website requires the input of some dates, such as the current year, month and day. Here are some arrays I have compiled for you that are used daily to obtain date and time.
Get the year from the beginning to the present
In the process of developing the project, the website requires the input of some dates, such as the year, month and day to date. Here are some daily uses that I have compiled for you. Array of datetimes.
Get the year from the beginning to the present
function yearArray(){ $tody = getdate(); $todyYear = $tody['year']; $startYear = 1900-1; $i = 1; for($startYear; $startYear < $todyYear; $startYear++){ $yearArr[$i] = $startYear+1; $i++; } return $yearArr; }
Get the array of 12 months
function monthArray(){ $monthArr = array(1,2,3,4,5,6,7,8,9,10,11,12); return $monthArr; }
Get all the days of a month Array
function dayArray(){ $dayArr = array(1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31); return $dayArr; }
Get the array from Monday to Sunday
function weekArr(){ return array('1'=>'星期一','2'=>'星期二','3'=>'星期三','4'=>'星期四','5'=>'星期五','6'=>'星期六','7'=>'星期日');

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

mPDF
mPDF is a PHP library that can generate PDF files from UTF-8 encoded HTML. The original author, Ian Back, wrote mPDF to output PDF files "on the fly" from his website and handle different languages. It is slower than original scripts like HTML2FPDF and produces larger files when using Unicode fonts, but supports CSS styles etc. and has a lot of enhancements. Supports almost all languages, including RTL (Arabic and Hebrew) and CJK (Chinese, Japanese and Korean). Supports nested block-level elements (such as P, DIV),

SublimeText3 Linux new version
SublimeText3 Linux latest version

Dreamweaver Mac version
Visual web development tools

MantisBT
Mantis is an easy-to-deploy web-based defect tracking tool designed to aid in product defect tracking. It requires PHP, MySQL and a web server. Check out our demo and hosting services.

Notepad++7.3.1
Easy-to-use and free code editor
