<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>deloreanmc12</author_name>
  <author_url>https://blog.hatena.ne.jp/deloreanmc12/</author_url>
  <blog_title>3流プログラマのメモ書き</blog_title>
  <blog_url>https://3ryupg.hatenablog.com/</blog_url>
  <categories>
    <anon>PHP開発</anon>
  </categories>
  <description>PHP側からDBで取得した値を2次元連想配列としてアサインしたときに、Smartyテンプレートにどう書くかです。 ドットで(.)で連想配列名(クォーテーションなし)でアクセスできるようです。 ●テンプレート側 {section name=iCnt loop=$inputAry} 1列目:{$inputAry[iCnt].id} 2列目:{$inputAry[iCnt].name} {/section} ●PHP側(MySQLからデータ取得後に、2次元配列つくりテンプレートにアサイン) //MySQLからデータ取得した後 $resAry = array(); while ($row = mysq…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2F3ryupg.hatenablog.com%2Fentry%2F2009%2F09%2F14%2F235800&quot; title=&quot;(PHP)Smartyで連想配列をアサインした場合 - 3流プログラマのメモ書き&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>2009-09-14 23:58:00</published>
  <title>(PHP)Smartyで連想配列をアサインした場合</title>
  <type>rich</type>
  <url>https://3ryupg.hatenablog.com/entry/2009/09/14/235800</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
