Login +

Documentation

SLS_String::fullTrim

Since SillySmart 1.0

Description

Perform a full trim
static string fullTrim ( string $element, [ string $delimiter ] );

Parameters

  • string $element
    the string to trim
  • string $delimiter
    the glue

Return

string
the string trimed

Exemples

  •  var_dump(SLS_String::fullTrim("  software is like sex,   it's better when it's free  "));
     // will produce : "softwareislikesex,it'sbetterwhenit'sfree"
  •  var_dump(SLS_String::fullTrim("  software is like sex,   it's better when it's free  ","_"));
     // will produce : "__software_is_like_sex,___it's_better_when_it's_free__"

Comments

No comment on this function, be the first !

Add your comment

You must login/register to post a reply.