CopyCode The Code is as follows:
common numeric judgment functions
// Determine the Array
$ Colors = array ("red", "blue", "green ");
If (is_array ($ colors ))
{
Print ("colors is an array". " ");
}
// Double-precision data Determination
$
In the past two days, we need to implement the following functions:
When a certain condition is reached, the server sends a text message to the user. The number of messages is multiple.
Basic Idea: scheduled Linux scanning. If a user meets the
But there is a problem.
Although JS decoding JSON is very convenient, there seems to be no good way to code it...
In the principle that you can be either lazy or lazy
I found it.
Json_decode can be directly used in PHP for decoding, which is
Summary:
Four headers () are required for downloading files using PHP. For more information, see my another blog post: How PHP implements the download function? detailed Process AnalysisWhen calculating the file size, you do not need to open the
Algorithm idea: regard each number as an independent mathematical expression, and combine the punctuation between expressions into a new expression. The expression is combined four times in total. All the combinations between expressions can be
For example, SQL injection attacks
XSS attacks
Copy codeThe Code is as follows: Arbitrary Code Execution
File Inclusion and CSRF.
}
There are many articles about SQL attacks and various injection scripts, but none of them can solve the fundamental
When searching for something, we often encounter the goal of inputting multiple conditions through spaces. Today, I encountered this problem in the project. I wrote a function and put multiple conditions in the array. Currently, space, comma
1. strstr-first appearance of the search string
String strstr (string $ haystack, mixed $ needle [, bool $ before_needle = false])Note 1: $ haystack is the string and $ needle is the string to be searched. This function is case sensitive.Note 2:
Let's talk about the purpose of this mechanism. Till now, the battlefield has known that this mechanism has two purposes:
First, we should be able to understand the problem of sharing sessions among multiple servers. When the number of users on a
When $ _ post [''] and $ _ get [''] are used to obtain parameters in the formNotice: Undefined index :--------;
We often receive Undefined index errors when receiving data from form POST, as follows: $ act =$ _ POST ['action'];The above code always
Method 1: Use the built-in functions of php
/*
Trim removes spaces at both ends of a string,
Rtrim removes the right space of a string,
Ltrim removes the left space of a string.
*/?>Echo trim ("space"). " ";Echo rtrim ("space"). " ";Echo
The technology is not refined. If you have any mistakes, please point out that I will correct them.
Copy codeThe Code is as follows: header ('content-Type: text/html; charset = UTF-8 ');
Echo ' ';
Function var_array ($ array)
{
Echo ' ';
Var_dump ($
Today, I saw the error code from a new user while reading the forum. I haven't found any errors for a long time. What do I wonder about? (Why ?) Haha.
It was later discovered that the mark was incorrect. He used the short mark. But it is not
Mind Map
IntroductionIn the previous series of articles, I pay more attention to , but I still haven't made it clear, I also have a lot of points that I don't understand, and this is my first article in this regard. There are a lot of mistakes, so
I. Bubble SortingNote: Find the maximum number, arrange it to the last side, and continue to find it.
Example:Copy codeThe Code is as follows: $ arr = array (,-, 2 );For ($ I = 0; $ I For ($ j = 0; $ j If ($ arr [$ j]> $ arr [$ j + 1]) {$ Temp = $
The main function is file_get_contents. The main program is divided into two sections. Come with me and read it. (For the original code of the mortal blog, please note it ).
Copy codeThe Code is as follows: function escape ($ str ){
Preg_match_all ('
Mind Map
Index:Ø Move Method (shift function) Ø Move Field (shift value Field) Ø Extract Class (Extract Class) Ø Inline Class (concatenate Class, is to merge the current class to other classes.) Ø Hide Delegate (hiding the Delegate relationship) Ø
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