Login +

Documentation

SLS_String::filter

Since SillySmart 1.0.7

Description

Filter a string
static string filter ( string $input, string $filter, [ string $hash ] );

Parameters

  • string $input
    the input string to clean
  • string $filter
    the filter to apply ('alpha'|'alnum'|'numeric'|'lower'|'lcfirst'|'upper'|'ucfirst'|'ucwords'|'trim'|'ltrim'|'rtrim'|'nospace'|'sanitize'|'striptags'|'hash')
  • string $hash
    the type of hash (if $filter = 'hash')

Return

string $output
the output string cleaned
No exemples.

Comments

No comment on this function, be the first !

Add your comment

You must login/register to post a reply.