<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>aipacommander</author_name>
  <author_url>https://blog.hatena.ne.jp/aipacommander/</author_url>
  <blog_title>ITの隊長のブログ</blog_title>
  <blog_url>https://aipacommander.com/</blog_url>
  <categories>
    <anon>PHP</anon>
    <anon>MySQL</anon>
  </categories>
  <description>photo by xmodulo 中々投稿できなかったわ。久しぶりです。 最近、色んな人に匿名芸名がばれて、このブログにも知り合いが見に来るんだろうなと思いますが、特に◯ッチなブログでもなく、disっているブログでもないので、このまま平常運転していきます。 今回は設計上無理ゲーで作ったシステムがダウンしました。原因が「動的に生成した変数にハイフンが入った」からでした。それを修正した内容を書く。 PHPの変数でハイフンを使いたい こうすれば使えます。 &lt;?php // これはエラー // $test-variable = &quot;NG!&quot;; //これはおｋ ${&quot;test-variable&quot;} = &quot;…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Faipacommander.com%2Fentry%2F2015%2F06%2F16%2F212654&quot; title=&quot;PHPとMySQLで「ハイフン」が入った変数、DB名を作成する方法 - ITの隊長のブログ&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>http://farm4.staticflickr.com/3913/14522157584_42fff58cfc.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2015-06-16 21:26:54</published>
  <title>PHPとMySQLで「ハイフン」が入った変数、DB名を作成する方法</title>
  <type>rich</type>
  <url>https://aipacommander.com/entry/2015/06/16/212654</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
