initial commit
[anyfivecardpokerhand.git] / include / lib / plugins / function.explode.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<?php
/*
 * Smarty plugin
 * -------------------------------------------------------------
 * File:     functions.explode.php
 * Type:     function
 * Name:     explode
 * Version:  1.0
 * Date:     January 27, 2004
 * Purpose:  Creates an array
 *
 * Use: {explode var="arr" value="12,13,14,15" explode=","}
 * Author:   Razvan Stanga <razvan@phprebel.org>
 * -------------------------------------------------------------
 */
 
function smarty_function_explode ($params, &$smarty)
{
 
        if ( $params['var'] != "" AND $params['value'] != '' AND $params['explode'] != '' ) {
            $smarty->assign ($params['var'], explode ($params['explode'], $params['value']) );
        }
 
}
 
?>
 
comments