{"id":8520,"date":"2024-06-02T19:23:20","date_gmt":"2024-06-02T11:23:20","guid":{"rendered":"https:\/\/0592ban.cn\/?p=8520"},"modified":"2024-06-02T19:23:20","modified_gmt":"2024-06-02T11:23:20","slug":"%e5%86%9c%e5%8e%861983%e5%b9%b412%e6%9c%8821%e6%97%a5%e4%ba%a5%e6%97%b6%e5%87%ba%e7%94%9f%e7%9a%84%e4%ba%ba%e6%98%af%e4%bb%80%e4%b9%88%e5%91%bd-%e5%86%9c%e5%8e%861983%e5%b9%b411%e6%9c%8815%e6%97%a5","status":"publish","type":"post","link":"https:\/\/0592ban.cn\/index.php\/2024\/06\/02\/%e5%86%9c%e5%8e%861983%e5%b9%b412%e6%9c%8821%e6%97%a5%e4%ba%a5%e6%97%b6%e5%87%ba%e7%94%9f%e7%9a%84%e4%ba%ba%e6%98%af%e4%bb%80%e4%b9%88%e5%91%bd-%e5%86%9c%e5%8e%861983%e5%b9%b411%e6%9c%8815%e6%97%a5\/","title":{"rendered":"\u519c\u53861983\u5e7412\u670821\u65e5\u4ea5\u65f6\u51fa\u751f\u7684\u4eba\u662f\u4ec0\u4e48\u547d (\u519c\u53861983\u5e7411\u670815\u65e5\u662f\u4ec0\u4e48\u661f\u5ea7)"},"content":{"rendered":"<p><img decoding=\"async\" alt=\"\u519c\u53861983\u5e7412\u670821\u65e5\u4ea5\u65f6\u51fa\u751f\u7684\u4eba\u662f\u4ec0\u4e48\u547d\" loading=\"lazy\" src=\"https:\/\/0592ban.cn\/wp-content\/uploads\/2024\/06\/1c8b2ddb-ac25-4b95-93a7-ee4a644303ce.jpg\"\/><\/p>\n<div class=\"container\">\n<form action=\"index.html\" method=\"post\">\n  <label for=\"date_of_birth\"><br \/>\n   \u51fa\u751f\u65e5\u671f\uff08\u516c\u5386\uff09\uff1a<br \/>\n  <\/label><br \/>\n  <input id=\"date_of_birth\" name=\"date_of_birth\" type=\"date\"\/><br \/>\n  <input type=\"submit\" value=\"\u63d0\u4ea4\"\/><br \/>\n <\/form>\n<p>\n <!--?php\n  if (isset($_POST['date_of_birth'])) {\n    $date_of_birth = $_POST['date_of_birth'];\n\n    \/\/ \u516c\u5386\u8f6c\u519c\u5386\n    $lunar = new Lunar();\n    $lunar_date = $lunar---><br \/>\n solarToLunar($date_of_birth);<\/p>\n<p>    \/\/ \u516b\u5b57\u8ba1\u7b97<br \/>\n    $eight_characters = new EightCharacters($date_of_birth);<\/p>\n<p>    \/\/ \u559c\u7528\u795e\u8ba1\u7b97<br \/>\n    $favorable_elements = $eight_characters-&gt;calculateFavorableElements();<br \/>\n  }<br \/>\n  ?&gt;<br \/>\n <!--?php if (isset($lunar_date) && isset($eight_characters)): ?--><\/p>\n<h2>\n  \u516b\u5b57\u6392\u76d8<br \/>\n <\/h2>\n<table>\n<tbody>\n<tr>\n<th>\n     \u5e74\u4efd\n    <\/th>\n<th>\n     \u6708\u4efd\n    <\/th>\n<th>\n     \u65e5\u671f\n    <\/th>\n<th>\n     \u65f6\u8fb0\n    <\/th>\n<\/tr>\n<tr>\n<td>\n     <!--?php echo $eight_characters---><br \/>\n     getYear(); ?&gt;\n    <\/td>\n<td>\n     <!--?php echo $eight_characters---><br \/>\n     getMonth(); ?&gt;\n    <\/td>\n<td>\n     <!--?php echo $eight_characters---><br \/>\n     getDay(); ?&gt;\n    <\/td>\n<td>\n     <!--?php echo $eight_characters---><br \/>\n     getHour(); ?&gt;\n    <\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><\/p>\n<h2>\n  \u4e94\u884c\u5206\u6790<br \/>\n <\/h2>\n<p> countElements();<br \/>\n    foreach ($elements as $element =&gt; $count) {<br \/>\n      echo &#8220;&#8221;;<br \/>\n    }<br \/>\n003e<\/p>\n<table border=\"1\">\n<tbody>\n<tr>\n<th>\n     \u4e94\u884c\n    <\/th>\n<th>\n     \u4e2a\u6570\n    <\/th>\n<\/tr>\n<p>   <!--?php\n    $elements = $eight_characters---><\/p>\n<tr>\n<td>\n     $element\n    <\/td>\n<td>\n     $count\n    <\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u51fa\u751f\u65e5\u671f\uff0c\u516c\u5386\uff0csolarToLunar\uff0c$date\uff0cof\uff0cbirth\uff0c\u516b\u5b57\u8ba1\u7b97$eight\uff0ccharacters=newEightCharacters\uff0c$date\uff0cof\uff0cbirth\uff0c\u559c\u7528\u795e\u8ba1\u7b97$favorable\uff0celements=$eight\uff0ccharacters\uff0c&#038;gt\uff0ccalculateFavorableElem&#8230;\u3002<\/p>\n","protected":false},"author":1,"featured_media":8519,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[641],"class_list":["post-8520","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-12shengxiao","tag-641"],"_links":{"self":[{"href":"https:\/\/0592ban.cn\/index.php\/wp-json\/wp\/v2\/posts\/8520","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/0592ban.cn\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/0592ban.cn\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/0592ban.cn\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/0592ban.cn\/index.php\/wp-json\/wp\/v2\/comments?post=8520"}],"version-history":[{"count":1,"href":"https:\/\/0592ban.cn\/index.php\/wp-json\/wp\/v2\/posts\/8520\/revisions"}],"predecessor-version":[{"id":8521,"href":"https:\/\/0592ban.cn\/index.php\/wp-json\/wp\/v2\/posts\/8520\/revisions\/8521"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/0592ban.cn\/index.php\/wp-json\/wp\/v2\/media\/8519"}],"wp:attachment":[{"href":"https:\/\/0592ban.cn\/index.php\/wp-json\/wp\/v2\/media?parent=8520"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/0592ban.cn\/index.php\/wp-json\/wp\/v2\/categories?post=8520"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/0592ban.cn\/index.php\/wp-json\/wp\/v2\/tags?post=8520"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}