@@ 2077-2084 (lines=8) @@ | ||
2074 | if (strlen($value >= $lengthcheck)) { |
|
2075 | return null; |
|
2076 | } |
|
2077 | if (ctype_digit($value)) { |
|
2078 | $value = (int)$value; |
|
2079 | } else { |
|
2080 | if ($strict === true) { |
|
2081 | $value = preg_replace('/\W/', '', trim($value)); |
|
2082 | } |
|
2083 | $value = strtolower((string)$value); |
|
2084 | } |
|
2085 | $globals[$k] = $value; |
|
2086 | } |
|
2087 | ||
@@ 2095-2102 (lines=8) @@ | ||
2092 | } else { |
|
2093 | $value = strip_tags(trim($array[$name])); |
|
2094 | } |
|
2095 | if (ctype_digit($value)) { |
|
2096 | $value = (int)$value; |
|
2097 | } else { |
|
2098 | if ($strict === true) { |
|
2099 | $value = preg_replace('/\W/', '', trim($value)); |
|
2100 | } |
|
2101 | $value = strtolower((string)$value); |
|
2102 | } |
|
2103 | ||
2104 | return $value; |
|
2105 | } |