<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>BG1</author_name>
  <author_url>https://blog.hatena.ne.jp/BG1/</author_url>
  <blog_title>車輪のx発明 ~B.G's Blog~</blog_title>
  <blog_url>https://bg1.hatenablog.com/</blog_url>
  <categories>
    <anon>PHP</anon>
  </categories>
  <description>constでクラス定数を定義する。PHP入門 - クラス - とほほのWWW入門const.phpで、 &lt;html&gt; &lt;head&gt; &lt;title&gt;class#const&lt;/title&gt; &lt;/head&gt; &lt;body&gt; &lt;?php class TestClass{ const NUM = 10; } TestClass::NUM = 20; echo TestClass::NUM; ?&gt; &lt;/body&gt; &lt;/html&gt; クラス名に&quot;::&quot;を付けてその後に定数名を付ける。 定数なので、上記のように代入すると、 エラーが起きて表示されないエラーが起きて表示されないが、そんなことしなければ、定数としては…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fbg1.hatenablog.com%2Fentry%2F2021%2F02%2F24%2F210000&quot; title=&quot;const - 車輪のx発明 ~B.G&amp;#39;s Blog~&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>https://cdn-ak.f.st-hatena.com/images/fotolife/B/BG1/20200804/20200804121608.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2021-02-24 21:00:00</published>
  <title>const</title>
  <type>rich</type>
  <url>https://bg1.hatenablog.com/entry/2021/02/24/210000</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
