PHP 文字列をタイムスタンプに変換 strtotime(2018/09/09)
目次
・
文字列をタイムスタンプに変換 strtotime(2018/09/09)
$timestamp = strtotime(2018/09/09);
print $timestamp;
>
1536444000
これでも大丈夫。
$timestamp = strtotime(2018-09-09);
print $timestamp;
>
1536444000
この記事いいね
87
書き込み
info@aray.jp