サイトにスケジュール等を日付別に表示する際、日付の横に(日)の様に曜日名を表示する際の記述例です。
$youbi = array("日", "月", "火", "水", "木", "金", "土");
echo "(".$youbi[date('w', strtotime($row['<database fieldname>']))].")";
参考になればと思います。
Go to list of users who liked
サイトにスケジュール等を日付別に表示する際、日付の横に(日)の様に曜日名を表示する際の記述例です。
$youbi = array("日", "月", "火", "水", "木", "金", "土");
echo "(".$youbi[date('w', strtotime($row['<database fieldname>']))].")";
参考になればと思います。
Register as a new user and use Qiita more conveniently
Go to list of users who liked