Hongmu Notes
Home Language Notes PHP generates fixed number based on title
Language Notes PHP

PHP generates fixed number based on title

PHP generates fixed number based on title
substr(str_replace(array("a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z"),"",md5($_GET['k'])),1,1)
微信赞赏

WeChat

支付宝赞赏

Alipay

✍️ Author: Hong Mu

webmaster · Thanks for reading, stay tuned for more exciting content

Author homepage View home page →

Related articles

PHP ob function record

PHP ob function record Language Notes PHP

Usage of the following three functions ob_get_contents(); ob_end_clean(); ob_start(); You can use these functions to buffer local files and execute local script code. Use ob_start() to save the output code into the buffer, and the page will not be displayed; then use ob_get_contents to get the data in the buffer. o…
👁 141
PHP preg

PHP preg Language Notes PHP

The preg_match_all function is used to perform a global regular expression match. preg_match_all() Syntax int preg_match_all ( string $pattern , string $subject [, array &$matches [, int $flags = PREG…
👁 169
Detailed explanation of PHP ternary operator and if

Detailed explanation of PHP ternary operator and if Language Notes PHP

Ternary operator condition ? Result 1 : Result 2 Explanation: The position in front of the question mark is the condition for judgment. If the condition is met, the result is 1, and if it is not met, the result is 2. This article compares and explains the ternary operator and if...else... in detail. I hope it will be helpful to everyone. Today when I was revising my paper online, I encountered a statement that I couldn’t understand: $if_summary = $row['IF_SUMMARY']=…
👁 190
PHP cast type

PHP cast type Language Notes PHP PHP collection PHP and mysql

Get the data type 1. If you want to check the value and type of an expression, use var_dump(). 2. If you just want to get an easy-to-read type expression for debugging, use gettype(). 3. To check a certain type, do not use gettype(), but use the is_type() function. Converting Strings to Numbers When a string is evaluated as a number, the result is determined according to the following rules...
👁 232

Recommended reading

Smart Environmental Protection Equipment Manufacturing Company Website Template 0605

Smart Environmental Protection Equipment Manufacturing Company Website Template 0605 Practical Collection Yiyou template

An EyouCMS website template designed for smart environmental protection equipment manufacturers. Its modern, eco-friendly design is ideal for showcasing smart environmental protection products, technical solutions, and engineering case studies. This template helps environmental protection equipment companies build their brand image online and attract customers. Template Overview | Installation Instructions | Website Backend: /login.php | Username: admin | Password: admin | Related Articles: Summary of Common Installation Issues for EyouCMS | EyouCMS...
👁 34
Central Air Conditioning Refrigeration Equipment System Website Template 0606

Central Air Conditioning Refrigeration Equipment System Website Template 0606 Practical Collection Yiyou template

This EyouCMS template is ideal for industries related to central air conditioning and refrigeration equipment systems. Its professional, tech-oriented design is perfect for showcasing central air conditioning products, refrigeration system solutions, and project cases. It helps HVAC companies demonstrate their technical expertise online and attract both commercial and industrial clients. Template Display | Installation Instructions | Website Backend: /login.php | Username: admin | Password: admin | Related Articles: Common Questions About EyouCMS Installation...
👁 55
Sheet Metal Machining & Manufacturing Website Template 0607

Sheet Metal Machining & Manufacturing Website Template 0607 Practical Collection Yiyou template

An EyouCMS website template designed specifically for sheet metal processing and manufacturing enterprises. Its rugged, professional design effectively showcases sheet metal products, manufacturing processes, and industrial applications. This template helps sheet metal manufacturing companies demonstrate their production capabilities online and attract industrial manufacturing clients. Template Overview | Installation Instructions | Website Backend: /login.php | Username: admin | Password: admin | Related Articles: Summary of Common Installation Issues for EyouCMS | EyouCMS (E...
👁 52
Resource website typecho001 template

Resource website typecho001 template Program Notes Typecho

typecho001 template template please do not modify the folder name of this template. The folder name is: typecho001 1.4 Fix the js output problem on the article page 1.3 Fix the error prompt when the plug-in is not installed Optimize the list page code output 1.2 Fix the comment function and add a custom homepage title 1.1 Fix the comment reply asymmetry function Add a separate title setting function on the homepage Add the website favicon.ico icon Add one...
👁 199
Centrifugal Fan Mechanical Manufacturing Website Template 0608

Centrifugal Fan Mechanical Manufacturing Website Template 0608 Practical Collection Yiyou template

This EyouCMS template is ideal for the centrifugal fan and mechanical manufacturing industries, featuring a professional industrial design style that effectively showcases centrifugal fan products, technical specifications, and industrial applications. It helps fan equipment manufacturers demonstrate their product capabilities online and attract industrial customers. Template Display | Installation Instructions | Website Backend: /login.php | Username: admin | Password: admin | Related Articles: Summary of Common Installation Issues for EyouCMS | EyouCMS...
👁 57
Modification of typecho paging style

Modification of typecho paging style Program Notes Typecho

Sir, times have changed! Typecho is currently the most perfect solution, because Baidu can only see the code of fixed thinking. The actual generated HTML code is breathtakingly clean and fully customized, including adding classes to the li element, adding classes to the a element, adding classes to the previous page and next page, and removing the li tags that come with typecho to express more. I can even add some text to the content inside...
👁 517