0
私はphpで関数を構築しようとしています。ユーザー入力の日付は、過去20年のうちのどの日付でもかまいません。私はPHPのgetdate()関数を使って週の曜日に戻そうとしました。 ここは私が働いていないものです。php getdate()関数で曜日を検索する
$date="8/4/2010";//user input
$dateget=getdate($date);
echo $dateget; // i want an output like "monday" or "saturday"
私はこのコードを実行すると、私はあなたがgetdate functionのタイムスタンプを必要とし、このエラーに
A non well formed numeric value encountered (on the $dateget=getdate($date) line)
おかげ
私はそれがうまくいくので、それから働くことができました。ありがとう! – chris