Fortune Telling Collection - Horoscope - 200 wealth value, how to use php to check the date, month, day and branch code
200 wealth value, how to use php to check the date, month, day and branch code
The underground branch means that the child is ugly and did not apply in the afternoon. The combination of trunk and branch is often used to record the year.
Php obtains the branch code corresponding to the specified date as follows:
& lt? Server-side programming language (abbreviation of professional hypertext preprocessor)
header(" Content-type:text/html; charset = utf-8;" );
Function? get_ganzhi($date){
$ date = strtotime($ date);
Dollars a year? =? Date ('y',? $ date);
$ month? =? Date ('m',? $ date);
$ day? =? Date ('d',? $ date);
$data? =? Array (
Array ('a',? Self? G' Xin? Ren,? Decyl'),
Array ('child',? Is it ugly? Yin' Mao'? Chen's' third child'? At noon? Isn't it? Shen'? Single? Hmm? Sea')
);
$num? =? Dollars a year? -? 1900? +? 36;
Return? $ Results? =? $data[0][$num? %? 10]? . ? $data[ 1][$num? %? 12]. "Year";
}
Echo? get _ Ganzhi(" 2065 438+06-07-08 ");
//Bin Shen Nian
- Previous article:Sagittarius suitable constellation _ Sagittarius suitable constellation pairing
- Next article:Who is Hua Xiaobo on the Internet?
- Related articles
- Personality characteristics of Capricorn girls
- What constellation is the strongest self-healing constellation?
- When you were alive, you must have friends of these constellations.
- Don't compare yourself too much What constellation is stronger in love?
- What is the psychological function of constellations?
- Autumn constellation wallpaper
- What gift does the 520 Zodiac want?
- What will happen when the four kings of the twelve constellations are together?
- What is the constellation male on March 3 1, and what is the fortune of the person born on March 3 1?
- What constellation girls do humans like _ What constellation girls do humans like?