2008-05-15から1日間の記事一覧
rubyのto_a get_object_vars($object); 参考 PHPでオブジェクトを配列に変換するにはget_object_vars – 秋元
{if $smarty.section.file.iteration%2 == 0}{/if} rubyだと hoge.each_with_index do |i, count| p count #ループのn回目 end
rubyのto_a get_object_vars($object); 参考 PHPでオブジェクトを配列に変換するにはget_object_vars – 秋元
{if $smarty.section.file.iteration%2 == 0}{/if} rubyだと hoge.each_with_index do |i, count| p count #ループのn回目 end