<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>deloreanmc12</author_name>
  <author_url>https://blog.hatena.ne.jp/deloreanmc12/</author_url>
  <blog_title>3流プログラマのメモ書き</blog_title>
  <blog_url>https://3ryupg.hatenablog.com/</blog_url>
  <categories>
    <anon>PHP開発</anon>
  </categories>
  <description>年月日それぞれの値を渡して、日本語の曜日を取得する方法です。 date関数で、第一引数に、w を指定すると 。0 (日曜)から 6 (土曜) というように、曜日を数値で返してくれます。 PHPでは日時は mktime 関数を使うと生成できるようなので、これで生成した値を、date 関数の第二引数に入れてやればOKです。 これらを使って、日本語の曜日の入った配列を用意しておくと簡単に取得できますね。 こんな感じです。 /** * * 年月日から、曜日を取得する * @param int $year * @param int $month * @param int $day * @param in…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2F3ryupg.hatenablog.com%2Fentry%2F2011%2F07%2F10%2F211500&quot; title=&quot;(PHP)曜日を取得する - 3流プログラマのメモ書き&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2011-07-10 21:15:00</published>
  <title>(PHP)曜日を取得する</title>
  <type>rich</type>
  <url>https://3ryupg.hatenablog.com/entry/2011/07/10/211500</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
