Login +

Documentation

SLS_String::trimLastWordFromString

Since SillySmart 1.0

Description

Delete the last word of a string
static string trimLastWordFromString ( string $string);

Parameters

  • string $string
    the string to 'amputate'

Return

string $trimmed
the string cut

Exemples

  •  var_dump(SLS_String::trimLastWordFromString("software is like sex, it's better when it's free"));
     // will produce : "software is like sex, it's better when it's"

Comments

No comment on this function, be the first !

Add your comment

You must login/register to post a reply.