Source for file modifier.unique.php
Documentation is available at modifier.unique.php
* smarty modifier:unique()
* $smarty->assign("array1", array("a", "a", "b", "a", "b", "c"));
* $smarty->assign("array2", array(
* array("foo" => 1, "bar" => 4),
* array("foo" => 1, "bar" => 4),
* array("foo" => 1, "bar" => 4),
* array("foo" => 2, "bar" => 5),
* array("foo" => 3, "bar" => 6),
* array("foo" => 2, "bar" => 5),
* {$array1|@unique|@join:''}
* {$array2|@unique:"foo"|@join:''}
* @param array $array 処理対象となる配列
* @param key $key 処理対象となるキー(nullなら配列要素)
if (isset
($v[$key]) ==
false) {
Documentation generated on Fri, 11 Nov 2011 04:01:17 +0900 by phpDocumentor 1.4.3