Login +

Documentation

SLS_String::endsWith

Since SillySmart 1.0

Description

Check if a string ends with another
static bool endsWith ( string $hay, string $needle);

Parameters

  • string $hay
    the string in which you search
  • string $needle
    the string searched

Return

bool
true if the string ends with the other, else false

Exemples

  •  var_dump(SLS_String::endsWith("Silly Smart","Smart"));
     // will produce : true
  •  var_dump(SLS_String::endsWith("Silly Smart","SillySmart"));
     // will produce : false

Comments

No comment on this function, be the first !

Add your comment

You must login/register to post a reply.