Documentación GVHIDRA 3.1.5
Referencia del Archivo Smarty_Compiler.class.php

Ir al código fuente de este archivo.

Estructuras de datos

class  Smarty_Compiler

Namespaces

namespace  Smarty

Funciones

 _smarty_sort_length ($a, $b)

Documentación de las funciones

_smarty_sort_length ( a,
b 
)

compare to values by their string length

private

Parámetros:
string$a
string$b
Devuelve:
0|-1|1

Definición en la línea 2302 del archivo Smarty_Compiler.class.php.

{
    if($a == $b)
        return 0;

    if(strlen($a) == strlen($b))
        return ($a > $b) ? -1 : 1;

    return (strlen($a) > strlen($b)) ? -1 : 1;
}