Login +

Documentation

SLS_String::stringToUrl

Since SillySmart 1.0

Description

Modify a string to use it in a portion of url
static string stringToUrl ( string $string, [ string $delimiter ] , [ bool $lower ] );

Parameters

  • string $string
    the string to convert
  • string $delimiter
    the glue
  • bool $lower
    true if you lowercase, else false

Return

string $string
the string converted

Exemples

  •  var_dump(SLS_String::stringToUrl("~ enLighTment />comes from darkness.+&-"));
     // will produce " enlightment comes from darkness + -"

Comments

No comment on this function, be the first !

Add your comment

You must login/register to post a reply.