In this line $d = date(”M”) specifies a variable that defines the month.
If ($d == “May”) expression specifies that the current month is May. If the condition is true, PHP will execute statement” Wikitechy Says This month is May!”. If not then the else statement specifies condition as false, which execute the else statement “Wikitechy Says This month is not May”.
php coding Sample Output :
PHP statement executes the if condition by printing the echo statement “Wikitechy says this month is May!”. If the condition is false it goes to the else condition and prints the echo statements as shown below :
PHP statement executes else statement by printing the echo statement “Wikitechy says this month is not May”.