<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>mizominton</author_name>
  <author_url>https://blog.hatena.ne.jp/mizominton/</author_url>
  <blog_title>#バドシス　〜 日々のことを続く限り書いてみようと思って 〜</blog_title>
  <blog_url>https://mizominton.hatenablog.jp/</blog_url>
  <categories>
    <anon>IT</anon>
    <anon>php</anon>
  </categories>
  <description>躓いたので残しておきます。 名前空間 PHP: 名前空間の定義 - Manual (PHP 5 &gt;= 5.3.0, PHP 7) PHP のコードならなんでも名前空間に含めることができますが、 実際に名前空間の影響を受けるのはクラス (抽象クラスやトレイトを含む) とインターフェイス、関数、そして定数だけです。 名前空間を宣言するには、キーワード namespace を使用します。名前空間を含むファイルでは、他のコードより前にファイルの先頭で名前空間を宣言しなければなりません。 ただし declare キーワードは例外です。 ふむふむ。 だがしかしnamespaceの前には何も書いてないです。…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmizominton.hatenablog.jp%2Fentry%2Ffaital-error-namespace&quot; title=&quot;PHP Fatal error: Namespace declaration statement has to be the very first statement in the script - #バドシス　〜 日々のことを続く限り書いてみようと思って 〜&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/m/mizominton/20161011/20161011162045.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2018-10-18 12:49:58</published>
  <title>PHP Fatal error: Namespace declaration statement has to be the very first statement in the script</title>
  <type>rich</type>
  <url>https://mizominton.hatenablog.jp/entry/faital-error-namespace</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
