资 源 简 介
superGlobals is a PHP library that transparently injects into a superglobal or global variable while keeping all functionality of a regular array, but extending it with type casting and URI parsing into that array.
It can use memcached for additional performance and can interact with custom DB abstractions (mostly PEAR).
It may filter, cast, or validate variables as: boolean, integer, float, string, array, object, IPv4 address, IPv6 address, regular expression, URL, URL encoded string, HTML escaped string, or SQL escaped string.
It is possible to pass a function name callback as a casting or validation method. Also, it is possible to pass multiple casting methods for each variable, which is useful for array processing.