The code in the fckeditor editor can be written as a function or category and called directly without writing so much code every time! I just saw a way to share my shoes on the forum. I don't feel very comprehensive. now I want to share it with you!
For more information about the concepts related to operators, see.
Copy codeThe code is as follows:
/* Operator number (PHP) operator symbol
*
* By operator number:
* 1. arithmetic operators +-*/% + + --
* 2. string operators. Concatenation
Share the usage of the three functions ISSET (), empty (), and is_numeric () in PHP form verification. For more information about php learning, see. ISSET (); -- this parameter is suitable for detecting whether this parameter exists.
Definition and
The two-dimensional array sorting method based on letters in PHP is very useful in actual development.
Copy codeThe code is as follows:
/**
* Sort an two-dimension array by some level two items use array_multisort () function.
*
* SysSortArray ($
I suddenly wanted to give it a try in Chinese and English, just to convert some frequently-used and regular words such as 'comments' and time units (several seconds ago. At first, it was easy to create an XML document. I just saw that XML is not
The following functions use the data formatting method to implement the data addslashes. However, we recommend that you refer to the anti-injection function of discuz.
Copy codeThe code is as follows:
// Format the data (to prevent injection)
The implementation code for logging in php is mainly divided into several modes. For more information, see.
Copy codeThe code is as follows:
$ Ss_log_level = 0;
$ Ss_log_filename =/tmp/ss-log;
$ Ss_log_levels = array (
NONE => 0,
ERROR => 1,
INFO =
I haven't updated it for a long time. it's very busy. The following describes the operators and control structures of php;
I. string insertion
To provide developers with the maximum flexibility to process string values, PHP provides both literal
When we want to strictly limit the file type, we can simply use $ _ FILES [
File suffix and MIME type detectionWhen we want to strictly limit the file type, you can use $ _ FILES ['myfile'] ['type'] to obtain the MIME type of the file and then check
Kang Sheng's authcode function can be said to have made significant contributions to the Chinese PHP community. Including Kangsheng's own products, and most Chinese companies that use PHP use this function for encryption. authcode uses exclusive or
Requirement: there is a string expression for four arithmetic operations. compile a function to calculate the results of the four arithmetic operations. PHP implementation:
Copy codeThe code is as follows:
/**
* Calculates four arithmetic
Thinkphp is a PHP framework developed by Chinese people. it is no inferior to some foreign frameworks. Powerful ORM, plug-ins, grouping, and other functions are easy to understand. The Http class is under the ThinkPHP/Lib/ORG/Net directory. Next,
Php checks whether a visitor is a search engine spider's function code. For more information, see.
Copy codeThe code is as follows:
/**
* Determine whether it is a search engine spider
*
* @ Author Eddy
* @ Return bool
*/
Function isCrawler (){
$
For more information about PHP, see.
I. PHP script code markPHP scripts are the content of a pair of special tags in the file. for example, ASP is "", and PHP can be viewed as"
".
However, to adapt to XML standards to embed PHP into XML or XHTML,
The implementation code of the class file is automatically generated based on the fields in Mysql. For more information about php, see.
Automatically Generate a class file based on the fields in Mysql:
But you need to import:
Require_once./db/ez_
Study and analysis on the principle of static keywords in PHP. For more information about php learning, see. When I read the PHP manual, I found the following code:
Copy codeThe code is as follows:
Function Test ()
{
Static $ count = 0;
$ Count ++;
For a long time, writing php uses Dreamweaver. sometimes it is really painful. if you have a bug and want to see the values of some elements, you must use echo output to know, now I have learned a powerful breakpoint debugging tool, and php can
PHP code with a slash before a special character. For more information, see. The quotemeta () function adds a backslash before some predefined characters in the string.
Copy codeThe code is as follows:
$ Zongzi = "asdfasdf (asdfasdf? Asfdadsf )";
For more information about PHP bubble sorting algorithm code, see.
Copy codeThe code is as follows:
$ Arr = array (234 );
$ N = count ($ arr );
For ($ I = 1; $ I // Why $ n-1 is calculated because the array starts from 0?
// Next is the first
Php entry-level learning point 8: the basic application of the for loop in PHP is a list of nine multiplication ports. for more information, see. Master the flexible use of for commands.
Copy codeThe code is as follows:
/*
* Print 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