Login +

Documentation

SLS_String::substrAfterFirstDelimiter

Since SillySmart 1.0

Description

Cut a string from the first delimiter
static string substrAfterFirstDelimiter ( string $element, string $delimiter);

Parameters

  • string $element
    the string to cut
  • string $delimiter
    the delimiter

Return

string $string
the string cut

Exemples

  •  var_dump(SLS_String::substrAfterFirstDelimiter("silly.smart","."));
     // will produce : "smart"
  •  var_dump(SLS_String::substrAfterFirstDelimiter("silly.smart.rules","."));
     // will produce : "smart.rules"

Comments

No comment on this function, be the first !

Add your comment

You must login/register to post a reply.