Make sure the recurrence occurs
So far, you already know how to match a letter or number, but more likely, you might want to match a word or a group of numbers. A word consists of several letters, and a group of numbers has several singular parts.
Select
Enclose all selections in parentheses, separating the adjacent selections by |. But with parentheses there is a side effect that the associated match is cached and available at this time?: Put the first option to eliminate this side
Before we speak the PHP logical operators, we refer to the precedence of the PHP operator, the so-called operator precedence, which is the calculation of which operation Mr. Foo in the expression, which is calculated after, as if, the result of the
What is a Boolean data type?
Boolean is one of the PHP4 scalar data types, which is one of the more commonly used data types in PHP and can only hold two values of true and false values. It is case-insensitive, so true is the same as true.
If we
As we all know, after we instantiate a class, accessing the properties of a class is accessed in such a format as the name of the property named-----so do you ever try to test the result directly with Echo or print output. Some people say, this
In the previous we used the Strtotime () function, which realized the function of comparing the size of two time, in addition to comparing the size of two dates, PHP can also accurately calculate the difference of two dates. In this chapter, we
Before we learned the Mktime () function, we know that the Mktime () function returns the UNIX timestamp based on the parameters given. The current timestamp is returned when the Mktime () function does not fill in the parameters
Like
The functions in PHP look very simple, in fact, the function is very powerful, I here by the function name is fixed, can be divided into the following three major categories:
A fixed-name function:
Such functions, also called general functions, are
In general, you can destroy this session by clicking on one of the "exit" buttons provided on the page. However, if the user does not click the Exit button, but directly close the browser, or disconnect the network, or power off the computer
What is a mutable variable?
There is one other type of variable in PHP, "mutable variable." A mutable variable is a unique variant of PHP that allows you to dynamically change the name of a variable.
How mutable variables work
This feature works
Registering Session Sessions
The use of Session variables in PHP, in addition to the need to start, but also through a registration process, register and read the session variable, all by accessing the $_session array to complete. Starting with
What are the functions of the PHP predefined constants?
We can use the predefined constants of PHP to get the information in PHP, for example, we can use the current computer's operating system, the current PHP version information, and so on.
Some
The data saved in the Cookie,session session file is created as a variable in the PHP script, and the session variable created can be referenced by a cross-page request within the life cycle (20 minutes). In addition, session sessions are stored on
What is a constant?
Constants we can understand as the amount of constant value. Constants are defined so that they cannot be changed anywhere else in the program script.
Methods for defining constants
Constants are made up of English letters,
Features of Cookies
Cookies are generated by the server and sent to User-agent (typically a browser), and the browser saves the key/value of the cookie to a text file in a directory, The next time you request the same Web site, the cookie is sent
What is a null value (NULL)?
A null value, like its name, indicates that a variable has no value. A null value (NULL) is not case-sensitive, that is, NULL is the same as null or NULL.
There are three scenarios in which null values are given in PHP:
Is this, I changed a site, on the home page plus an HTTP and HTTPS jump to each other button, home Test OK.
(Home, gray icon for HTTP, green for HTTPS)(content page, cut to HTTPS, will force the use of HTTPS access, only to clean up the browser
Before we know this function, we need to insert some elements in front of the data to feel very complicated, to use the traversal to manipulate, or insert to the back, below we share a practical array_unshift () function, it can solve all problems.
Just installed Phpstorm running PHP file will be reported such errors?
The solution is as follows:
1 Enter the PHP directory to find php.ini-development this file, rename him to PHP.ini
2 Open php.ini file to find Extension_dir
Change the path
Problem:
Recently in the development with Yii, his form verification function is also very powerful, but found that this ActiveForm form tool does not come, who can help explain under, thank you!
Answer:
I don't know if the main problem is a simple
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