Login +

Documentation

SLS_String::addSlashesToString

Since SillySmart 1.0

Description

Add escape character on a string or on a array
static mixed addSlashesToString ( mixed $element, [ bool $check_gpc ] );

Parameters

  • mixed $element
    the element to escape (string,array)
  • bool $check_gpc
    true if you want to check before if the magic quotes are enabled

Return

mixed $escaped
the element escaped (string,array)

Exemples

  •  var_dump(SLS_String::addSlashesToString("sls is goin' to \" rules"));
     // will produce : "sls is goin\' to \" rules"

Comments

No comment on this function, be the first !

Add your comment

You must login/register to post a reply.