Login +

Documentation

SLS_String::countSentences

Since SillySmart 1.0

Description

Count the number of sentences in a string
static int countSentences ( string $string);

Parameters

  • string $string
    the string to count

Return

int
the number of sentences

Exemples

  •  var_dump(SLS_String::countSentences("SillySmart is a lightweight and flexible MVC Framework written in PHP5. It's based on XML/XSL's parsing."));
     // will produce : 2

Comments

No comment on this function, be the first !

Add your comment

You must login/register to post a reply.