strtotime
mm/dd/yy のタイムスタンプを返す代わりに、空の文字列を出力しているようです。これがうまくいかないことを理解するのに苦労していますか?
次の PHP の出力は次のとおりです。
echo "'" . $month . "/" . $day . "/" . $year . "'";
// '86/7/22'
strtotime('7/22/86')
関数の有効な入力ではありませんか?
PHP
$month = 7;
$day = 22;
$year = 86;
$unix_time_stamp = strtotime("'" . $month . "/" . $day . "/" . $year . "'");
echo $unix_time_stamp;
この点についてアドバイスをいただければ幸いです。
よろしくお願いします!