Subversion-Projekte lars-tiefland.laravel_shop

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
115 lars 1
<?php
2
 
3
    /**
4
     * Smarty plugin
5
     *
6
     * @package Smarty
7
     * @subpackage PluginsModifier
8
     */
9
 
10
    /**
11
     * Smarty escape modifier plugin
12
     *
13
     * Type:     modifier<br>
14
     * Name:     escape<br>
15
     * Purpose:  escape string for output
16
     *
17
     * @link http://smarty.php.net/manual/en/language.modifier.count.characters.php count_characters (Smarty online manual)
18
     * @author Monte Ohrt <monte at ohrt dot com>
19
     * @param string $string input string
20
     * @param string $esc_type escape type
21
     * @param string $char_set character set
22
     * @return string escaped input string
23
     */
24
    function smarty_modifier_explode_str( $string, $delim = ',', $limit = 0 )
25
    {
26
        if ( $lmit )
27
        {
28
            $ret = explode( $delim, $string, $limit );
29
        }
30
        else
31
        {
32
            $ret=explode($delim,$string);
33
        }
34
        return $ret;
35
    }
36
?>