[ Index ]
 

Code source de LifeType 1.2.4

Accédez au Source d'autres logiciels libres

Classes | Fonctions | Variables | Constantes | Tables

title

Body

[fermer]

/class/template/smarty/plugins/ -> modifier.substr.php (source)

   1  <?php
   2  /**
   3   * Smarty substr modifier plugin
   4   *
   5   * Type:     modifier<br>
   6   * Name:     smarty<br>
   7   * Purpose:  make php's substr available to templates.
   8   */
   9  function smarty_modifier_substr($string, $start = -1, $length = -1){
  10     if($start == -1 && $length == -1)
  11       return substr($string);
  12     else if($length == -1)
  13       return substr($string, $start);
  14     else
  15       return substr($string, $start, $length);
  16  }
  17  
  18  ?>


Généré le : Mon Nov 26 21:04:15 2007 par Balluche grâce à PHPXref 0.7
  Clicky Web Analytics