I have a function which defines what day of the week the month starts on for the current month:
public function firstDayOfMonth()
{
$day = (int) date("w", strtotime(date('m').'/01/'.date('Y').' 00:00:00'));
return $day;
}
How would I alter the above, in a way that allows me to get the day of the week the month starts on if I give it input, for example 'June'.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…