{"id":28850,"date":"2024-08-31T23:30:12","date_gmt":"2024-08-31T15:30:12","guid":{"rendered":"https:\/\/0592ban.cn\/?p=28850"},"modified":"2024-08-31T23:30:12","modified_gmt":"2024-08-31T15:30:12","slug":"%e5%91%bd%e8%bf%90%e5%a6%82%e4%bd%95-%e5%86%9c%e5%8e%861987%e5%b9%b48%e6%9c%8819%e6%97%a5%e5%87%ba%e7%94%9f%e7%9a%84%e4%ba%ba%e6%98%af%e4%bb%80%e4%b9%88%e6%98%9f%e5%ba%a7-%e5%91%bd%e8%bf%90%e6%98%af","status":"publish","type":"post","link":"https:\/\/0592ban.cn\/index.php\/2024\/08\/31\/%e5%91%bd%e8%bf%90%e5%a6%82%e4%bd%95-%e5%86%9c%e5%8e%861987%e5%b9%b48%e6%9c%8819%e6%97%a5%e5%87%ba%e7%94%9f%e7%9a%84%e4%ba%ba%e6%98%af%e4%bb%80%e4%b9%88%e6%98%9f%e5%ba%a7-%e5%91%bd%e8%bf%90%e6%98%af\/","title":{"rendered":"\u547d\u8fd0\u5982\u4f55 \u519c\u53861987\u5e748\u670819\u65e5\u51fa\u751f\u7684\u4eba\u662f\u4ec0\u4e48\u661f\u5ea7 (\u547d\u8fd0\u662f\u519c\u5386\u591a\u5c11)"},"content":{"rendered":"<p><img decoding=\"async\" alt=\"\u519c\u53861987\u5e748\u670819\u65e5\u51fa\u751f\u7684\u4eba\u662f\u4ec0\u4e48\u661f\u5ea7\" loading=\"lazy\" src=\"https:\/\/0592ban.cn\/wp-content\/uploads\/2024\/08\/433f5567-9161-42c2-a1d3-d33496ad2c3f.jpeg\"\/><\/p>\n<p>\n \u6839\u636e\u9633\u5386\u751f\u65e5\u67e5\u8be2\u661f\u5ea7\n<\/p>\n<form>\n <label for=\"birthdate\"><br \/>\n  \u51fa\u751f\u65e5\u671f\uff08\u9633\u5386\uff09\uff1a<br \/>\n <\/label><br \/>\n <input id=\"birthdate\" name=\"birthdate\" type=\"date\"\/><br \/>\n <input type=\"submit\" value=\"\u67e5\u8be2\"\/><br \/>\n<\/form>\n<hr\/>\n<p><!--?php\nif (isset($_GET['birthdate'])) {\n    $birthdate = $_GET['birthdate'];\n    $zodiacSign = getZodiacSign($birthdate);\n\n    echo \"<h2-->\n\u4f60\u7684\u661f\u5ea7\uff1a$zodiacSign&#8221;;<\/p>\n<p>    $zodiacSignData = getZodiacSignData($zodiacSign);<\/p>\n<p>    echo &#8221;<\/p>\n<h3>\n \u661f\u5ea7\u8be6\u60c5<br \/>\n<\/h3>\n<p>&#8220;;<\/p>\n<p>    echo &#8220;&#8221;;<br \/>\n    echo &#8220;&#8221;;<\/p>\n<p>    foreach ($zodiacSignData as $key =&gt; $value) {<br \/>\n      echo &#8220;&#8221;;<br \/>\n    }<\/p>\n<p>    echo &#8221;<\/p>\n<table>\n<tbody>\n<tr>\n<th>\n    \u7279\u5f81\n   <\/th>\n<th>\n    \u63cf\u8ff0\n   <\/th>\n<\/tr>\n<tr>\n<td>\n    $key\n   <\/td>\n<td>\n    $value\n   <\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&#8220;;<br \/>\n  }<\/p>\n<p>  function getZodiacSign($birthdate) {<br \/>\n    $month = date(&#8216;m&#8217;, strtotime($birthdate));<br \/>\n    $day = date(&#8216;d&#8217;, strtotime($birthdate));<\/p>\n<p>    $zodiacSigns = array(<br \/>\n      &#8216;Aries&#8217; =&gt; array(&#8216;start&#8217; =&gt; &#8217;03-21&#8242;, &#8216;end&#8217; =&gt; &#8217;04-19&#8242;),<br \/>\n      &#8216;Taurus&#8217; =&gt; array(&#8216;start&#8217; =&gt; &#8217;04-20&#8242;, &#8216;end&#8217; =&gt; &#8217;05-20&#8242;),<br \/>\n      &#8216;Gemini&#8217; =&gt; array(&#8216;start&#8217; =&gt; &#8217;05-21&#8242;, &#8216;end&#8217; =&gt; &#8217;06-20&#8242;),<br \/>\n      &#8216;Cancer&#8217; =&gt; array(&#8216;start&#8217; =&gt; &#8217;06-21&#8242;, &#8216;end&#8217; =&gt; &#8217;07-22&#8242;),<br \/>\n      &#8216;Leo&#8217; =&gt; array(&#8216;start&#8217; =&gt; &#8217;07-23&#8242;, &#8216;end&#8217; =&gt; &#8217;08-22&#8242;),<br \/>\n      &#8216;Virgo&#8217; =&gt; array(&#8216;start&#8217; =&gt; &#8217;08-23&#8242;, &#8216;end&#8217; =&gt; &#8217;09-22&#8242;),<br \/>\n      &#8216;Libra&#8217; =&gt; array(&#8216;start&#8217; =&gt; &#8217;09-23&#8242;, &#8216;end&#8217; =&gt; &#8217;10-22&#8242;),<br \/>\n      &#8216;Scorpio&#8217; =&gt; array(&#8216;start&#8217; =&gt; &#8217;10-23&#8242;, &#8216;end&#8217; =&gt; &#8217;11-21&#8242;),<br \/>\n      &#8216;Sagittarius&#8217; =&gt; array(&#8216;start&#8217; =&gt; &#8217;11-22&#8242;, &#8216;end&#8217; =&gt; &#8217;12-21&#8242;),<br \/>\n      &#8216;Capricorn&#8217; =&gt; array(&#8216;start&#8217; =&gt; &#8217;12-22&#8242;, &#8216;end&#8217; =&gt; &#8217;01-19&#8242;),<br \/>\n      &#8216;Aquarius&#8217; =&gt; array(&#8216;start&#8217; =&gt; &#8217;01-20&#8242;, &#8216;end&#8217; =&gt; &#8217;02-18&#8242;),<br \/>\n      &#8216;Pisces&#8217; =&gt; array(&#8216;start&#8217; =&gt; &#8217;02-19&#8242;, &#8216;end&#8217; =&gt; &#8217;03-20&#8242;)<br \/>\n    );<\/p>\n<p>    foreach ($zodiacSigns as $sign =&gt; $dates) {<br \/>\n      $startMonth = date(&#8216;m&#8217;, strtotime($dates[&#8216;start&#8217;]));<br \/>\n      $startDay = date(&#8216;d&#8217;, strtotime($dates[&#8216;start&#8217;]));<\/p>\n<p>      $endMonth = date(&#8216;m&#8217;, strtotime($dates[&#8216;end&#8217;]));<br \/>\n      $endDay = date(&#8216;d&#8217;, strtotime($dates[&#8216;end&#8217;]));<\/p>\n<p>      if (($month &gt; $startMonth || $month == $startMonth &amp;&amp; $day &gt;= $startDay) &amp;&amp; ($month &lt; $endMonth || $month == $endMonth &amp;&amp; $day &lt;= $endDay)) {<br \/>\n        return $sign;<br \/>\n      }<br \/>\n    }<\/p>\n<p>    return &#8216;\u672a\u77e5\u661f\u5ea7&#8217;;<br \/>\n  }<\/p>\n<p>  function getZodiacSignData($zodiacSign){<br \/>\n    $zodiacSignData = array(<br \/>\n      &#8216;Aries&#8217; =&gt; array(<br \/>\n        &#8216;\u4e2a\u6027&#8217; =&gt; &#8216;\u70ed\u60c5\u3001\u51b2\u52a8\u3001\u5145\u6ee1\u6d3b\u529b&#8217;,<br \/>\n        &#8216;\u4f18\u70b9&#8217; =&gt; &#8216;\u81ea\u4fe1\u3001\u679c\u65ad\u3001\u52c7\u6562&#8217;,<br \/>\n        &#8216;\u7f3a\u70b9&#8217; =&gt; &#8216;\u51b2\u52a8\u3001\u9c81\u83bd\u3001\u6025\u8e81&#8217;<br \/>\n      ),<br \/>\n      &#8216;Taurus&#8217; =&gt; array(<br \/>\n        &#8216;\u4e2a\u6027&#8217; =&gt; &#8216;\u7a33\u91cd\u3001\u53ef\u9760\u3001\u52a1\u5b9e&#8217;,<br \/>\n        &#8216;\u4f18\u70b9&#8217; =&gt; &#8216;\u8010\u5fc3\u3001\u575a\u6301\u3001\u5fe0\u8bda&#8217;,<br \/>\n        &#8216;\u7f3a\u70b9&#8217; =&gt; &#8216;\u56fa\u6267\u3001\u61d2\u60f0\u3001\u8d2a\u5a6a&#8217;<br \/>\n      ),<br \/>\n      &#8216;Gemini&#8217; =&gt; array(<br \/>\n        &#8216;\u4e2a\u6027&#8217; =&gt; &#8216;\u806a\u660e\u3001\u673a\u667a\u3001\u5584\u4e8e\u6c9f\u901a&#8217;,<br \/>\n        &#8216;\u4f18\u70b9&#8217; =&gt; &#8216;\u9002\u5e94\u529b\u5f3a\u3001\u5e7d\u9ed8\u98ce\u8da3\u3001\u8db3\u667a\u591a\u8c0b&#8217;,<br \/>\n        &#8216;\u7f3a\u70b9&#8217; =&gt; &#8216;\u591a\u53d8\u3001\u5584\u5fd8\u3001\u6d6e\u8e81&#8217;<br \/>\n      ),<br \/>\n      &#8216;Cancer&#8217; =&gt; array(<br \/>\n        &#8216;\u4e2a\u6027&#8217; =&gt; &#8216;\u987e\u5bb6\u3001\u654f\u611f\u3001\u5bcc\u6709\u540c\u60c5\u5fc3&#8217;,<br \/>\n        &#8216;\u4f18\u70b9&#8217; =&gt; &#8216;\u4f53\u8d34\u3001\u6e29\u67d4\u3001\u5305\u5bb9&#8217;,<br \/>\n        &#8216;\u7f3a\u70b9&#8217; =&gt; &#8216;\u60c5\u7eea\u5316\u3001\u4f9d\u8d56\u6027\u5f3a\u3001\u675e\u4eba\u5fe7\u5929&#8217;<br \/>\n      ),<br \/>\n      &#8216;Leo&#8217; =&gt; array(<br \/>\n        &#8216;\u4e2a\u6027&#8217; =&gt; &#8216;\u81ea\u4fe1\u3001\u9738\u6c14\u3001\u5bcc\u6709\u521b\u9020\u529b&#8217;,<br \/>\n        &#8216;\u4f18\u70b9&#8217; =&gt; &#8216;\u9886\u5bfc\u529b\u5f3a\u3001\u6177\u6168\u5927\u65b9\u3001\u70ed\u60c5&#8217;,<br \/>\n        &#8216;\u7f3a\u70b9&#8217; =&gt; &#8216;\u81ea\u8d1f\u3001\u50b2\u6162\u3001\u56fa\u6267&#8217;<br \/>\n      ),<br \/>\n      &#8216;Virgo&#8217; =&gt; array(<br \/>\n        &#8216;\u4e2a\u6027&#8217; =&gt; &#8216;\u7ec6\u81f4\u3001\u52e4\u594b\u3001\u6709\u6761\u7406&#8217;,<br \/>\n        &#8216;\u4f18\u70b9&#8217; =&gt; &#8216;\u5b8c\u7f8e\u4e3b\u4e49\u3001\u8d23\u4efb\u611f\u5f3a\u3001\u52e4\u52b3&#8217;,<br \/>\n        &#8216;\u7f3a\u70b9&#8217; =&gt; &#8216;\u6311\u5254\u3001\u6d01\u7656\u3001\u795e\u7ecf\u8d28&#8217;<br \/>\n      ),<br \/>\n      &#8216;Libra&#8217; =&gt; array(<br \/>\n        &#8216;\u4e2a\u6027&#8217; =&gt; &#8216;\u4f18\u96c5\u3001\u8ff7\u4eba\u3001\u8ffd\u6c42\u5e73\u8861&#8217;,<br \/>\n        &#8216;\u4f18\u70b9&#8217; =&gt; &#8216;\u5ba1\u7f8e\u54c1\u5473\u9ad8\u3001\u5916\u4ea4\u80fd\u529b\u5f3a\u3001\u516c\u6b63&#8217;,<br \/>\n        &#8216;\u7f3a\u70b9&#8217; =&gt; &#8216;\u4f18\u67d4\u5be1\u65ad\u3001\u7f3a\u4e4f\u4e3b\u89c1\u3001\u865a\u8363&#8217;<br \/>\n      ),<br \/>\n      &#8216;Scorpio&#8217; =&gt; array(<br \/>\n&#8216;\u4e2a\u6027&#8217; =&gt; &#8216;\u795e\u79d8\u3001\u6df1\u523b\u3001\u6709\u9b45\u529b&#8217;,<br \/>\n        &#8216;\u4f18\u70b9&#8217; =&gt; &#8216;\u6d1e\u5bdf\u529b\u5f3a\u3001\u610f\u5fd7\u575a\u5b9a\u3001\u5fe0\u8bda&#8217;,<br \/>\n        &#8216;\u7f3a\u70b9&#8217; =&gt; &#8216;\u590d\u4ec7\u5fc3\u5f3a\u3001\u63a7\u5236\u6b32\u5f3a\u3001\u731c\u7591\u5fc3\u91cd&#8217;<br \/>\n      ),<br \/>\n      &#8216;Sagittarius&#8217; =&gt; array(<br \/>\n        &#8216;\u4e2a\u6027&#8217; =&gt; &#8216;\u4e50\u89c2\u3001\u5e7d\u9ed8\u3001\u70ed\u7231\u81ea\u7531&#8217;,<br \/>\n        &#8216;\u4f18\u70b9&#8217; =&gt; &#8216;\u72ec\u7acb\u3001\u5192\u9669\u7cbe\u795e\u5f3a\u3001\u77e5\u8bc6\u6e0a\u535a&#8217;,<br \/>\n        &#8216;\u7f3a\u70b9&#8217; =&gt; &#8216;\u6d6e\u8e81\u3001\u7f3a\u4e4f\u8010\u5fc3\u3001\u4e0d\u5207\u5b9e\u9645&#8217;<br \/>\n      ),<br \/>\n      &#8216;Capricorn&#8217; =&gt; array(<br \/>\n        &#8216;\u4e2a\u6027&#8217; =&gt; &#8216;\u81ea\u5f8b\u3001\u52e4\u594b\u3001\u6709\u91ce\u5fc3&#8217;,<br \/>\n        &#8216;\u4f18\u70b9&#8217; =&gt; &#8216;\u8d23\u4efb\u611f\u5f3a\u3001\u575a\u5fcd\u4e0d\u62d4\u3001\u811a\u8e0f\u5b9e\u5730&#8217;,<br \/>\n        &#8216;\u7f3a\u70b9&#8217; =&gt; &#8216;\u51b7\u6f20\u3001\u538b\u6291\u3001\u5de5\u4f5c\u72c2&#8217;<br \/>\n      ),<br \/>\n      &#8216;Aquarius&#8217; =&gt; array(<br \/>\n        &#8216;\u4e2a\u6027&#8217; =&gt; &#8216;\u72ec\u7acb\u3001\u535a\u7231\u3001\u5bcc\u6709\u521b\u9020\u529b&#8217;,<br \/>\n        &#8216;\u4f18\u70b9&#8217; =&gt; &#8216;\u521b\u65b0\u601d\u7ef4\u3001\u5bbd\u5bb9\u5f00\u653e\u3001\u4e50\u4e8e\u52a9\u4eba&#8217;,<br \/>\n        &#8216;\u7f3a\u70b9&#8217; =&gt; &#8216;\u53e4\u602a\u3001\u53db\u9006\u3001\u56fa\u6267&#8217;<br \/>\n      ),<br \/>\n      &#8216;Pisces&#8217; =&gt; array(<br \/>\n        &#8216;\u4e2a\u6027&#8217; =&gt; &#8216;\u6d6a\u6f2b\u3001\u654f\u611f\u3001\u5bcc\u6709\u60f3\u8c61\u529b&#8217;,<br \/>\n        &#8216;\u4f18\u70b9&#8217; =&gt; &#8216;\u5bcc\u6709\u540c\u60c5\u5fc3\u3001\u65e0\u79c1\u3001\u4e50\u4e8e\u5949\u732e&#8217;,<br \/>\n        &#8216;\u7f3a\u70b9&#8217; =&gt; &#8216;\u9003\u907f\u73b0\u5b9e\u3001\u60c5\u7eea\u4e0d\u7a33\u5b9a\u3001\u4f9d\u8d56\u6027\u5f3a&#8217;<br \/>\n      )<br \/>\n    );<\/p>\n<p>    return $zodiacSignData[$zodiacSign];<br \/>\n  }<br \/>\n  ?&gt;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6839\u636e\u9633\u5386\u751f\u65e5\u67e5\u8be2\u661f\u5ea7\u51fa\u751f\u65e5\u671f\uff0c\u9633\u5386\uff0c\u4f60\u7684\u661f\u5ea7\uff0c$zodiacSign\uff0c$zodiacSignData=getZodiacSignData\uff0c$zodiacSign\uff0cecho\u661f\u5ea7\u8be6\u60c5\uff0cecho\uff0cecho\uff0cforeach\uff0c$zodiacSignDataas$key=&#038;gt\uff0c$value\uff0cecho\uff0cecho\u7279\u5f81\u63cf\u8ff0$key$value&#8230;\u3002<\/p>\n","protected":false},"author":1,"featured_media":28849,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[12146,5250],"class_list":["post-28850","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-12shengxiao","tag-12146","tag-5250"],"_links":{"self":[{"href":"https:\/\/0592ban.cn\/index.php\/wp-json\/wp\/v2\/posts\/28850","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=28850"}],"version-history":[{"count":1,"href":"https:\/\/0592ban.cn\/index.php\/wp-json\/wp\/v2\/posts\/28850\/revisions"}],"predecessor-version":[{"id":28851,"href":"https:\/\/0592ban.cn\/index.php\/wp-json\/wp\/v2\/posts\/28850\/revisions\/28851"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/0592ban.cn\/index.php\/wp-json\/wp\/v2\/media\/28849"}],"wp:attachment":[{"href":"https:\/\/0592ban.cn\/index.php\/wp-json\/wp\/v2\/media?parent=28850"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/0592ban.cn\/index.php\/wp-json\/wp\/v2\/categories?post=28850"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/0592ban.cn\/index.php\/wp-json\/wp\/v2\/tags?post=28850"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}