day number in php code example Example: get day from date php // Prints the day echo date("l") . "<br>";