ここの情報は古いです。ご理解頂いた上でお取り扱いください。

source: OpenPNE/trunk/webapp/lib/smarty_plugins/modifier.t_implode.php @ 1856

Last change on this file since 1856 was 1856, checked in by takanashi, 16 years ago

copyright表記修正

File size: 397 bytes
Line 
1<?php
2/**
3 * @copyright 2005-2007 OpenPNE Project
4 * @license   http://www.php.net/license/3_01.txt PHP License 3.01
5 */
6
7/**
8 * Smarty t_implode modifier plugin
9 *
10 * @param  array  $pieces
11 * @param  string $glue
12 * @return string
13 */
14function smarty_modifier_t_implode($pieces, $glue = '')
15{
16    if (!is_array($pieces)) {
17        return $pieces;
18    }
19    return implode($glue, $pieces);
20}
21
22?>
Note: See TracBrowser for help on using the repository browser.