<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>kikiki-kiki</author_name>
  <author_url>https://blog.hatena.ne.jp/kikiki-kiki/</author_url>
  <blog_title>かもメモ</blog_title>
  <blog_url>https://chaika.hatenablog.com/</blog_url>
  <categories>
    <anon>PHP</anon>
    <anon>JavaScript</anon>
    <anon>TypeScript</anon>
    <anon>CSS</anon>
  </categories>
  <description>3億年ぶりに古の WordPress 製のサイトを更新する必要があり、PHP のテンプレートで CSS のクラス名を動的に作成する必要があった JavaScript で言うところの classnames のような挙動をさせたい CSS のクラス class=&quot;foo bar mofu&quot; のような形 スペース区切りの文字列 クラス名が重複していても特に問題はない 配列から Falsey な値を取り除いて スペースで結合すれば良い TypeScript での例 export const classnames = ( ...args: (string | undefined | null | fal…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fchaika.hatenablog.com%2Fentry%2F2024%2F04%2F18%2F083000&quot; title=&quot;PHP 配列からいい感じに CSS のクラス名を作りたい - かもメモ&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://m.media-amazon.com/images/I/41HuCzUpgeL._SL500_.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2024-04-18 08:30:00</published>
  <title>PHP 配列からいい感じに CSS のクラス名を作りたい</title>
  <type>rich</type>
  <url>https://chaika.hatenablog.com/entry/2024/04/18/083000</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
