PHP primary plane questionIt's just a little inexperienced programmer looking for a job.
InterviewProvides no small help,
InterviewThe official will often test us, and this time to see
Face TestIt's a big part of it.
41. Is there a function to
This article mainly on the PHP array has a general introduction, the language is simple, but very comprehensive, hoping to let the beginner PHP small partners have a clearer understanding.
First, what is an arrayAn array is a set of data that
The YII framework is a high-performance PHP framework for developing large Web applications based on components. Yii provides almost everything you need for today's Web 2.0 application development. Yii is one of the most efficient PHP frameworks.
Since PHP 5.4.0, PHP has implemented a code reuse method called Trait.
Traits is a code reuse mechanism that is prepared for PHP-like single-inheritance languages. Trait to reduce the limitations of single-inheritance languages, developers are free
The definition of both:
When you are browsing the website, the Web server will send a small piece of information on your computer, and the Cookie will help you to make the text or some choices on the website.
are recorded. The next time you visit
Regular expressions, also known as regular expressions, in English named regular expression, are often abbreviated as regex, RegExp, or re in Code, and are a concept of computer science. Regular tables are often used to retrieve and replace text
iterator ModeTraversing an internal element of an aggregate object without needing to know the internals, compared to the traditional programming model,
iterator ModeYou can hide all actions that traverse an element
ids = $data; } The public
In the current development of PHP, most programmers will develop a number of user registration and other functions, sometimes for the sake of beauty, the user's avatar will also have relative requirements, then we will tell you how to use PHP to
Instance
Combine two arrays into an array:
Definition and usage
The array_merge_recursive () function is used to combine one or more arrays into an array.
The difference between this function and the Array_merge () function is that it handles two
Instance
Returns a new array containing all the key names in the array:
Definition and usage
The Array_keys () function returns a new array that contains all the key names in the array.
Grammar
Array_keys (array,value,strict)
1. Define constant define ("CONSTANT", "Hello World");
Constants can only contain scalar data (boolean,integer,float and string).When calling a constant, simply use the name to get the value of the constant, not the "$" symbol, such as: Echo
We have introduced the use of PHP regular expressions, getting started, and verifying email addresses, so today we would like to introduce you to the PHP regular expression of the function Preg_match,preg_match function in the PHP regular expression
as a PHP starter developer, there's always the need to add a way to automatically send mail using your own domain name as the sender's email address. Used to send a verification code , notification information, and so on to the user. We introduce
In the above we introduce the definition of function explode () in PHP, and we all know that the explode () function is a delimited string, so today we will introduce you to the PHP function explode () sub-instance!
To split a string in PHP, we can
Instance
Replace the character "IA" in the string with "EO":
Definition and usage
The STRTR () function converts a specific character in a string.
Note: If the From and to parameters have different lengths, they are formatted as the shortest length.
Instance
Convert all characters to lowercase:
Definition and usage
The Strtolower () function converts a string to lowercase.
Note: This function is binary safe.
Related functions:
Strtoupper ()-Converts a string to uppercase
Lcfirst
Instance
Returns the number of characters "Khlleo" that are contained in the string "Hello world!":
Definition and usage
The STRSPN () function returns the number of characters specified in the string that contains the charlist parameter.
Tip: Use
short link, in layman's terms, is to convert long URL urls into short URL strings through program calculations. In this article we teach you how to use thinkphp to make short links.
TP Frame Sense Path is a bit long, how to optimize the better,
The small partners who have read our previous article believe that they know a bit about PHP probes, but some say that it is some theory to write something, want to see some PHP probe code, in this, today to share a front desk based on HTML5
I believe many small partners see this title is also a blank face, what is the PHP probe? What is a PHP probe for? What role does he have, I believe many people have such doubts. So we're going to introduce you to the PHP probe today?
First, what
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