Newscoop\Services\InputManipulator::cleanMagicQuotes PHP Метод

cleanMagicQuotes() публичный статический Метод

cleanMagicQuotes
public static cleanMagicQuotes ( array $array ) : array
$array array object to clean from quotes
Результат array $gpcList cleaned object
    public static function cleanMagicQuotes(array $array)
    {
        $gpcList = array();
        foreach ($array as $key => $value) {
            $decodedKey = stripslashes($key);
            if (is_array($value)) {
                $decodedValue = self::cleanMagicQuotes($value);
            } else {
                $decodedValue = stripslashes($value);
            }
            $gpcList[$decodedKey] = $decodedValue;
        }
        return $gpcList;
    }