Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
変数があります$date='15-06-2013'。では、曜日の数を取得するにはどうすればよいでしょうか。15-06-2013 は aであるため、フォーマット文字を使用する場合Saturday、関数は数値として返されるはずです6N
$date='15-06-2013'
Saturday
6
N
このコードを使用
echo $day_of_week = date('N', strtotime('15-06-2013'));