Today in Lao Wang's technical handbook see a problem:
The code is as follows
Copy Code
What is the output?
This question may seem simple at first glance, but it is not easy to scrutinize it,
If the Boolean
When studying Discuz, we found that Discuz has a fairly perfect encryption algorithm (relative). This algorithm can encrypt the data, save it, and then restore it using the secret key that was previously encrypted when needed.
In addition to this,
lib2.php
to understand several PHP namespace-related terms before starting.
Fully qualified name (fully-qualified name)
Any PHP code can refer to a fully qualified name, which is an identifier that begins with a namespace backslash, such as
Ereg ()Ereg_replace ()Eregi ()Eregi_replace ()Split ()(1) Ereg,eregiThis is a regular expression matching function, the former is case-insensitive, and the latter is irrelevant.Usage:Ereg (regular expression, string, [match part array name]);Regular
1. When you are looking for information about a specific PHP function, please go to http://php.net/. For example: Http://php.net/join. This will take you directly to the correct location in the online manual on one server around your location.2. Try
Grassroots PHP Language challenges the object is Java,. Net such a big shot.
Zeev The 30-year-old Israeli lad does not look like a powerful figure, but the PHP language he initiates has become a legend in the internet era. The latest news is that
First you need to understand a basic knowledge point
Two arrays in PHP can be combined with + or array_merge, but there is a difference, and if you don't know the difference, it's going to kill you!The main difference is that if the same key name
Before toss a short URL program, the process is very smooth, the only is in the verification of the Web site this step card shell, spent the whole process of half time, finally after a search, toss and test, only to find a perfect solution.
In the
The image generation function is often used in web applications. In the php Tutorial, creating images requires the support of the gd library to create images. With this graphic function, we can easily generate a thumbnail, verification code, and add
Recently, a reader asked me about the subscription/unsubscription processing mechanism in the ThickBook news list and how it works with the actual sending information to all recipients in the mail list. A good question is raised. There is a very
10G space, GB bandwidth, PHP, MySQL and more...Fr33host.net allows you...Fr33host.net is ideal...Create your website with PHP, MySQL, HTML and more!Create a personalized blog or webpage24/7 of on-site technical support staff dedicated to youDynamic
A string in PHP can be defined in the following four methods:Single quotesDouble quotation marksHeredoc syntax structureNowdoc syntax structure (since PHP 5.3.0 and later)Single quotesThe simplest way to define a string is to enclose it with single
Global variables and "global" keywordsPHP defines some "Superglobals" variables by default. These variables are automatically merged and can bePrograms are called anywhere, such as $ _ GET and $ _ REQUEST. They generally come from data or other
First, we will introduce the mkdir () function.Mkdir ($ path, 0777, true );The first parameter is required. It indicates the path of the multi-level directory to be created;The second parameter: sets the directory permission. The default value is 077
1. Get the file name: basename ();2. Obtain the directory where the file is located: dirname ();3. Obtain the file information through pathinfo (). The Returned result is an array, including the path, full name, file name, and extension. For example:
Example The code is as follows:Copy code Function mkdirs ($ dir ){If (! Is_dir ($ dir )){If (! Mkdirs (dirname ($ dir ))){Return FALSE; }If (! Mkdir ($ dir, 0777 )){Return FALSE; } }Return TRUE;}$ Path = "/aa/bb/cc/cd"; //
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