Login +

Documentation

SLS_String::trimString

Since SillySmart 1.0

Description

Perfom a left & right trim
static mixed trimString ( mixed $element);

Parameters

  • mixed $element
    the element to trim (string,array)

Return

mixed $element
the element trimed (string,array)

Exemples

  •  var_dump(SLS_String::trimString("  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.