categorization
arrange in order
WordPress using Redis cache (Redis Object Cache plugin) to optimize access performance
Redis Object Cache A persistent object caching backend powered by Redis. Supports Predis, PhpRedis (PECL), Relay, replication, sentinels, clustering, and WP-CLI. Rewritten for raw performance 100% WordPress API compatible...
PHP checks if the number is a plain number
The first: directly use a function, is_numeric() This function is to detect whether the parameter is a number, if so, return true, if not, return false, for example: is\_numeric( 'abcd123' ) ordie('the provided parameter is not a number'); The second ...
PHP Simple Generation of Random Numbers, Strings
1. Generate random string /** * Generate random string * * @param int $length Output length * @param string $chars Optional , default is 0123456789 * @return string string */ function random( $length, $chars ...
PHP string encryption and decryption functions
1, simple string encryption, decryption function /** * String encryption, decryption function * * * @param string $txt String * @param string $operation ENCODE for encryption, DECODE for decryption, optional parameter, default is ENCODE, * @param st...











