1. In PHP we often use the dropdown box, and related to each other, if the drop-down box has a lot of option, then we need to use the fuzzy search function, then how to do?
in this function, take a detour, it is best not to associate the ID value
1. Understanding Arrays
The array in PHP is actually an ordered map. A map is a type that associates values to the keys.
2. Example: General array
Here, I pass a simple example and use graphical methods to understand the array.
1.-------------------
PHP is a loosely spoken language (loosely Typed Language), and when we declare a variable, we don't need to specify the type of the variable, and PHP automatically determines the type of the variable based on the value assigned to the variable.
PHP commonly used to determine the function of variables are GetType (), Is_array (), Is_bool (), Is_float (), Is_integer (), Is_null (), Is_numeric (), Is_object (), Is_ Resource (), Is_scalar (), and is_string ().Where the GetType () function
Code Architecture for PHP
All parts of PHP are in a layer called TSRM, and the TSRM layer is responsible for thread safety management. At the bottom of the SAPI is the interface to provide services externally, such as command line SAPI CLI, PHP-FPM
As a variable to understand the easier, such as $a=function () {echo "AAA";}; $aa (); or function A () {}; Assign a value as a variable; $b = "a"; $b (); one is the anonymous function as a variable to call, and the other is the function name as a
The content of this section:
A simple example of PHP page passing value
1,index.html
Copy Code code example:
Guestbook Home-www.jbxue.com hello, Welcome to Imchaotan guestbook Leave your valuable suggestions? account:
The content of this section:
Randomly display specified text
Learn the use of If ElseIf in PHP programming and use the IF ElseIf statement multiple times.
Example:
How to use PHP or JavaScript to do the following: To submit a 1.html (PHP) in the form Form1 input data into another Web page 2.html (PHP) or txt text,
Solution:
Create the go.php code as follows
Your name: Message content: button> submit ';}?
add Utf-8 in PHP:
1 header("content-type:text/html;charset= ' UTF-8 '");
File operation steps:
1. Create a file.txt folder in the same directory
2. Open File
1 $res = fopen("file.txt", "R"); // Open File path, open after is a resource, need
This article mainly introduces PHP in the box to get the ID value of the traversal in foreach and pass to the address bar of the relevant information, the need for friends can refer to the following
1.php Sometimes we need to bounce the data that
This article mainly introduces PHP7 based on recursive implementation of the method of deleting empty folders, combined with specific examples to analyze the PHP7 recursive traversal directory and judgment, delete and other related operations skills,
This paper introduces how PHP reads the contents of a file,
summarize PHP Five ways to read the contents of a file. In practical application, please pay attention to closing fclose ($FP);
First method: Fread ()
", $str);}? >
The second method:
",
The so-called identifier refers to the name of the variable.
The names of functions and classes are also identifiers.
PHP Rules for identifiers:
Identifiers can be any length of letters, numbers, underscores, and do not begin with a number.
Common four bit Operators:& (bitwise AND), | (bitwise OR), ^ (bitwise XOR), ~ (bitwise inverse)
& (Bitwise AND): The corresponding bit is 1 o'clock at the same time, 1 after the & operation, otherwise 0
| (bitwise OR): one of the corresponding bits
In some cases, PHP converts class numeric data, such as strings containing numbers, to numeric processing, and the = = operator is one of them. When you use the = = operator to loosely compare two strings, PHP converts the string of a class value to
An operator is something that can produce another value (and thus the entire structure as an expression) by giving one or more of the values (in programming jargon, expressions).
1. Arithmetic operators
Operator name Result$a + $b addition $a and $
A switch statement is similar to a series of if statements that have the same expression. In many cases it is necessary to compare the same variable (or expression) with many different values and execute different code depending on which value it
PHP is a simple, object-oriented, interpretive, robust, secure, high-performance, architecture-independent, portable, dynamic scripting language. PHP has a class keyword similar to java. Because you don't need a virtual machine, it's 5 times times
Some time ago published a delete column of the essay, at that time realized the function is to delete a message, this time to realize the bulk delete column.
What we need to achieve is such an effect:
Select the Bulk Delete button can select all
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