<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>shin1x1</author_name>
  <author_url>https://blog.hatena.ne.jp/shin1x1/</author_url>
  <blog_title>Shin x Blog</blog_title>
  <blog_url>https://blog.shin1x1.com/</blog_url>
  <categories>
    <anon>php</anon>
  </categories>
  <description>PHP の use 文では、クラス名や関数名、定数、名前空間などのエイリアスを設定できます。 &lt;?php use App\Foo; use App\Bar as ABar; $foo = new Foo(); $bar = new ABar(); https://www.php.net/manual/ja/language.namespaces.importing.php この use 文は指定したシンボルにエイリアスを設定する、言い方を変えると名前空間をインポートするもので、オートロードでクラス定義 PHP ファイルを読み込むものではありません。*1 例えば、上記コードの場合、use 文の時…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.shin1x1.com%2Fentry%2Fuse-statement-do-not-load-php-file&quot; title=&quot;use 文は PHP ファイルを読み込まない - Shin x 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></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2024-06-04 23:20:41</published>
  <title>use 文は PHP ファイルを読み込まない</title>
  <type>rich</type>
  <url>https://blog.shin1x1.com/entry/use-statement-do-not-load-php-file</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
