Login +

Documentation

SLS_String::trimSlashesFromString

Since SillySmart 1.0

Description

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

Parameters

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

Return

mixed $escaped
the element strip escaped (string,array)

Exemples

  •  var_dump(SLS_String::trimSlashesFromString("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.