snswm's avatar - Seven Notes
Guangzhou, Guangdong Provincejanitors
The guy was lazy and didn't write anything...
PHP DateTime common methods-Small seven notes

PHP DateTime common methods

Instantiation of an object preceded by \ means that the native class is used in the namespace, if the namespace is not used, you can remove the preceding \ 1. Output the current time $datetime = new \DateTime; print_r($datetime->format('Y-m-d H:i...
PHP Objects, Arrays, Strings, Escaping, etc.-Small Seven Notes

PHP objects, arrays, strings, escaping, etc.

1、Convert array to object /** * Convert array to object * @param array $data array * @return Return object (object) */ function array2object($array) { if (is_array($array)) { $obj = new StdClass(); ...
PHP string encryption, decryption functions - Xiaoqi Notes

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...
PHP Simple Generation of Random Numbers, Strings - Xiaoqi Notes

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 to get ip, browser, operating system information-Small seven notes
php on html page compression function-Small seven notes

php to html page compression function

Compression of html pages to reduce file size
PHP to build hierarchical (tree) arrays-Small Seven Notes

PHP builds hierarchical (tree) arrays

PHP builds hierarchical (tree) arrays
PHP to get the image in the text content-Small seven notes

PHP to get the image in the text content

PHP to get the image in the text content
2 years ago
02558
PHP prints various types of data, debugging programs - Xiaoqi Notes

PHP prints various types of data, debugging programs

PHP prints various types of data, debugging programs
PHP URL Redirection - Seven Notes
PHP replace the url of all images in the html code, add new url - Xiaoqi Notes

PHP replaces the url of all images in the html code, new url

PHP replaces the url of all images in the html code, new url
PHP to remove the p tag in html-Small seven notes

PHP removes p tags from html

PHP removes p tags from html