snswm's avatar - Seven Notes
Guangzhou, Guangdong Provincejanitors
The guy was lazy and didn't write anything...
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 input text to prevent attacks input xss clear - Xiao Qi Notes

PHP input text prevent attack input xss clear

PHP input text prevent attack input xss clear
2 years ago
020511
PHP URL shortening algorithm code-Small Seven Notes

PHP URL shortening algorithm code

PHP URL shortening algorithm code
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 Get Remote Image Display (Remote 403) - Xiaoqi Notes

PHP Get Remote Image Display (Remote 403)

PHP Get Remote Image Display (Remote 403)
PHP Curl Class Library - Seven Notes
PHP operation directory or file common methods-Small seven notes

PHP common methods to manipulate directories or files

1, convert \ to / /** * Convert \ to / * * * @param string $path path * @return string path */ function dir_path($path) { $path = str_replace('\\', '/', $path); if(substr($path, -1) ! = '/'...
PHP common string processing methods-Small seven notes

PHP common string processing methods

1, realize the search engine to search results hit the keyword marked red <?php /** * Split the string into an array * @param $search search keyword * @return array */ function splitString(string $search):array { // positive ...
PHP xml data creation and reading-Small Seven Notes

PHP xml data creation and reading

PHP xml data creation and reading
php get MAC address-Small Seven Notes
PHP Cross Domain Detection - Seven Notes
PHP class library according to ip resolution for the region - provinces and cities - Xiaoqi notes

PHP class libraries are parsed into regions-provinces and cities based on ip

PHP class libraries are parsed into regions-provinces and cities based on ip