Strip quotes.
public static stripQuotes ( string $value ) : string | ||
$value | string | |
return | string |
public function tstStripQuotes() { isSame('qwerty', Filter::stripQuotes('qwerty')); isSame('qwerty"', Filter::stripQuotes('qwerty"')); isSame('"qwerty', Filter::stripQuotes('"qwerty')); isSame('"qwerty"', Filter::stripQuotes('"qwerty"')); isSame("qwerty", Filter::stripQuotes('qwerty')); isSame("qwerty'", Filter::stripQuotes('qwerty\'')); isSame("'qwerty", Filter::stripQuotes('\'qwerty')); isSame("'qwerty'", Filter::stripQuotes('\'qwerty\'')); isSame("'qwerty\"", Filter::stripQuotes('\'qwerty"')); isSame("\"qwerty'", Filter::stripQuotes('"qwerty\'')); }