phpfor /ecerp/Apps/Libraries/smartyplugin/function.split.php

Language PHP Lines 17
MD5 Hash 68c9b0b7822930f3c7b8b320c1b5b7e2 Estimated Cost $215 (why?)
Repository http://phpfor.googlecode.com/svn/trunk/ View Raw File
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
<?php
/*
split a array
*/
function smarty_function_split($params, &$smarty){
    extract($params);

    foreach ($arr as $k => $v) {
        if($key == '') {
            $d_arr[] = $v;
        } else {
            $d_arr[] = $v[$key];
        }
    }

    return implode($sep, $d_arr);
}
Back to Top