<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>studio-m</author_name>
  <author_url>https://blog.hatena.ne.jp/studio-m/</author_url>
  <blog_title>Lism.in * blog - nekoya (id:studio-m)</blog_title>
  <blog_url>https://studio-m.hatenadiary.org/</blog_url>
  <categories>
    <anon>php</anon>
    <anon>Smarty</anon>
  </categories>
  <description>Smartyでは、テンプレート内で {assign var=&quot;変数名&quot; value=&quot;変数の内容&quot;}と書くことで変数を定義できますが、配列の定義はphp側でしかできません。そこで、普段使ってる配列定義のプラグインをご紹介。 &lt;?php /** * Smarty plugin {assign_array} * * usage: {assign_array var=&quot;var&quot; values=&quot;val1[,val2,val3...]&quot; [separator=&quot;,&quot;]} * * テンプレート内で配列を定義するSmartyプラグイン。 * 変数varに配列を格納する。配列の値はvaluesにカンマ区切り…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fstudio-m.hatenadiary.org%2Fentry%2F20070512%2F1178978926&quot; title=&quot; Smartyで配列を定義するプラグイン - Lism.in * blog - nekoya (id:studio-m)&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>2007-05-12 23:08:46</published>
  <title> Smartyで配列を定義するプラグイン</title>
  <type>rich</type>
  <url>https://studio-m.hatenadiary.org/entry/20070512/1178978926</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
