You may not know about 10 things in PHP. On the other hand, you can use a simple line of code to solve a problem. The following are some cool features that you probably haven't noticed: using ip2long () and long2ip () functions, on the other hand,
PHP Development Framework summary. The development framework WACTwact.sourceforge.net's established PHP programming framework has implemented many enterprise-level development models, Hordewww. horde. orghorde provides some common class libraries
Easy to fix Discuz! Database. The following method may be used to easily fix the database. Your website address admincp. php is used to access the database verification of the system's background system tool. click "database verification" to use the
The PHPstrstr function is used to determine whether a string exists. Define and use the PHPstrstr () function to search for the first occurrence of a string in another string. This function returns the rest of the string (from the matching point ).
Difference in time (), date (), and mktime () in PHP. Checkdate: verify that the date is correct. Date: format the server time. Strftime: format the server time locally. Getdate: get the time and date information. Checkdate: verify that the date is
Phpmysql_real_escape_string function usage and instance tutorial. Escape special characters in unescaped_string. Considering the connection settings of the current character, it is safe in mysql_query. If binary data is to be inserted, this function
Unserialize and Autoload. However, a qualified PHP programmer should know Unserialize and Autoload, but I am afraid there will not be many people who clearly know the relationship between them. For example, false, but any qualified
PHPProgrammers
Php date processing code
Echo"";Echo date ("Y-m-d", strtotime ("now"), "\ n ";Echo"";Echo date ("Y-m-d", strtotime ("-1 week Monday"), "\ n ";Echo"";Echo date ("Y-m-d", strtotime ("-1 week Sunday"), "\ n
PHP displays the time as "just", "n minutes ago", etc.
In many cases, in order to display the timeliness of information, the time is usually displayed as "just", "5 minutes ago", "3 hours ago", and so on, instead of printing the time
Php: how to edit and save files
This example describes how to edit and save files in php. Share it with you for your reference. The details are as follows:Save_file.php:
Session_start ();
$ Handle = fopen ($ _
Use md5 to encrypt the php code of the string
After the sequence of the ciphertext string after the MD5 operation is adjusted, the MD5 operation is performed again.
Function md5_5 ($ data)
{
// Obtain the
It's not just for you to write code.
This is the first thing I say to every new employee in the team. It means that I don't care how quickly you complete the task, even if the code is poor, as long as it works like a rescue vehicle
Implement the icon button framework with pure css
Fa-lg icon size (increased by 33%), fa-2x, fa-3x, fa-4x, or fa-5x class.Fa-stack-1x fixed size icons, fa-stack-2xUse any rotate and flip icons fa-rotate-* and fa-flip. * Represents how much:
Php two-dimensional array sorting by a field (sorting the query result set)
We often encounter sorting by a key value of a two-dimensional array, and then suddenly think of a function in the onethink project, so it is extracted for
Weight calculation and slight modification can also be used for word segmentation, word frequency statistics, full-text and spam detection, etc.
Efficiency is very objective. I cannot guarantee efficiency if you change it to other functions.
AVFUN bean curd brain sweet party salty party data statistics
ACFUN made a topic: http://www.acfun. TV /a/ac715346Is data refreshing AJAX ~ Just grab it.Instead of using CURL, capture the screenshot directly, and add a braces to the
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service