Login +

Documentation

SLS_String::getAlphaString

Since SillySmart 1.0

Description

Keep only alpha chars in the string. Replace all others chars by a space ($char)
static string getAlphaString ( string $str, [ string $char ] );

Parameters

  • string $str
    string to transform
  • string $char
    replacement character

Return

string

Exemples

  •  var_dump(SLS_String::getAlphaString("Sls 4 u"));
     // will produce : "Sls u"

Comments

No comment on this function, be the first !

Add your comment

You must login/register to post a reply.