public function retrieveDay($day, $month = null) {
		$day = (int)$day;
		if ($day < 1 || $day > 31) {
			return 0;
		}

		// TODO check on month days!

		return $day;
	}
public function retrieveDay($day, $month = null) {
		$day = (int)$day;
		if ($day < 1 || $day > 31) {
			return 0;
		}

		// TODO check on month days!

		return $day;
	}
public function retrieveDay ( $ day , $ month = null ) { $ day = ( int ) $ day ; if ( $ day < 1 || $ day > 31 ) { return 0 ; } // TODO check on month days! return $ day ; }
Day as integer value 1..31 or 0 on error
february => 2

@param string $day
@param int|null $month
@return int
Day as integer value 1 .. 31 or 0 on error february = > 2