LoginSignup
2
0

More than 5 years have passed since last update.

PHPで「今日の日付や現在時刻」を使いたい

Posted at

本日の日付

$today = date('Y-m-d');
echo $today;

現在時刻

$current_time = date('H:i:s');
echo $current_time;

沢山使うなら汎用性のあるファイルに書いて使いまわすべきですね。

2
0
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
0